public class DDMStructureManagerUtil
extends Object
Constructor and Description |
---|
DDMStructureManagerUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addAttributes(long structureId,
Document document,
DDMFormValues ddmFormValues) |
static DDMStructure |
addStructure(long userId,
long groupId,
String parentStructureKey,
long classNameId,
String structureKey,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
DDMForm ddmForm,
String storageType,
int type,
ServiceContext serviceContext) |
static void |
deleteStructure(long structureId) |
static String |
extractAttributes(long structureId,
DDMFormValues ddmFormValues,
Locale locale) |
static DDMStructure |
fetchStructure(long structureId) |
static DDMStructure |
fetchStructure(long groupId,
long classNameId,
String structureKey) |
static DDMStructure |
fetchStructureByUuidAndGroupId(String uuid,
long groupId) |
static List<DDMStructure> |
getClassStructures(long companyId,
long classNameId) |
static List<DDMStructure> |
getClassStructures(long companyId,
long classNameId,
int structureComparator) |
static List<DDMStructure> |
getClassStructures(long companyId,
long classNameId,
int start,
int end) |
static JSONArray |
getDDMFormFieldsJSONArray(long structureId,
String script) |
static Class<?> |
getDDMStructureModelClass() |
static Serializable |
getIndexedFieldValue(Serializable fieldValue,
String fieldType) |
static DDMStructure |
getStructure(long structureId) |
static DDMStructure |
getStructure(long groupId,
long classNameId,
String structureKey) |
static DDMStructure |
getStructureByUuidAndGroupId(String uuid,
long groupId) |
static List<DDMStructure> |
getStructures(long[] groupIds,
long classNameId) |
static int |
getStructureStorageLinksCount(long structureId) |
static DDMStructure |
updateStructure(long userId,
long structureId,
long parentStructureId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
DDMForm ddmForm,
ServiceContext serviceContext) |
static void |
updateStructureDefinition(long structureId,
String definition) |
static void |
updateStructureKey(long structureId,
String structureKey) |
public static void addAttributes(long structureId, Document document, DDMFormValues ddmFormValues) throws PortalException
PortalException
public static DDMStructure addStructure(long userId, long groupId, String parentStructureKey, long classNameId, String structureKey, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, DDMForm ddmForm, String storageType, int type, ServiceContext serviceContext) throws PortalException
PortalException
public static void deleteStructure(long structureId) throws PortalException
PortalException
public static String extractAttributes(long structureId, DDMFormValues ddmFormValues, Locale locale) throws PortalException
PortalException
public static DDMStructure fetchStructure(long structureId)
public static DDMStructure fetchStructure(long groupId, long classNameId, String structureKey)
public static DDMStructure fetchStructureByUuidAndGroupId(String uuid, long groupId)
public static List<DDMStructure> getClassStructures(long companyId, long classNameId)
public static List<DDMStructure> getClassStructures(long companyId, long classNameId, int structureComparator)
public static List<DDMStructure> getClassStructures(long companyId, long classNameId, int start, int end)
public static JSONArray getDDMFormFieldsJSONArray(long structureId, String script) throws PortalException
PortalException
public static Class<?> getDDMStructureModelClass()
public static Serializable getIndexedFieldValue(Serializable fieldValue, String fieldType) throws Exception
Exception
public static DDMStructure getStructure(long structureId) throws PortalException
PortalException
public static DDMStructure getStructure(long groupId, long classNameId, String structureKey) throws PortalException
PortalException
public static DDMStructure getStructureByUuidAndGroupId(String uuid, long groupId) throws PortalException
PortalException
public static List<DDMStructure> getStructures(long[] groupIds, long classNameId)
public static int getStructureStorageLinksCount(long structureId)
public static DDMStructure updateStructure(long userId, long structureId, long parentStructureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, DDMForm ddmForm, ServiceContext serviceContext) throws PortalException
PortalException
public static void updateStructureDefinition(long structureId, String definition) throws PortalException
PortalException
public static void updateStructureKey(long structureId, String structureKey) throws PortalException
PortalException