Liferay 6.1.0-ce-ga1

com.liferay.portlet.dynamicdatalists.util
Class DDLUtil

java.lang.Object
  extended by com.liferay.portlet.dynamicdatalists.util.DDLUtil

public class DDLUtil
extends Object


Constructor Summary
DDLUtil()
           
 
Method Summary
static void addAllReservedEls(Element rootElement, Map<String,String> tokens, DDLRecordSet recordSet)
           
static DDL getDDL()
           
static Fields getFields(UploadPortletRequest uploadPortletRequest, long ddmStructureId)
           
static Fields getFields(UploadPortletRequest uploadPortletRequest, long ddmStructureId, long ddmTemplateId)
           
static void getRecordFileUpload(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, DDLRecord record, String fieldName)
           
static String getRecordFileUploadPath(DDLRecord record)
           
static JSONObject getRecordJSONObject(DDLRecord record)
           
static JSONObject getRecordJSONObject(DDLRecord record, boolean latestRecordVersion)
           
static JSONArray getRecordSetJSONArray(DDLRecordSet recordSet)
           
static JSONArray getRecordsJSONArray(List<DDLRecord> records)
           
static JSONArray getRecordsJSONArray(List<DDLRecord> records, boolean latestRecordVersion)
           
static String getTemplateContent(long ddmTemplateId, DDLRecordSet recordSet, ThemeDisplay themeDisplay, RenderRequest renderRequest, RenderResponse renderResponse)
           
static void sendRecordFileUpload(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, long recordId, String fieldName)
           
 void setDDL(DDL ddl)
           
static String storeRecordFieldFile(DDLRecord record, String fieldName, InputStream inputStream)
           
static DDLRecord updateRecord(UploadPortletRequest uploadPortletRequest, long recordId, long recordSetId, boolean mergeFields)
           
static DDLRecord updateRecord(UploadPortletRequest uploadPortletRequest, long recordId, long recordSetId, boolean mergeFields, boolean checkPermission)
           
static void uploadRecordFieldFile(DDLRecord record, String fieldName, UploadPortletRequest uploadPortletRequest, ServiceContext serviceContext)
           
static void uploadRecordFieldFiles(DDLRecord record, UploadPortletRequest uploadPortletRequest, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDLUtil

public DDLUtil()
Method Detail

addAllReservedEls

public static void addAllReservedEls(Element rootElement,
                                     Map<String,String> tokens,
                                     DDLRecordSet recordSet)

getDDL

public static DDL getDDL()

getFields

public static Fields getFields(UploadPortletRequest uploadPortletRequest,
                               long ddmStructureId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getFields

public static Fields getFields(UploadPortletRequest uploadPortletRequest,
                               long ddmStructureId,
                               long ddmTemplateId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getRecordFileUpload

public static void getRecordFileUpload(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       DDLRecord record,
                                       String fieldName)
                                throws Exception
Throws:
Exception

getRecordFileUploadPath

public static String getRecordFileUploadPath(DDLRecord record)

getRecordJSONObject

public static JSONObject getRecordJSONObject(DDLRecord record)
                                      throws Exception
Throws:
Exception

getRecordJSONObject

public static JSONObject getRecordJSONObject(DDLRecord record,
                                             boolean latestRecordVersion)
                                      throws Exception
Throws:
Exception

getRecordSetJSONArray

public static JSONArray getRecordSetJSONArray(DDLRecordSet recordSet)
                                       throws Exception
Throws:
Exception

getRecordsJSONArray

public static JSONArray getRecordsJSONArray(List<DDLRecord> records)
                                     throws Exception
Throws:
Exception

getRecordsJSONArray

public static JSONArray getRecordsJSONArray(List<DDLRecord> records,
                                            boolean latestRecordVersion)
                                     throws Exception
Throws:
Exception

getTemplateContent

public static String getTemplateContent(long ddmTemplateId,
                                        DDLRecordSet recordSet,
                                        ThemeDisplay themeDisplay,
                                        RenderRequest renderRequest,
                                        RenderResponse renderResponse)
                                 throws Exception
Throws:
Exception

sendRecordFileUpload

public static void sendRecordFileUpload(javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response,
                                        long recordId,
                                        String fieldName)
                                 throws Exception
Throws:
Exception

storeRecordFieldFile

public static String storeRecordFieldFile(DDLRecord record,
                                          String fieldName,
                                          InputStream inputStream)
                                   throws Exception
Throws:
Exception

updateRecord

public static DDLRecord updateRecord(UploadPortletRequest uploadPortletRequest,
                                     long recordId,
                                     long recordSetId,
                                     boolean mergeFields)
                              throws Exception
Throws:
Exception

updateRecord

public static DDLRecord updateRecord(UploadPortletRequest uploadPortletRequest,
                                     long recordId,
                                     long recordSetId,
                                     boolean mergeFields,
                                     boolean checkPermission)
                              throws Exception
Throws:
Exception

uploadRecordFieldFile

public static void uploadRecordFieldFile(DDLRecord record,
                                         String fieldName,
                                         UploadPortletRequest uploadPortletRequest,
                                         ServiceContext serviceContext)
                                  throws Exception
Throws:
Exception

uploadRecordFieldFiles

public static void uploadRecordFieldFiles(DDLRecord record,
                                          UploadPortletRequest uploadPortletRequest,
                                          ServiceContext serviceContext)
                                   throws Exception
Throws:
Exception

setDDL

public void setDDL(DDL ddl)

Liferay 6.1.0-ce-ga1