Liferay 6.1.0-ce-ga1

com.liferay.portlet.dynamicdatalists.util
Class DDLImpl

java.lang.Object
  extended by com.liferay.portlet.dynamicdatalists.util.DDLImpl
All Implemented Interfaces:
DDL

public class DDLImpl
extends Object
implements DDL


Constructor Summary
DDLImpl()
           
 
Method Summary
 void addAllReservedEls(Element rootElement, Map<String,String> tokens, DDLRecordSet recordSet)
           
 Fields getFields(UploadPortletRequest uploadPortletRequest, long ddmStructureId)
           
 Fields getFields(UploadPortletRequest uploadPortletRequest, long ddmStructureId, long ddmTemplateId)
           
 String getRecordFileUploadPath(DDLRecord record)
           
 JSONObject getRecordJSONObject(DDLRecord record)
           
 JSONObject getRecordJSONObject(DDLRecord record, boolean latestRecordVersion)
           
 JSONArray getRecordSetJSONArray(DDLRecordSet recordSet)
           
 JSONArray getRecordsJSONArray(DDLRecordSet recordSet)
           
 JSONArray getRecordsJSONArray(List<DDLRecord> records)
           
 JSONArray getRecordsJSONArray(List<DDLRecord> records, boolean latestRecordVersion)
           
 String getTemplateContent(long ddmTemplateId, DDLRecordSet recordSet, ThemeDisplay themeDisplay, RenderRequest renderRequest, RenderResponse renderResponse)
           
 void sendRecordFileUpload(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, DDLRecord record, String fieldName)
           
 void sendRecordFileUpload(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, long recordId, String fieldName)
           
 String storeRecordFieldFile(DDLRecord record, String fieldName, InputStream inputStream)
           
 DDLRecord updateRecord(UploadPortletRequest uploadPortletRequest, long recordId, long recordSetId, boolean mergeFields)
           
 DDLRecord updateRecord(UploadPortletRequest uploadPortletRequest, long recordId, long recordSetId, boolean mergeFields, boolean checkPermission)
           
 void uploadRecordFieldFile(DDLRecord record, String fieldName, UploadPortletRequest uploadPortletRequest, ServiceContext serviceContext)
           
 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

DDLImpl

public DDLImpl()
Method Detail

addAllReservedEls

public void addAllReservedEls(Element rootElement,
                              Map<String,String> tokens,
                              DDLRecordSet recordSet)
Specified by:
addAllReservedEls in interface DDL

getFields

public Fields getFields(UploadPortletRequest uploadPortletRequest,
                        long ddmStructureId)
                 throws PortalException,
                        SystemException
Specified by:
getFields in interface DDL
Throws:
PortalException
SystemException

getFields

public Fields getFields(UploadPortletRequest uploadPortletRequest,
                        long ddmStructureId,
                        long ddmTemplateId)
                 throws PortalException,
                        SystemException
Specified by:
getFields in interface DDL
Throws:
PortalException
SystemException

getRecordFileUploadPath

public String getRecordFileUploadPath(DDLRecord record)
Specified by:
getRecordFileUploadPath in interface DDL

getRecordJSONObject

public JSONObject getRecordJSONObject(DDLRecord record)
                               throws Exception
Specified by:
getRecordJSONObject in interface DDL
Throws:
Exception

getRecordJSONObject

public JSONObject getRecordJSONObject(DDLRecord record,
                                      boolean latestRecordVersion)
                               throws Exception
Specified by:
getRecordJSONObject in interface DDL
Throws:
Exception

getRecordSetJSONArray

public JSONArray getRecordSetJSONArray(DDLRecordSet recordSet)
                                throws Exception
Specified by:
getRecordSetJSONArray in interface DDL
Throws:
Exception

getRecordsJSONArray

public JSONArray getRecordsJSONArray(DDLRecordSet recordSet)
                              throws Exception
Specified by:
getRecordsJSONArray in interface DDL
Throws:
Exception

getRecordsJSONArray

public JSONArray getRecordsJSONArray(List<DDLRecord> records)
                              throws Exception
Specified by:
getRecordsJSONArray in interface DDL
Throws:
Exception

getRecordsJSONArray

public JSONArray getRecordsJSONArray(List<DDLRecord> records,
                                     boolean latestRecordVersion)
                              throws Exception
Specified by:
getRecordsJSONArray in interface DDL
Throws:
Exception

getTemplateContent

public String getTemplateContent(long ddmTemplateId,
                                 DDLRecordSet recordSet,
                                 ThemeDisplay themeDisplay,
                                 RenderRequest renderRequest,
                                 RenderResponse renderResponse)
                          throws Exception
Specified by:
getTemplateContent in interface DDL
Throws:
Exception

sendRecordFileUpload

public void sendRecordFileUpload(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 DDLRecord record,
                                 String fieldName)
                          throws Exception
Specified by:
sendRecordFileUpload in interface DDL
Throws:
Exception

sendRecordFileUpload

public void sendRecordFileUpload(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 long recordId,
                                 String fieldName)
                          throws Exception
Specified by:
sendRecordFileUpload in interface DDL
Throws:
Exception

storeRecordFieldFile

public String storeRecordFieldFile(DDLRecord record,
                                   String fieldName,
                                   InputStream inputStream)
                            throws Exception
Specified by:
storeRecordFieldFile in interface DDL
Throws:
Exception

updateRecord

public DDLRecord updateRecord(UploadPortletRequest uploadPortletRequest,
                              long recordId,
                              long recordSetId,
                              boolean mergeFields)
                       throws Exception
Specified by:
updateRecord in interface DDL
Throws:
Exception

updateRecord

public DDLRecord updateRecord(UploadPortletRequest uploadPortletRequest,
                              long recordId,
                              long recordSetId,
                              boolean mergeFields,
                              boolean checkPermission)
                       throws Exception
Specified by:
updateRecord in interface DDL
Throws:
Exception

uploadRecordFieldFile

public void uploadRecordFieldFile(DDLRecord record,
                                  String fieldName,
                                  UploadPortletRequest uploadPortletRequest,
                                  ServiceContext serviceContext)
                           throws Exception
Specified by:
uploadRecordFieldFile in interface DDL
Throws:
Exception

uploadRecordFieldFiles

public void uploadRecordFieldFiles(DDLRecord record,
                                   UploadPortletRequest uploadPortletRequest,
                                   ServiceContext serviceContext)
                            throws Exception
Specified by:
uploadRecordFieldFiles in interface DDL
Throws:
Exception

Liferay 6.1.0-ce-ga1