Class DDMUtil
java.lang.Object
com.liferay.dynamic.data.mapping.util.DDMUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static DDM
getDDM()
static DDMForm
getDDMForm
(long classNameId, long classPK) static DDMForm
getDDMForm
(String serializedJSONDDMForm) static DDMForm
getDDMForm
(javax.portlet.PortletRequest portletRequest) static com.liferay.portal.kernel.json.JSONArray
getDDMFormFieldsJSONArray
(DDMStructure ddmStructure, String script) static com.liferay.portal.kernel.json.JSONArray
getDDMFormFieldsJSONArray
(DDMStructureVersion ddmStructureVersion, String script) static String
getDDMFormJSONString
(DDMForm ddmForm) static DDMFormValues
getDDMFormValues
(long ddmStructureId, String fieldNamespace, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DDMFormValues
getDDMFormValues
(DDMForm ddmForm, String serializedJSONDDMFormValues) static String
getDDMFormValuesJSONString
(DDMFormValues ddmFormValues) static DDMFormLayout
getDefaultDDMFormLayout
(DDMForm ddmForm) static Serializable
getDisplayFieldValue
(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, Serializable fieldValue, String type) static Fields
getFields
(long ddmStructureId, long ddmTemplateId, com.liferay.portal.kernel.service.ServiceContext serviceContext) static Fields
getFields
(long ddmStructureId, long ddmTemplateId, String fieldNamespace, com.liferay.portal.kernel.service.ServiceContext serviceContext) static Fields
getFields
(long ddmStructureId, DDMFormValues ddmFormValues) static Fields
getFields
(long ddmStructureId, com.liferay.portal.kernel.service.ServiceContext serviceContext) static Fields
getFields
(long ddmStructureId, String fieldNamespace, com.liferay.portal.kernel.service.ServiceContext serviceContext) static Serializable
getIndexedFieldValue
(Serializable fieldValue, String type) static com.liferay.portal.kernel.util.OrderByComparator<DDMStructure>
getStructureOrderByComparator
(String orderByCol, String orderByType) static com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate>
getTemplateOrderByComparator
(String orderByCol, String orderByType) static Fields
mergeFields
(Fields newFields, Fields existingFields) static DDMForm
updateDDMFormDefaultLocale
(DDMForm ddmForm, Locale newDefaultLocale)
-
Constructor Details
-
DDMUtil
public DDMUtil()
-
-
Method Details
-
getDDMForm
public static DDMForm getDDMForm(long classNameId, long classPK) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDDMForm
public static DDMForm getDDMForm(javax.portlet.PortletRequest portletRequest) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDDMForm
public static DDMForm getDDMForm(String serializedJSONDDMForm) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDDMFormFieldsJSONArray
public static com.liferay.portal.kernel.json.JSONArray getDDMFormFieldsJSONArray(DDMStructure ddmStructure, String script) -
getDDMFormFieldsJSONArray
public static com.liferay.portal.kernel.json.JSONArray getDDMFormFieldsJSONArray(DDMStructureVersion ddmStructureVersion, String script) -
getDDMFormJSONString
-
getDDMFormValues
public static DDMFormValues getDDMFormValues(DDMForm ddmForm, String serializedJSONDDMFormValues) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDDMFormValues
public static DDMFormValues getDDMFormValues(long ddmStructureId, String fieldNamespace, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDDMFormValuesJSONString
-
getDefaultDDMFormLayout
-
getDisplayFieldValue
public static Serializable getDisplayFieldValue(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, Serializable fieldValue, String type) throws Exception - Throws:
Exception
-
getFields
public static Fields getFields(long ddmStructureId, DDMFormValues ddmFormValues) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFields
public static Fields getFields(long ddmStructureId, long ddmTemplateId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFields
public static Fields getFields(long ddmStructureId, long ddmTemplateId, String fieldNamespace, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFields
public static Fields getFields(long ddmStructureId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFields
public static Fields getFields(long ddmStructureId, String fieldNamespace, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getIndexedFieldValue
public static Serializable getIndexedFieldValue(Serializable fieldValue, String type) throws Exception - Throws:
Exception
-
getStructureOrderByComparator
public static com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> getStructureOrderByComparator(String orderByCol, String orderByType) -
getTemplateOrderByComparator
public static com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> getTemplateOrderByComparator(String orderByCol, String orderByType) -
mergeFields
-
updateDDMFormDefaultLocale
-
getDDM
-