com.liferay.portlet.dynamicdatamapping
Class DDMStructureManagerUtil
java.lang.Object
com.liferay.portlet.dynamicdatamapping.DDMStructureManagerUtil
public class DDMStructureManagerUtil
- extends Object
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDMStructureManagerUtil
public DDMStructureManagerUtil()
addAttributes
public static void addAttributes(long structureId,
Document document,
DDMFormValues ddmFormValues)
throws PortalException
- Throws:
PortalException
addStructure
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
- Throws:
PortalException
deleteStructure
public static void deleteStructure(long structureId)
throws PortalException
- Throws:
PortalException
extractAttributes
public static String extractAttributes(long structureId,
DDMFormValues ddmFormValues,
Locale locale)
throws PortalException
- Throws:
PortalException
fetchStructure
public static DDMStructure fetchStructure(long structureId)
fetchStructure
public static DDMStructure fetchStructure(long groupId,
long classNameId,
String structureKey)
fetchStructureByUuidAndGroupId
public static DDMStructure fetchStructureByUuidAndGroupId(String uuid,
long groupId)
getClassStructures
public static List<DDMStructure> getClassStructures(long companyId,
long classNameId)
getClassStructures
public static List<DDMStructure> getClassStructures(long companyId,
long classNameId,
int structureComparator)
getClassStructures
public static List<DDMStructure> getClassStructures(long companyId,
long classNameId,
int start,
int end)
getDDMFormFieldsJSONArray
public static JSONArray getDDMFormFieldsJSONArray(long structureId,
String script)
throws PortalException
- Throws:
PortalException
getDDMStructureModelClass
public static Class<?> getDDMStructureModelClass()
getIndexedFieldValue
public static Serializable getIndexedFieldValue(Serializable fieldValue,
String fieldType)
throws Exception
- Throws:
Exception
getStructure
public static DDMStructure getStructure(long structureId)
throws PortalException
- Throws:
PortalException
getStructure
public static DDMStructure getStructure(long groupId,
long classNameId,
String structureKey)
throws PortalException
- Throws:
PortalException
getStructureByUuidAndGroupId
public static DDMStructure getStructureByUuidAndGroupId(String uuid,
long groupId)
throws PortalException
- Throws:
PortalException
getStructures
public static List<DDMStructure> getStructures(long[] groupIds,
long classNameId)
getStructureStorageLinksCount
public static int getStructureStorageLinksCount(long structureId)
updateStructure
public static DDMStructure updateStructure(long userId,
long structureId,
long parentStructureId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
DDMForm ddmForm,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
updateStructureDefinition
public static void updateStructureDefinition(long structureId,
String definition)
throws PortalException
- Throws:
PortalException
updateStructureKey
public static void updateStructureKey(long structureId,
String structureKey)
throws PortalException
- Throws:
PortalException