Liferay 6.2-ce-ga5

com.liferay.portlet.dynamicdatamapping.util
Class DDMUtil

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.util.DDMUtil

public class DDMUtil
extends Object


Constructor Summary
DDMUtil()
           
 
Method Summary
static DDM getDDM()
           
static DDMDisplay getDDMDisplay(ServiceContext serviceContext)
           
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 getStructureOrderByComparator(String orderByCol, String orderByType)
           
static OrderByComparator 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
 

Constructor Detail

DDMUtil

public DDMUtil()
Method Detail

getDDM

public static DDM getDDM()

getDDMDisplay

public static DDMDisplay getDDMDisplay(ServiceContext serviceContext)

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,
                               SystemException
Throws:
PortalException
SystemException

getFields

public static Fields getFields(long ddmStructureId,
                               long ddmTemplateId,
                               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,
                               String fieldNamespace,
                               ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

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 getStructureOrderByComparator(String orderByCol,
                                                              String orderByType)

getTemplateOrderByComparator

public static OrderByComparator getTemplateOrderByComparator(String orderByCol,
                                                             String orderByType)

mergeFields

public static Fields mergeFields(Fields newFields,
                                 Fields existingFields)

setDDM

public void setDDM(DDM ddm)

Liferay 6.2-ce-ga5