Liferay 6.2-ce-ga5

com.liferay.portlet.dynamicdatamapping.util
Class DDMImpl

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.util.DDMImpl
All Implemented Interfaces:
DDM

public class DDMImpl
extends Object
implements DDM


Field Summary
static String FIELDS_DISPLAY_NAME
           
static String INSTANCE_SEPARATOR
           
static String TYPE_CHECKBOX
           
static String TYPE_DDM_DATE
           
static String TYPE_DDM_DOCUMENTLIBRARY
           
static String TYPE_DDM_IMAGE
           
static String TYPE_DDM_LINK_TO_PAGE
           
static String TYPE_DDM_TEXT_HTML
           
static String TYPE_RADIO
           
static String TYPE_SELECT
           
 
Constructor Summary
DDMImpl()
           
 
Method Summary
protected  Field createField(DDMStructure ddmStructure, String fieldName, List<Serializable> fieldValues, ServiceContext serviceContext)
           
 DDMDisplay getDDMDisplay(ServiceContext serviceContext)
           
protected  DDMStructure getDDMStructure(long ddmStructureId, long ddmTemplateId)
           
 Serializable getDisplayFieldValue(ThemeDisplay themeDisplay, Serializable fieldValue, String type)
           
protected  List<String> getFieldNames(String fieldNamespace, String fieldName, ServiceContext serviceContext)
           
 Fields getFields(long ddmStructureId, long ddmTemplateId, ServiceContext serviceContext)
           
 Fields getFields(long ddmStructureId, long ddmTemplateId, String fieldNamespace, ServiceContext serviceContext)
           
 Fields getFields(long ddmStructureId, ServiceContext serviceContext)
           
 Fields getFields(long ddmStructureId, String fieldNamespace, ServiceContext serviceContext)
           
 String[] getFieldsDisplayValues(Field fieldsDisplayField)
           
protected  List<Serializable> getFieldValues(DDMStructure ddmStructure, String fieldName, String fieldNamespace, ServiceContext serviceContext)
           
protected  byte[] getImageBytes(UploadRequest uploadRequest, String fieldNameValue)
           
protected  String getImageFieldValue(UploadRequest uploadRequest, String fieldNameValue)
           
 Serializable getIndexedFieldValue(Serializable fieldValue, String type)
           
 OrderByComparator getStructureOrderByComparator(String orderByCol, String orderByType)
           
 OrderByComparator getTemplateOrderByComparator(String orderByCol, String orderByType)
           
 Fields mergeFields(Fields newFields, Fields existingFields)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELDS_DISPLAY_NAME

public static final String FIELDS_DISPLAY_NAME
See Also:
Constant Field Values

INSTANCE_SEPARATOR

public static final String INSTANCE_SEPARATOR
See Also:
Constant Field Values

TYPE_CHECKBOX

public static final String TYPE_CHECKBOX
See Also:
Constant Field Values

TYPE_DDM_DATE

public static final String TYPE_DDM_DATE
See Also:
Constant Field Values

TYPE_DDM_DOCUMENTLIBRARY

public static final String TYPE_DDM_DOCUMENTLIBRARY
See Also:
Constant Field Values

TYPE_DDM_IMAGE

public static final String TYPE_DDM_IMAGE
See Also:
Constant Field Values

TYPE_DDM_LINK_TO_PAGE

public static final String TYPE_DDM_LINK_TO_PAGE
See Also:
Constant Field Values

TYPE_DDM_TEXT_HTML

public static final String TYPE_DDM_TEXT_HTML
See Also:
Constant Field Values

TYPE_RADIO

public static final String TYPE_RADIO
See Also:
Constant Field Values

TYPE_SELECT

public static final String TYPE_SELECT
See Also:
Constant Field Values
Constructor Detail

DDMImpl

public DDMImpl()
Method Detail

getDDMDisplay

public DDMDisplay getDDMDisplay(ServiceContext serviceContext)
Specified by:
getDDMDisplay in interface DDM

getDisplayFieldValue

public Serializable getDisplayFieldValue(ThemeDisplay themeDisplay,
                                         Serializable fieldValue,
                                         String type)
                                  throws Exception
Specified by:
getDisplayFieldValue in interface DDM
Throws:
Exception

getFields

public Fields getFields(long ddmStructureId,
                        long ddmTemplateId,
                        ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Specified by:
getFields in interface DDM
Throws:
PortalException
SystemException

getFields

public Fields getFields(long ddmStructureId,
                        long ddmTemplateId,
                        String fieldNamespace,
                        ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Specified by:
getFields in interface DDM
Throws:
PortalException
SystemException

getFields

public Fields getFields(long ddmStructureId,
                        ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Specified by:
getFields in interface DDM
Throws:
PortalException
SystemException

getFields

public Fields getFields(long ddmStructureId,
                        String fieldNamespace,
                        ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Specified by:
getFields in interface DDM
Throws:
PortalException
SystemException

getFieldsDisplayValues

public String[] getFieldsDisplayValues(Field fieldsDisplayField)
                                throws Exception
Specified by:
getFieldsDisplayValues in interface DDM
Throws:
Exception

getIndexedFieldValue

public Serializable getIndexedFieldValue(Serializable fieldValue,
                                         String type)
                                  throws Exception
Specified by:
getIndexedFieldValue in interface DDM
Throws:
Exception

getStructureOrderByComparator

public OrderByComparator getStructureOrderByComparator(String orderByCol,
                                                       String orderByType)
Specified by:
getStructureOrderByComparator in interface DDM

getTemplateOrderByComparator

public OrderByComparator getTemplateOrderByComparator(String orderByCol,
                                                      String orderByType)
Specified by:
getTemplateOrderByComparator in interface DDM

mergeFields

public Fields mergeFields(Fields newFields,
                          Fields existingFields)
Specified by:
mergeFields in interface DDM

createField

protected Field createField(DDMStructure ddmStructure,
                            String fieldName,
                            List<Serializable> fieldValues,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getDDMStructure

protected DDMStructure getDDMStructure(long ddmStructureId,
                                       long ddmTemplateId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getFieldNames

protected List<String> getFieldNames(String fieldNamespace,
                                     String fieldName,
                                     ServiceContext serviceContext)

getFieldValues

protected List<Serializable> getFieldValues(DDMStructure ddmStructure,
                                            String fieldName,
                                            String fieldNamespace,
                                            ServiceContext serviceContext)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

getImageBytes

protected byte[] getImageBytes(UploadRequest uploadRequest,
                               String fieldNameValue)
                        throws Exception
Throws:
Exception

getImageFieldValue

protected String getImageFieldValue(UploadRequest uploadRequest,
                                    String fieldNameValue)

Liferay 6.2-ce-ga5