@ProviderType
public interface DDL
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
SELECTED_FIELD_NAMES |
Modifier and Type | Method and Description |
---|---|
com.liferay.portal.kernel.json.JSONObject |
getRecordJSONObject(DDLRecord record)
Deprecated.
As of Wilberforce (7.0.x), replaced by
#getRecordJSONObject(DDLRecord,boolean,locale) |
com.liferay.portal.kernel.json.JSONObject |
getRecordJSONObject(DDLRecord record,
boolean latestRecordVersion,
java.util.Locale locale)
Returns the localized value of the record as a JSON Object.
|
com.liferay.portal.kernel.json.JSONArray |
getRecordSetJSONArray(DDLRecordSet recordSet,
java.util.Locale locale)
Returns the localized record set as a JSON Array.
|
com.liferay.portal.kernel.json.JSONArray |
getRecordsJSONArray(DDLRecordSet recordSet)
Deprecated.
As of Wilberforce (7.0.x), replaced by
#getRecordsJSONArray(List,boolean,locale) |
com.liferay.portal.kernel.json.JSONArray |
getRecordsJSONArray(java.util.List<DDLRecord> records)
Deprecated.
As of Wilberforce (7.0.x), replaced by
#getRecordsJSONArray(List,boolean,locale) |
com.liferay.portal.kernel.json.JSONArray |
getRecordsJSONArray(java.util.List<DDLRecord> records,
boolean latestRecordVersion,
java.util.Locale locale)
Returns the records of the locale as a JSON Array.
|
boolean |
isEditable(javax.servlet.http.HttpServletRequest request,
java.lang.String portletId,
long groupId)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
boolean |
isEditable(javax.portlet.PortletPreferences preferences,
java.lang.String portletId,
long groupId)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
DDLRecord |
updateRecord(long recordId,
long recordSetId,
boolean mergeFields,
boolean checkPermission,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the record according to the form parameters passed in the
request.
|
DDLRecord |
updateRecord(long recordId,
long recordSetId,
boolean mergeFields,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Wilberforce (7.0.x), replaced by
updateRecord(long,long,boolean,boolean,ServiceContext) |
@Deprecated com.liferay.portal.kernel.json.JSONObject getRecordJSONObject(DDLRecord record) throws java.lang.Exception
#getRecordJSONObject(DDLRecord,boolean,locale)
The Theme display locale is used as the default locale.
record
- the record to transformjava.lang.Exception
- if an unexpected exception occurredcom.liferay.portal.kernel.json.JSONObject getRecordJSONObject(DDLRecord record, boolean latestRecordVersion, java.util.Locale locale) throws java.lang.Exception
record
- the record to transformlatestRecordVersion
- whether the latest version of the record is
to be transformed regardless of its workflow status, even if it's
in a pending or draft state.locale
- a locale to use to retrieve the localized values of the
recordjava.lang.Exception
- if an unexpected exception occurredcom.liferay.portal.kernel.json.JSONArray getRecordSetJSONArray(DDLRecordSet recordSet, java.util.Locale locale) throws java.lang.Exception
recordSet
- the record set to transformlocale
- a locale to use to retrieve the localized values of the
record setjava.lang.Exception
- if an unexpected exception occurred@Deprecated com.liferay.portal.kernel.json.JSONArray getRecordsJSONArray(DDLRecordSet recordSet) throws java.lang.Exception
#getRecordsJSONArray(List,boolean,locale)
The Theme display locale is used as the default locale and the latest record version is not used if its workflow status is not approved.
recordSet
- the record set from which to extract recordsjava.lang.Exception
- if an unexpected exception occurred@Deprecated com.liferay.portal.kernel.json.JSONArray getRecordsJSONArray(java.util.List<DDLRecord> records) throws java.lang.Exception
#getRecordsJSONArray(List,boolean,locale)
The Theme display locale is used as the default locale and the latest version of the record is not used if its workflow status is approved.
records
- the records to transformjava.lang.Exception
- if an unexpected exception occurredcom.liferay.portal.kernel.json.JSONArray getRecordsJSONArray(java.util.List<DDLRecord> records, boolean latestRecordVersion, java.util.Locale locale) throws java.lang.Exception
records
- the records to transformlatestRecordVersion
- whether the latest version of each record is
to be transformed regardless of its workflow status, even if the
record is in a pending or draft state.locale
- a locale used to retrieve the localized values of the
recordjava.lang.Exception
- if an unexpected exception occurredgetRecordJSONObject(DDLRecord, boolean, Locale)
@Deprecated boolean isEditable(javax.servlet.http.HttpServletRequest request, java.lang.String portletId, long groupId) throws java.lang.Exception
java.lang.Exception
@Deprecated boolean isEditable(javax.portlet.PortletPreferences preferences, java.lang.String portletId, long groupId) throws java.lang.Exception
java.lang.Exception
DDLRecord updateRecord(long recordId, long recordSetId, boolean mergeFields, boolean checkPermission, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
recordId
- the record ID to updaterecordSetId
- the record set ID of the recordmergeFields
- whether to perform the merge operation for the
existing record. If true
, all missing localized
record values are updated for the existing record.checkPermission
- whether to use the permission checker to validate
credentialsserviceContext
- the service context to be appliedjava.lang.Exception
- if an unexpected exception occurred@Deprecated DDLRecord updateRecord(long recordId, long recordSetId, boolean mergeFields, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
updateRecord(long,long,boolean,boolean,ServiceContext)
recordId
- the record ID to updaterecordSetId
- the record set ID of the recordmergeFields
- whether to perform the merge operation for the
existing record. If true
, all missing localized
record values are updated for the existing record.serviceContext
- the service context to be appliedjava.lang.Exception
- if an unexpected exception occurred