Liferay 6.2-ce-ga5

com.liferay.portlet.dynamicdatalists.util
Class DDLUtil

java.lang.Object
  extended by com.liferay.portlet.dynamicdatalists.util.DDLUtil

@ProviderType
public class DDLUtil
extends Object


Constructor Summary
DDLUtil()
           
 
Method Summary
static DDL getDDL()
           
static JSONObject getRecordJSONObject(DDLRecord record)
           
static JSONObject getRecordJSONObject(DDLRecord record, boolean latestRecordVersion)
           
static List<DDLRecord> getRecords(Hits hits)
           
static JSONArray getRecordSetJSONArray(DDLRecordSet recordSet)
           
static JSONArray getRecordsJSONArray(List<DDLRecord> records)
           
static JSONArray getRecordsJSONArray(List<DDLRecord> records, boolean latestRecordVersion)
           
static String getTemplateContent(long ddmTemplateId, DDLRecordSet recordSet, ThemeDisplay themeDisplay, RenderRequest renderRequest, RenderResponse renderResponse)
           
static boolean isEditable(javax.servlet.http.HttpServletRequest request, String portletId, long groupId)
          Deprecated. As of 7.0.0, with no direct replacement
static boolean isEditable(PortletPreferences preferences, String portletId, long groupId)
          Deprecated. As of 7.0.0, with no direct replacement
 void setDDL(DDL ddl)
           
static DDLRecord updateRecord(long recordId, long recordSetId, boolean mergeFields, boolean checkPermission, ServiceContext serviceContext)
           
static 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

DDLUtil

public DDLUtil()
Method Detail

getDDL

public static DDL getDDL()

getRecordJSONObject

public static JSONObject getRecordJSONObject(DDLRecord record)
                                      throws Exception
Throws:
Exception

getRecordJSONObject

public static JSONObject getRecordJSONObject(DDLRecord record,
                                             boolean latestRecordVersion)
                                      throws Exception
Throws:
Exception

getRecords

public static List<DDLRecord> getRecords(Hits hits)
                                  throws Exception
Throws:
Exception

getRecordSetJSONArray

public static JSONArray getRecordSetJSONArray(DDLRecordSet recordSet)
                                       throws Exception
Throws:
Exception

getRecordsJSONArray

public static JSONArray getRecordsJSONArray(List<DDLRecord> records)
                                     throws Exception
Throws:
Exception

getRecordsJSONArray

public static JSONArray getRecordsJSONArray(List<DDLRecord> records,
                                            boolean latestRecordVersion)
                                     throws Exception
Throws:
Exception

getTemplateContent

public static String getTemplateContent(long ddmTemplateId,
                                        DDLRecordSet recordSet,
                                        ThemeDisplay themeDisplay,
                                        RenderRequest renderRequest,
                                        RenderResponse renderResponse)
                                 throws Exception
Throws:
Exception

isEditable

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

Throws:
Exception

isEditable

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

Throws:
Exception

updateRecord

public static DDLRecord updateRecord(long recordId,
                                     long recordSetId,
                                     boolean mergeFields,
                                     boolean checkPermission,
                                     ServiceContext serviceContext)
                              throws Exception
Throws:
Exception

updateRecord

public static DDLRecord updateRecord(long recordId,
                                     long recordSetId,
                                     boolean mergeFields,
                                     ServiceContext serviceContext)
                              throws Exception
Throws:
Exception

setDDL

public void setDDL(DDL ddl)

Liferay 6.2-ce-ga5