public class DDLRecordServiceWrapper extends java.lang.Object implements DDLRecordService, com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordService>
DDLRecordService
.DDLRecordService
Constructor and Description |
---|
DDLRecordServiceWrapper(DDLRecordService ddlRecordService) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
deleteRecord(long recordId)
Deletes the record and its resources.
|
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
DDLRecord |
getRecord(long recordId)
Returns the record with the ID.
|
java.util.List<DDLRecord> |
getRecords(long recordSetId)
Returns all the records matching the record set ID
|
DDLRecordService |
getWrappedService() |
void |
revertRecord(long recordId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Reverts the record to a given version.
|
void |
setWrappedService(DDLRecordService ddlRecordService) |
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.
|
public DDLRecordServiceWrapper(DDLRecordService ddlRecordService)
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
addRecord
in interface DDLRecordService
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. See DDMFormValues
in the dynamic.data.mapping.api
module.serviceContext
- the service context to be applied. This can set
the UUID, guest permissions, and group permissions for the
record.PortalException
- if a portal exception occurredpublic void deleteRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
deleteRecord
in interface DDLRecordService
recordId
- the primary key of the record to be deletedPortalException
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface DDLRecordService
public DDLRecord getRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
getRecord
in interface DDLRecordService
recordId
- the primary key of the recordPortalException
- if a portal exception occurredpublic java.util.List<DDLRecord> getRecords(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
getRecords
in interface DDLRecordService
recordSetId
- the record's record set IDPortalException
- if a portal exception occurredpublic void revertRecord(long recordId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
revertRecord
in interface DDLRecordService
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.PortalException
- if a portal exception occurredpublic 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
updateRecord
in interface DDLRecordService
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. See DDMFormValues
in the dynamic.data.mapping.api
module.serviceContext
- the service context to be applied. This can set
the record modified date.PortalException
- if a portal exception occurredpublic DDLRecordService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordService>
public void setWrappedService(DDLRecordService ddlRecordService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordService>