Liferay 6.2-ce-ga5

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)
           
protected  String getLayoutName(long groupId, boolean privateLayout, long layoutId, String languageId)
           
 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)
          Deprecated. As of 7.0.0, with no direct replacement
 boolean isEditable(PortletPreferences preferences, String portletId, long groupId)
          Deprecated. As of 7.0.0, with no direct replacement
 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

@Deprecated
public boolean isEditable(javax.servlet.http.HttpServletRequest request,
                                     String portletId,
                                     long groupId)
                   throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
isEditable in interface DDL
Throws:
Exception

isEditable

@Deprecated
public boolean isEditable(PortletPreferences preferences,
                                     String portletId,
                                     long groupId)
                   throws Exception
Deprecated. As of 7.0.0, with no direct replacement

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)

getLayoutName

protected String getLayoutName(long groupId,
                               boolean privateLayout,
                               long layoutId,
                               String languageId)

Liferay 6.2-ce-ga5