Liferay 6.1.0-ce-b4

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)
           
static JSONArray getRecordSetJSONArray(DDLRecordSet recordSet)
           
static JSONArray getRecordsJSONArray(DDLRecordSet recordSet)
           
static JSONArray getRecordsJSONArray(List<DDLRecord> records)
           
static String getTemplateContent(long ddmTemplateId, DDLRecordSet recordSet, ThemeDisplay themeDisplay, RenderRequest renderRequest, RenderResponse renderResponse)
           
static String uploadFieldFile(DDLRecord record, String fieldName, InputStream inputStream)
           
static void uploadRecordFiles(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)
                                      throws Exception
Throws:
Exception

getRecordSetJSONArray

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

getRecordsJSONArray

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

getRecordsJSONArray

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

getTemplateContent

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

uploadFieldFile

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

uploadRecordFiles

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

Liferay 6.1.0-ce-b4