Liferay 6.1.0-ce-rc1

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 String getRecordFileUploadPath(DDLRecord record)
           
static JSONObject getRecordJSONObject(DDLRecord record, ThemeDisplay themeDisplay)
           
static JSONArray getRecordSetJSONArray(DDLRecordSet recordSet)
           
static JSONArray getRecordsJSONArray(DDLRecordSet recordSet, ThemeDisplay themeDisplay)
           
static JSONArray getRecordsJSONArray(List<DDLRecord> records, ThemeDisplay themeDisplay)
           
static String getTemplateContent(long ddmTemplateId, DDLRecordSet recordSet, ThemeDisplay themeDisplay, RenderRequest renderRequest, RenderResponse renderResponse)
           
static String storeRecordFieldFile(DDLRecord record, String fieldName, InputStream inputStream)
           
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)

getRecordFileUploadPath

public static String getRecordFileUploadPath(DDLRecord record)

getRecordJSONObject

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

getRecordSetJSONArray

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

getRecordsJSONArray

public static JSONArray getRecordsJSONArray(DDLRecordSet recordSet,
                                            ThemeDisplay themeDisplay)
                                     throws Exception
Throws:
Exception

getRecordsJSONArray

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

getTemplateContent

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

storeRecordFieldFile

public static String storeRecordFieldFile(DDLRecord record,
                                          String fieldName,
                                          InputStream inputStream)
                                   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

Liferay 6.1.0-ce-rc1