public class DDLRecordVersionServiceWrapper extends java.lang.Object implements DDLRecordVersionService, com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordVersionService>
DDLRecordVersionService.DDLRecordVersionService| Constructor and Description |
|---|
DDLRecordVersionServiceWrapper() |
DDLRecordVersionServiceWrapper(DDLRecordVersionService ddlRecordVersionService) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
DDLRecordVersion |
getRecordVersion(long recordVersionId)
Returns the record version matching the ID.
|
DDLRecordVersion |
getRecordVersion(long recordId,
java.lang.String version)
Returns a record version matching the record and version.
|
java.util.List<DDLRecordVersion> |
getRecordVersions(long recordId)
Returns all the record versions matching the record.
|
java.util.List<DDLRecordVersion> |
getRecordVersions(long recordId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Returns an ordered range of record versions matching the record.
|
int |
getRecordVersionsCount(long recordId)
Returns the number of record versions matching the record.
|
DDLRecordVersionService |
getWrappedService() |
void |
setWrappedService(DDLRecordVersionService ddlRecordVersionService) |
public DDLRecordVersionServiceWrapper()
public DDLRecordVersionServiceWrapper(DDLRecordVersionService ddlRecordVersionService)
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface DDLRecordVersionServicepublic DDLRecordVersion getRecordVersion(long recordVersionId) throws com.liferay.portal.kernel.exception.PortalException
getRecordVersion in interface DDLRecordVersionServicerecordVersionId - the primary key of the record versionPortalException - if the matching record set could not be found or
if the user did not have the required permission to access the
record setpublic DDLRecordVersion getRecordVersion(long recordId, java.lang.String version) throws com.liferay.portal.kernel.exception.PortalException
getRecordVersion in interface DDLRecordVersionServicerecordId - the primary key of the recordversion - the version of the record to returnPortalException - if the matching record set is not found or if the
user do not have the required permission to access the record setpublic java.util.List<DDLRecordVersion> getRecordVersions(long recordId) throws com.liferay.portal.kernel.exception.PortalException
getRecordVersions in interface DDLRecordVersionServicerecordId - the primary key of the recordPortalException - if a portal exception occurredpublic java.util.List<DDLRecordVersion> getRecordVersions(long recordId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
Useful when paginating results. Returns a maximum of end -
start instances. start and end are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end to QueryUtil.ALL_POS will return the
full result set.
getRecordVersions in interface DDLRecordVersionServicerecordId - the primary key of the recordstart - the lower bound of the range of record versions to returnend - the upper bound of the range of record versions to return
(not inclusive)orderByComparator - the comparator used to order the record
versionsPortalException - if a portal exception occurredpublic int getRecordVersionsCount(long recordId)
throws com.liferay.portal.kernel.exception.PortalException
getRecordVersionsCount in interface DDLRecordVersionServicerecordId - the primary key of the recordPortalException - if a portal exception occurredpublic DDLRecordVersionService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordVersionService>public void setWrappedService(DDLRecordVersionService ddlRecordVersionService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordVersionService>