Liferay 6.1.2-ce-ga3

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 getFileUploadPath(BaseModel<?> baseModel)
           
static void sendFieldFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Field field)
           
 void setDDM(DDM ddm)
           
static String uploadFieldFile(long structureId, long storageId, BaseModel<?> baseModel, String fieldName, ServiceContext serviceContext)
           
static String 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

getFileUploadPath

public static String getFileUploadPath(BaseModel<?> baseModel)

sendFieldFile

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

uploadFieldFile

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

uploadFieldFile

public static String 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.1.2-ce-ga3