Liferay 6.2.0

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
protected  String getFileEntryTitle(String uuid, long groupId)
           
 JSONObject getRecordJSONObject(DDLRecord record)
           
 JSONObject getRecordJSONObject(DDLRecord record, boolean latestRecordVersion)
           
 List<DDLRecord> getRecords(Hits hits)
           
 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)
           
 DDLRecord updateRecord(long recordId, long recordSetId, boolean mergeFields, boolean checkPermission, ServiceContext serviceContext)
           
 DDLRecord updateRecord(long recordId, long recordSetId, boolean mergeFields, 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

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

getRecords

public List<DDLRecord> getRecords(Hits hits)
                           throws Exception
Specified by:
getRecords 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

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

getFileEntryTitle

protected String getFileEntryTitle(String uuid,
                                   long groupId)

isEditable

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

Liferay 6.2.0