Class DDMUtil
java.lang.Object
com.liferay.dynamic.data.mapping.util.DDMUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static DDMgetDDM()static DDMFormgetDDMForm(long classNameId, long classPK) static DDMFormgetDDMForm(String serializedJSONDDMForm) static DDMFormgetDDMForm(javax.portlet.PortletRequest portletRequest) static com.liferay.portal.kernel.json.JSONArraygetDDMFormFieldsJSONArray(DDMStructure ddmStructure, String script) static com.liferay.portal.kernel.json.JSONArraygetDDMFormFieldsJSONArray(DDMStructureVersion ddmStructureVersion, String script) static StringgetDDMFormJSONString(DDMForm ddmForm) static DDMFormValuesgetDDMFormValues(long ddmStructureId, String fieldNamespace, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DDMFormValuesgetDDMFormValues(DDMForm ddmForm, String serializedJSONDDMFormValues) static StringgetDDMFormValuesJSONString(DDMFormValues ddmFormValues) static DDMFormLayoutgetDefaultDDMFormLayout(DDMForm ddmForm) static SerializablegetDisplayFieldValue(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, Serializable fieldValue, String type) static FieldsgetFields(long ddmStructureId, long ddmTemplateId, com.liferay.portal.kernel.service.ServiceContext serviceContext) static FieldsgetFields(long ddmStructureId, long ddmTemplateId, String fieldNamespace, com.liferay.portal.kernel.service.ServiceContext serviceContext) static FieldsgetFields(long ddmStructureId, DDMFormValues ddmFormValues) static FieldsgetFields(long ddmStructureId, com.liferay.portal.kernel.service.ServiceContext serviceContext) static FieldsgetFields(long ddmStructureId, String fieldNamespace, com.liferay.portal.kernel.service.ServiceContext serviceContext) static SerializablegetIndexedFieldValue(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 FieldsmergeFields(Fields newFields, Fields existingFields) static DDMFormupdateDDMFormDefaultLocale(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
-