com.liferay.portlet.dynamicdatalists.util
Interface DDL


public interface DDL

Author:
Eduardo Lundgren, Marcellus Tavares

Method Summary
 JSONObject getRecordJSONObject(DDLRecord record)
           
 JSONObject getRecordJSONObject(DDLRecord record, boolean latestRecordVersion)
           
 java.util.List<DDLRecord> getRecords(Hits hits)
           
 JSONArray getRecordSetJSONArray(DDLRecordSet recordSet)
           
 JSONArray getRecordsJSONArray(DDLRecordSet recordSet)
           
 JSONArray getRecordsJSONArray(java.util.List<DDLRecord> records)
           
 JSONArray getRecordsJSONArray(java.util.List<DDLRecord> records, boolean latestRecordVersion)
           
 java.lang.String getTemplateContent(long ddmTemplateId, DDLRecordSet recordSet, ThemeDisplay themeDisplay, javax.portlet.RenderRequest renderRequest, javax.portlet.RenderResponse renderResponse)
           
 boolean isEditable(javax.servlet.http.HttpServletRequest request, java.lang.String portletId, long groupId)
           
 boolean isEditable(javax.portlet.PortletPreferences preferences, java.lang.String portletId, long groupId)
           
 DDLRecord updateRecord(long recordId, long recordSetId, boolean mergeFields, boolean checkPermission, ServiceContext serviceContext)
           
 DDLRecord updateRecord(long recordId, long recordSetId, boolean mergeFields, ServiceContext serviceContext)
           
 

Method Detail

getRecordJSONObject

JSONObject getRecordJSONObject(DDLRecord record)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getRecordJSONObject

JSONObject getRecordJSONObject(DDLRecord record,
                               boolean latestRecordVersion)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getRecords

java.util.List<DDLRecord> getRecords(Hits hits)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getRecordSetJSONArray

JSONArray getRecordSetJSONArray(DDLRecordSet recordSet)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getRecordsJSONArray

JSONArray getRecordsJSONArray(DDLRecordSet recordSet)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getRecordsJSONArray

JSONArray getRecordsJSONArray(java.util.List<DDLRecord> records)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getRecordsJSONArray

JSONArray getRecordsJSONArray(java.util.List<DDLRecord> records,
                              boolean latestRecordVersion)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getTemplateContent

java.lang.String getTemplateContent(long ddmTemplateId,
                                    DDLRecordSet recordSet,
                                    ThemeDisplay themeDisplay,
                                    javax.portlet.RenderRequest renderRequest,
                                    javax.portlet.RenderResponse renderResponse)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

isEditable

boolean isEditable(javax.servlet.http.HttpServletRequest request,
                   java.lang.String portletId,
                   long groupId)
                   throws java.lang.Exception
Throws:
java.lang.Exception

isEditable

boolean isEditable(javax.portlet.PortletPreferences preferences,
                   java.lang.String portletId,
                   long groupId)
                   throws java.lang.Exception
Throws:
java.lang.Exception

updateRecord

DDLRecord updateRecord(long recordId,
                       long recordSetId,
                       boolean mergeFields,
                       boolean checkPermission,
                       ServiceContext serviceContext)
                       throws java.lang.Exception
Throws:
java.lang.Exception

updateRecord

DDLRecord updateRecord(long recordId,
                       long recordSetId,
                       boolean mergeFields,
                       ServiceContext serviceContext)
                       throws java.lang.Exception
Throws:
java.lang.Exception