@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,
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(java.util.List<DDLRecord> records,
boolean latestRecordVersion,
java.util.Locale locale)
Returns the records of the locale as a JSON Array.
|
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.
|
com.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 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)
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