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