com.liferay.portlet.dynamicdatamapping.util
Class DDMUtil
java.lang.Object
com.liferay.portlet.dynamicdatamapping.util.DDMUtil
public class DDMUtil
- extends java.lang.Object
- Author:
- Eduardo Lundgren, Marcellus Tavares
|
Method Summary |
static DDM |
getDDM()
|
static DDMDisplay |
getDDMDisplay(ServiceContext serviceContext)
|
static java.io.Serializable |
getDisplayFieldValue(ThemeDisplay themeDisplay,
java.io.Serializable fieldValue,
java.lang.String type)
|
static Fields |
getFields(long ddmStructureId,
long ddmTemplateId,
ServiceContext serviceContext)
|
static Fields |
getFields(long ddmStructureId,
long ddmTemplateId,
java.lang.String fieldNamespace,
ServiceContext serviceContext)
|
static Fields |
getFields(long ddmStructureId,
ServiceContext serviceContext)
|
static Fields |
getFields(long ddmStructureId,
java.lang.String fieldNamespace,
ServiceContext serviceContext)
|
static java.lang.String[] |
getFieldsDisplayValues(Field fieldsDisplayField)
|
static java.io.Serializable |
getIndexedFieldValue(java.io.Serializable fieldValue,
java.lang.String type)
|
static OrderByComparator |
getStructureOrderByComparator(java.lang.String orderByCol,
java.lang.String orderByType)
|
static OrderByComparator |
getTemplateOrderByComparator(java.lang.String orderByCol,
java.lang.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(ServiceContext serviceContext)
getDisplayFieldValue
public static java.io.Serializable getDisplayFieldValue(ThemeDisplay themeDisplay,
java.io.Serializable fieldValue,
java.lang.String type)
throws java.lang.Exception
- Throws:
java.lang.Exception
getFields
public static Fields getFields(long ddmStructureId,
long ddmTemplateId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFields
public static Fields getFields(long ddmStructureId,
long ddmTemplateId,
java.lang.String fieldNamespace,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFields
public static Fields getFields(long ddmStructureId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFields
public static Fields getFields(long ddmStructureId,
java.lang.String fieldNamespace,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldsDisplayValues
public static java.lang.String[] getFieldsDisplayValues(Field fieldsDisplayField)
throws java.lang.Exception
- Throws:
java.lang.Exception
getIndexedFieldValue
public static java.io.Serializable getIndexedFieldValue(java.io.Serializable fieldValue,
java.lang.String type)
throws java.lang.Exception
- Throws:
java.lang.Exception
getStructureOrderByComparator
public static OrderByComparator getStructureOrderByComparator(java.lang.String orderByCol,
java.lang.String orderByType)
getTemplateOrderByComparator
public static OrderByComparator getTemplateOrderByComparator(java.lang.String orderByCol,
java.lang.String orderByType)
mergeFields
public static Fields mergeFields(Fields newFields,
Fields existingFields)
setDDM
public void setDDM(DDM ddm)