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