Liferay 6.1.2-ce-ga3

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)
           
protected  String getFileEntryTitle(String uuid, long groupId)
           
 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)
           
 boolean isEditable(javax.servlet.http.HttpServletRequest request, String portletId, long groupId)
           
 boolean isEditable(PortletPreferences preferences, String portletId, long groupId)
           
protected  boolean isEditable(String portletId, long groupId, boolean defaultValue)
           
 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)
           
 DDLRecord updateRecord(long recordId, long recordSetId, boolean mergeFields, boolean checkPermission, ServiceContext serviceContext)
           
 DDLRecord updateRecord(long recordId, long recordSetId, boolean mergeFields, ServiceContext serviceContext)
           
 String uploadRecordFieldFile(DDLRecord record, String fieldName, ServiceContext serviceContext)
           
protected  void uploadRecordFieldFiles(DDLRecord record, 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

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

isEditable

public boolean isEditable(javax.servlet.http.HttpServletRequest request,
                          String portletId,
                          long groupId)
                   throws Exception
Specified by:
isEditable in interface DDL
Throws:
Exception

isEditable

public boolean isEditable(PortletPreferences preferences,
                          String portletId,
                          long groupId)
                   throws Exception
Specified by:
isEditable 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

updateRecord

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

updateRecord

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

uploadRecordFieldFile

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

getFileEntryTitle

protected String getFileEntryTitle(String uuid,
                                   long groupId)

isEditable

protected boolean isEditable(String portletId,
                             long groupId,
                             boolean defaultValue)
                      throws Exception
Throws:
Exception

uploadRecordFieldFiles

protected void uploadRecordFieldFiles(DDLRecord record,
                                      ServiceContext serviceContext)
                               throws Exception
Throws:
Exception

Liferay 6.1.2-ce-ga3