Class DDLRecordServiceUtil
java.lang.Object
com.liferay.dynamic.data.lists.service.DDLRecordServiceUtil
Provides the remote service utility for DDLRecord. This utility wraps
com.liferay.dynamic.data.lists.service.impl.DDLRecordServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DDLRecord
addRecord
(long groupId, long recordSetId, int displayIndex, com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) Adds a record referencing the record set.static DDLRecord
addRecord
(long groupId, long recordSetId, int displayIndex, Map<String, Serializable> fieldsMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) Adds a record referencing the record set.static void
deleteRecord
(long recordId) Deletes the record and its resources.static String
Returns the OSGi service identifier.static DDLRecord
getRecord
(long recordId) Returns the record with the ID.getRecords
(long recordSetId) Returns all the records matching the record set IDstatic DDLRecordService
static void
revertRecord
(long recordId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) Reverts the record to a given version.static DDLRecord
updateRecord
(long recordId, boolean majorVersion, int displayIndex, com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) Updates a record, replacing its display index and values.static DDLRecord
updateRecord
(long recordId, int displayIndex, Map<String, Serializable> fieldsMap, boolean mergeFields, com.liferay.portal.kernel.service.ServiceContext serviceContext) Updates a record, replacing its display index and values.
-
Constructor Details
-
DDLRecordServiceUtil
public DDLRecordServiceUtil()
-
-
Method Details
-
addRecord
public static DDLRecord addRecord(long groupId, long recordSetId, int displayIndex, com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Adds a record referencing the record set.- Parameters:
groupId
- the primary key of the record's grouprecordSetId
- the primary key of the record setdisplayIndex
- the index position in which the record is displayed in the spreadsheet viewddmFormValues
- the record values. SeeDDMFormValues
in thedynamic.data.mapping.api
module.serviceContext
- the service context to be applied. This can set the UUID, guest permissions, and group permissions for the record.- Returns:
- the record
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred
-
addRecord
public static DDLRecord addRecord(long groupId, long recordSetId, int displayIndex, Map<String, Serializable> fieldsMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalExceptionAdds a record referencing the record set.- Parameters:
groupId
- the primary key of the record's grouprecordSetId
- the primary key of the record setdisplayIndex
- the index position in which the record is displayed in the spreadsheet viewfieldsMap
- the record values. The fieldsMap is a map of field names and its serializable values.serviceContext
- the service context to be applied. This can set the UUID, guest permissions, and group permissions for the record.- Returns:
- the record
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred
-
deleteRecord
public static void deleteRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException Deletes the record and its resources.- Parameters:
recordId
- the primary key of the record to be deleted- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getRecord
public static DDLRecord getRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException Returns the record with the ID.- Parameters:
recordId
- the primary key of the record- Returns:
- the record with the ID
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred
-
getRecords
public static List<DDLRecord> getRecords(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException Returns all the records matching the record set ID- Parameters:
recordSetId
- the record's record set ID- Returns:
- the matching records
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred
-
revertRecord
public static void revertRecord(long recordId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Reverts the record to a given version.- Parameters:
recordId
- the primary key of the recordversion
- the version to be revertedserviceContext
- the service context to be applied. This can set the record modified date.- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred
-
updateRecord
public static DDLRecord updateRecord(long recordId, boolean majorVersion, int displayIndex, com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Updates a record, replacing its display index and values.- Parameters:
recordId
- the primary key of the recordmajorVersion
- whether this update is a major change. A major change increments the record's major version number.displayIndex
- the index position in which the record is displayed in the spreadsheet viewddmFormValues
- the record values. SeeDDMFormValues
in thedynamic.data.mapping.api
module.serviceContext
- the service context to be applied. This can set the record modified date.- Returns:
- the record
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred
-
updateRecord
public static DDLRecord updateRecord(long recordId, int displayIndex, Map<String, Serializable> fieldsMap, boolean mergeFields, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalExceptionUpdates a record, replacing its display index and values.- Parameters:
recordId
- the primary key of the recorddisplayIndex
- the index position in which the record is displayed in the spreadsheet viewfieldsMap
- the record values. The fieldsMap is a map of field names and its serializable values.mergeFields
- whether to merge the new fields with the existing ones; otherwise replace the existing fieldsserviceContext
- the service context to be applied. This can set the record modified date.- Returns:
- the record
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred
-
getService
-