com.liferay.portlet.dynamicdatamapping.util
Class DDMUtil
java.lang.Object
com.liferay.portlet.dynamicdatamapping.util.DDMUtil
public class DDMUtil
- extends Object
|
Method Summary |
static DDM |
getDDM()
|
static DDMDisplay |
getDDMDisplay(long classNameId)
|
static DDMForm |
getDDMForm(long classNameId,
long classPK)
|
static DDMForm |
getDDMForm(PortletRequest portletRequest)
|
static JSONArray |
getDDMFormFieldsJSONArray(DDMStructure ddmStructure,
String script)
|
static JSONArray |
getDDMFormFieldsJSONArray(DDMStructureVersion ddmStructureVersion,
String script)
|
static DDMPermissionHandler |
getDDMPermissionHandler(long classNameId)
|
static DDMFormLayout |
getDefaultDDMFormLayout(DDMForm ddmForm)
|
static Serializable |
getDisplayFieldValue(ThemeDisplay themeDisplay,
Serializable fieldValue,
String type)
|
static Fields |
getFields(long ddmStructureId,
long ddmTemplateId,
ServiceContext serviceContext)
|
static Fields |
getFields(long ddmStructureId,
long ddmTemplateId,
String fieldNamespace,
ServiceContext serviceContext)
|
static Fields |
getFields(long ddmStructureId,
ServiceContext serviceContext)
|
static Fields |
getFields(long ddmStructureId,
String fieldNamespace,
ServiceContext serviceContext)
|
static String[] |
getFieldsDisplayValues(Field fieldsDisplayField)
|
static Serializable |
getIndexedFieldValue(Serializable fieldValue,
String type)
|
static OrderByComparator<DDMStructure> |
getStructureOrderByComparator(String orderByCol,
String orderByType)
|
static OrderByComparator<DDMTemplate> |
getTemplateOrderByComparator(String orderByCol,
String orderByType)
|
static Fields |
mergeFields(Fields newFields,
Fields existingFields)
|
void |
setDDM(DDM ddm)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDMUtil
public DDMUtil()
getDDM
public static DDM getDDM()
getDDMDisplay
public static DDMDisplay getDDMDisplay(long classNameId)
throws PortalException
- Throws:
PortalException
getDDMForm
public static DDMForm getDDMForm(long classNameId,
long classPK)
throws PortalException
- Throws:
PortalException
getDDMForm
public static DDMForm getDDMForm(PortletRequest portletRequest)
throws PortalException
- Throws:
PortalException
getDDMFormFieldsJSONArray
public static JSONArray getDDMFormFieldsJSONArray(DDMStructure ddmStructure,
String script)
getDDMFormFieldsJSONArray
public static JSONArray getDDMFormFieldsJSONArray(DDMStructureVersion ddmStructureVersion,
String script)
getDDMPermissionHandler
public static DDMPermissionHandler getDDMPermissionHandler(long classNameId)
getDefaultDDMFormLayout
public static DDMFormLayout getDefaultDDMFormLayout(DDMForm ddmForm)
getDisplayFieldValue
public static Serializable getDisplayFieldValue(ThemeDisplay themeDisplay,
Serializable fieldValue,
String type)
throws Exception
- Throws:
Exception
getFields
public static Fields getFields(long ddmStructureId,
long ddmTemplateId,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
getFields
public static Fields getFields(long ddmStructureId,
long ddmTemplateId,
String fieldNamespace,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
getFields
public static Fields getFields(long ddmStructureId,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
getFields
public static Fields getFields(long ddmStructureId,
String fieldNamespace,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
getFieldsDisplayValues
public static String[] getFieldsDisplayValues(Field fieldsDisplayField)
throws Exception
- Throws:
Exception
getIndexedFieldValue
public static Serializable getIndexedFieldValue(Serializable fieldValue,
String type)
throws Exception
- Throws:
Exception
getStructureOrderByComparator
public static OrderByComparator<DDMStructure> getStructureOrderByComparator(String orderByCol,
String orderByType)
getTemplateOrderByComparator
public static OrderByComparator<DDMTemplate> getTemplateOrderByComparator(String orderByCol,
String orderByType)
mergeFields
public static Fields mergeFields(Fields newFields,
Fields existingFields)
setDDM
public void setDDM(DDM ddm)