Liferay 6.2.0-ce-m4

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 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 String getFileUploadPath(BaseModel<?> baseModel)
           
static OrderByComparator getStructureOrderByComparator(String orderByCol, String orderByType)
           
static OrderByComparator getTemplateOrderByComparator(String orderByCol, String orderByType)
           
static Fields mergeFields(Fields newFields, Fields existingFields)
           
static void sendFieldFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Field field, int valueIndex)
           
 void setDDM(DDM ddm)
           
static void uploadFieldFile(long structureId, long storageId, BaseModel<?> baseModel, String fieldName, ServiceContext serviceContext)
           
static void uploadFieldFile(long structureId, long storageId, BaseModel<?> baseModel, String fieldName, String fieldNamespace, ServiceContext serviceContext)
           
 
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()

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

getFileUploadPath

public static String getFileUploadPath(BaseModel<?> baseModel)

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)

sendFieldFile

public static void sendFieldFile(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 Field field,
                                 int valueIndex)
                          throws Exception
Throws:
Exception

uploadFieldFile

public static void uploadFieldFile(long structureId,
                                   long storageId,
                                   BaseModel<?> baseModel,
                                   String fieldName,
                                   ServiceContext serviceContext)
                            throws Exception
Throws:
Exception

uploadFieldFile

public static void uploadFieldFile(long structureId,
                                   long storageId,
                                   BaseModel<?> baseModel,
                                   String fieldName,
                                   String fieldNamespace,
                                   ServiceContext serviceContext)
                            throws Exception
Throws:
Exception

setDDM

public void setDDM(DDM ddm)

Liferay 6.2.0-ce-m4