Class TrashVersionLocalServiceWrapper

java.lang.Object
com.liferay.trash.service.TrashVersionLocalServiceWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<TrashVersion>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<TrashVersionLocalService>, TrashVersionLocalService

public class TrashVersionLocalServiceWrapper extends Object implements com.liferay.portal.kernel.service.ServiceWrapper<TrashVersionLocalService>, TrashVersionLocalService
Provides a wrapper for TrashVersionLocalService.
See Also:
Generated:
  • Constructor Details

    • TrashVersionLocalServiceWrapper

      public TrashVersionLocalServiceWrapper()
    • TrashVersionLocalServiceWrapper

      public TrashVersionLocalServiceWrapper(TrashVersionLocalService trashVersionLocalService)
  • Method Details

    • addTrashVersion

      public TrashVersion addTrashVersion(long trashEntryId, String className, long classPK, int status, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties)
      Specified by:
      addTrashVersion in interface TrashVersionLocalService
    • addTrashVersion

      public TrashVersion addTrashVersion(TrashVersion trashVersion)
      Adds the trash version to the database. Also notifies the appropriate model listeners.

      Important: Inspect TrashVersionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      addTrashVersion in interface TrashVersionLocalService
      Parameters:
      trashVersion - the trash version
      Returns:
      the trash version that was added
    • createPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      createPersistedModel in interface TrashVersionLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • createTrashVersion

      public TrashVersion createTrashVersion(long versionId)
      Creates a new trash version with the primary key. Does not add the trash version to the database.
      Specified by:
      createTrashVersion in interface TrashVersionLocalService
      Parameters:
      versionId - the primary key for the new trash version
      Returns:
      the new trash version
    • deletePersistedModel

      public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      deletePersistedModel in interface TrashVersionLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteTrashVersion

      public TrashVersion deleteTrashVersion(long versionId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the trash version with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect TrashVersionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteTrashVersion in interface TrashVersionLocalService
      Parameters:
      versionId - the primary key of the trash version
      Returns:
      the trash version that was removed
      Throws:
      PortalException - if a trash version with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteTrashVersion

      public TrashVersion deleteTrashVersion(String className, long classPK)
      Specified by:
      deleteTrashVersion in interface TrashVersionLocalService
    • deleteTrashVersion

      public TrashVersion deleteTrashVersion(TrashVersion trashVersion)
      Deletes the trash version from the database. Also notifies the appropriate model listeners.

      Important: Inspect TrashVersionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteTrashVersion in interface TrashVersionLocalService
      Parameters:
      trashVersion - the trash version
      Returns:
      the trash version that was removed
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      dslQuery in interface TrashVersionLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      dslQueryCount in interface TrashVersionLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface TrashVersionLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface TrashVersionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      Performs a dynamic query on the database and returns a range of the matching rows.

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashVersionModelImpl.

      Specified by:
      dynamicQuery in interface TrashVersionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
      Performs a dynamic query on the database and returns an ordered range of the matching rows.

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashVersionModelImpl.

      Specified by:
      dynamicQuery in interface TrashVersionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface TrashVersionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface TrashVersionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchTrashVersion

      public TrashVersion fetchTrashVersion(long versionId)
      Specified by:
      fetchTrashVersion in interface TrashVersionLocalService
    • fetchVersion

      public TrashVersion fetchVersion(String className, long classPK)
      Specified by:
      fetchVersion in interface TrashVersionLocalService
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface TrashVersionLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface TrashVersionLocalService
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface TrashVersionLocalService
      Returns:
      the OSGi service identifier
    • getPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      getPersistedModel in interface TrashVersionLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getTrashVersion

      public TrashVersion getTrashVersion(long versionId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the trash version with the primary key.
      Specified by:
      getTrashVersion in interface TrashVersionLocalService
      Parameters:
      versionId - the primary key of the trash version
      Returns:
      the trash version
      Throws:
      PortalException - if a trash version with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getTrashVersions

      public List<TrashVersion> getTrashVersions(int start, int end)
      Returns a range of all the trash versions.

      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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashVersionModelImpl.

      Specified by:
      getTrashVersions in interface TrashVersionLocalService
      Parameters:
      start - the lower bound of the range of trash versions
      end - the upper bound of the range of trash versions (not inclusive)
      Returns:
      the range of trash versions
    • getTrashVersionsCount

      public int getTrashVersionsCount()
      Returns the number of trash versions.
      Specified by:
      getTrashVersionsCount in interface TrashVersionLocalService
      Returns:
      the number of trash versions
    • getVersions

      public List<TrashVersion> getVersions(long entryId)
      Specified by:
      getVersions in interface TrashVersionLocalService
    • getVersions

      public List<TrashVersion> getVersions(long entryId, String className)
      Specified by:
      getVersions in interface TrashVersionLocalService
    • updateTrashVersion

      public TrashVersion updateTrashVersion(TrashVersion trashVersion)
      Updates the trash version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect TrashVersionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      updateTrashVersion in interface TrashVersionLocalService
      Parameters:
      trashVersion - the trash version
      Returns:
      the trash version that was updated
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getCTPersistence

      public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<TrashVersion> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<TrashVersion>
      Specified by:
      getCTPersistence in interface TrashVersionLocalService
    • getModelClass

      public Class<TrashVersion> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<TrashVersion>
      Specified by:
      getModelClass in interface TrashVersionLocalService
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<TrashVersion>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<TrashVersion>
      Specified by:
      updateWithUnsafeFunction in interface TrashVersionLocalService
      Throws:
      E extends Throwable
    • getWrappedService

      public TrashVersionLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<TrashVersionLocalService>
    • setWrappedService

      public void setWrappedService(TrashVersionLocalService trashVersionLocalService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<TrashVersionLocalService>