Class DDLRecordVersionServiceWrapper
java.lang.Object
com.liferay.dynamic.data.lists.service.DDLRecordVersionServiceWrapper
- All Implemented Interfaces:
DDLRecordVersionService,com.liferay.portal.kernel.service.BaseService,com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordVersionService>
public class DDLRecordVersionServiceWrapper
extends Object
implements DDLRecordVersionService, com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordVersionService>
Provides a wrapper for
DDLRecordVersionService.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionDDLRecordVersionServiceWrapper(DDLRecordVersionService ddlRecordVersionService) -
Method Summary
Modifier and TypeMethodDescriptionReturns the OSGi service identifier.getRecordVersion(long recordVersionId) Returns the record version matching the ID.getRecordVersion(long recordId, String version) Returns a record version matching the record and version.getRecordVersions(long recordId) Returns all the record versions matching the record.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.intgetRecordVersionsCount(long recordId) Returns the number of record versions matching the record.voidsetWrappedService(DDLRecordVersionService ddlRecordVersionService)
-
Constructor Details
-
DDLRecordVersionServiceWrapper
public DDLRecordVersionServiceWrapper() -
DDLRecordVersionServiceWrapper
-
-
Method Details
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceDDLRecordVersionService- Returns:
- the OSGi service identifier
-
getRecordVersion
public DDLRecordVersion getRecordVersion(long recordVersionId) throws com.liferay.portal.kernel.exception.PortalException Returns the record version matching the ID.- Specified by:
getRecordVersionin interfaceDDLRecordVersionService- Parameters:
recordVersionId- the primary key of the record version- Returns:
- the record version with the ID
- Throws:
PortalException- if the matching record set could not be found or if the user did not have the required permission to access the record setcom.liferay.portal.kernel.exception.PortalException
-
getRecordVersion
public DDLRecordVersion getRecordVersion(long recordId, String version) throws com.liferay.portal.kernel.exception.PortalException Returns a record version matching the record and version.- Specified by:
getRecordVersionin interfaceDDLRecordVersionService- Parameters:
recordId- the primary key of the recordversion- the version of the record to return- Returns:
- the record version macthing the record primary key and version
- Throws:
PortalException- if the matching record set is not found or if the user do not have the required permission to access the record setcom.liferay.portal.kernel.exception.PortalException
-
getRecordVersions
public List<DDLRecordVersion> getRecordVersions(long recordId) throws com.liferay.portal.kernel.exception.PortalException Returns all the record versions matching the record.- Specified by:
getRecordVersionsin interfaceDDLRecordVersionService- Parameters:
recordId- the primary key of the record- Returns:
- the matching record versions
- Throws:
PortalException- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
getRecordVersions
public List<DDLRecordVersion> getRecordVersions(long recordId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException Returns an ordered range of record versions matching the record.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil.ALL_POSwill return the full result set.- Specified by:
getRecordVersionsin interfaceDDLRecordVersionService- Parameters:
recordId- 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 versions- Returns:
- the range of matching record versions ordered by the comparator
- Throws:
PortalException- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
getRecordVersionsCount
public int getRecordVersionsCount(long recordId) throws com.liferay.portal.kernel.exception.PortalException Returns the number of record versions matching the record.- Specified by:
getRecordVersionsCountin interfaceDDLRecordVersionService- Parameters:
recordId- the primary key of the record- Returns:
- the number of matching record versions
- Throws:
PortalException- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
getWrappedService
- Specified by:
getWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<DDLRecordVersionService>
-
setWrappedService
- Specified by:
setWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<DDLRecordVersionService>
-