Class DDLRecordVersionServiceUtil

java.lang.Object
com.liferay.dynamic.data.lists.service.DDLRecordVersionServiceUtil

public class DDLRecordVersionServiceUtil extends Object
Provides the remote service utility for DDLRecordVersion. This utility wraps com.liferay.dynamic.data.lists.service.impl.DDLRecordVersionServiceImpl 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 Details

    • DDLRecordVersionServiceUtil

      public DDLRecordVersionServiceUtil()
  • Method Details

    • getOSGiServiceIdentifier

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getRecordVersion

      public static DDLRecordVersion getRecordVersion(long recordVersionId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the record version matching the ID.
      Parameters:
      recordVersionId - the primary key of the record version
      Returns:
      the record version with the ID
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if the matching record set could not be found or if the user did not have the required permission to access the record set
    • getRecordVersion

      public static DDLRecordVersion getRecordVersion(long recordId, String version) throws com.liferay.portal.kernel.exception.PortalException
      Returns a record version matching the record and version.
      Parameters:
      recordId - the primary key of the record
      version - the version of the record to return
      Returns:
      the record version macthing the record primary key and version
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if the matching record set is not found or if the user do not have the required permission to access the record set
    • getRecordVersions

      public static List<DDLRecordVersion> getRecordVersions(long recordId) throws com.liferay.portal.kernel.exception.PortalException
      Returns all the record versions matching the record.
      Parameters:
      recordId - the primary key of the record
      Returns:
      the matching record versions
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a portal exception occurred
    • getRecordVersions

      public static 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 - 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.

      Parameters:
      recordId - the primary key of the record
      start - the lower bound of the range of record versions to return
      end - 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:
      com.liferay.portal.kernel.exception.PortalException - if a portal exception occurred
    • getRecordVersionsCount

      public static int getRecordVersionsCount(long recordId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the number of record versions matching the record.
      Parameters:
      recordId - the primary key of the record
      Returns:
      the number of matching record versions
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a portal exception occurred
    • getService

      public static DDLRecordVersionService getService()