Class DDLRecordServiceWrapper
java.lang.Object
com.liferay.dynamic.data.lists.service.DDLRecordServiceWrapper
- All Implemented Interfaces:
DDLRecordService
,com.liferay.portal.kernel.service.BaseService
,com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordService>
public class DDLRecordServiceWrapper
extends Object
implements DDLRecordService, com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordService>
Provides a wrapper for
DDLRecordService
.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRecord
(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.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.void
deleteRecord
(long recordId) Deletes the record and its resources.Returns the OSGi service identifier.getRecord
(long recordId) Returns the record with the ID.getRecords
(long recordSetId) Returns all the records matching the record set IDvoid
revertRecord
(long recordId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) Reverts the record to a given version.void
setWrappedService
(DDLRecordService ddlRecordService) 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.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
-
DDLRecordServiceWrapper
public DDLRecordServiceWrapper() -
DDLRecordServiceWrapper
-
-
Method Details
-
addRecord
public 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.- Specified by:
addRecord
in interfaceDDLRecordService
- 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:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
addRecord
public 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.- Specified by:
addRecord
in interfaceDDLRecordService
- 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:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
deleteRecord
public void deleteRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException Deletes the record and its resources.- Specified by:
deleteRecord
in interfaceDDLRecordService
- Parameters:
recordId
- the primary key of the record to be deleted- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceDDLRecordService
- Returns:
- the OSGi service identifier
-
getRecord
public DDLRecord getRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException Returns the record with the ID.- Specified by:
getRecord
in interfaceDDLRecordService
- Parameters:
recordId
- the primary key of the record- Returns:
- the record with the ID
- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
getRecords
public List<DDLRecord> getRecords(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException Returns all the records matching the record set ID- Specified by:
getRecords
in interfaceDDLRecordService
- Parameters:
recordSetId
- the record's record set ID- Returns:
- the matching records
- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
revertRecord
public 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.- Specified by:
revertRecord
in interfaceDDLRecordService
- 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:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
updateRecord
public 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.- Specified by:
updateRecord
in interfaceDDLRecordService
- 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:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
updateRecord
public 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.- Specified by:
updateRecord
in interfaceDDLRecordService
- 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:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<DDLRecordService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<DDLRecordService>
-