Class KaleoDefinitionVersionLocalServiceWrapper

java.lang.Object
com.liferay.portal.workflow.kaleo.service.KaleoDefinitionVersionLocalServiceWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<KaleoDefinitionVersion>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<KaleoDefinitionVersionLocalService>, KaleoDefinitionVersionLocalService

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

    • KaleoDefinitionVersionLocalServiceWrapper

      public KaleoDefinitionVersionLocalServiceWrapper()
    • KaleoDefinitionVersionLocalServiceWrapper

      public KaleoDefinitionVersionLocalServiceWrapper(KaleoDefinitionVersionLocalService kaleoDefinitionVersionLocalService)
  • Method Details

    • addKaleoDefinitionVersion

      public KaleoDefinitionVersion addKaleoDefinitionVersion(KaleoDefinitionVersion kaleoDefinitionVersion)
      Adds the kaleo definition version to the database. Also notifies the appropriate model listeners.

      Important: Inspect KaleoDefinitionVersionLocalServiceImpl 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:
      addKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Parameters:
      kaleoDefinitionVersion - the kaleo definition version
      Returns:
      the kaleo definition version that was added
    • addKaleoDefinitionVersion

      public KaleoDefinitionVersion addKaleoDefinitionVersion(long kaleoDefinitionId, String name, String title, String description, String content, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createKaleoDefinitionVersion

      public KaleoDefinitionVersion createKaleoDefinitionVersion(long kaleoDefinitionVersionId)
      Creates a new kaleo definition version with the primary key. Does not add the kaleo definition version to the database.
      Specified by:
      createKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Parameters:
      kaleoDefinitionVersionId - the primary key for the new kaleo definition version
      Returns:
      the new kaleo definition version
    • createPersistedModel

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

      public KaleoDefinitionVersion deleteKaleoDefinitionVersion(KaleoDefinitionVersion kaleoDefinitionVersion) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the kaleo definition version from the database. Also notifies the appropriate model listeners.

      Important: Inspect KaleoDefinitionVersionLocalServiceImpl 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:
      deleteKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Parameters:
      kaleoDefinitionVersion - the kaleo definition version
      Returns:
      the kaleo definition version that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteKaleoDefinitionVersion

      public KaleoDefinitionVersion deleteKaleoDefinitionVersion(long kaleoDefinitionVersionId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the kaleo definition version with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect KaleoDefinitionVersionLocalServiceImpl 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:
      deleteKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Parameters:
      kaleoDefinitionVersionId - the primary key of the kaleo definition version
      Returns:
      the kaleo definition version that was removed
      Throws:
      PortalException - if a kaleo definition version with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteKaleoDefinitionVersion

      public void deleteKaleoDefinitionVersion(long companyId, String name, String version) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteKaleoDefinitionVersions

      public void deleteKaleoDefinitionVersions(KaleoDefinition kaleoDefinition) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteKaleoDefinitionVersions in interface KaleoDefinitionVersionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteKaleoDefinitionVersions

      public void deleteKaleoDefinitionVersions(List<KaleoDefinitionVersion> kaleoDefinitionVersions) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteKaleoDefinitionVersions in interface KaleoDefinitionVersionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteKaleoDefinitionVersions

      public void deleteKaleoDefinitionVersions(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteKaleoDefinitionVersions in interface KaleoDefinitionVersionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • 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 KaleoDefinitionVersionLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

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

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

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface KaleoDefinitionVersionLocalService
    • 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 KaleoDefinitionVersionLocalService
      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.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionModelImpl.

      Specified by:
      dynamicQuery in interface KaleoDefinitionVersionLocalService
      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.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionModelImpl.

      Specified by:
      dynamicQuery in interface KaleoDefinitionVersionLocalService
      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 KaleoDefinitionVersionLocalService
      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 KaleoDefinitionVersionLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchKaleoDefinitionVersion

      public KaleoDefinitionVersion fetchKaleoDefinitionVersion(long kaleoDefinitionVersionId)
      Specified by:
      fetchKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
    • fetchKaleoDefinitionVersion

      public KaleoDefinitionVersion fetchKaleoDefinitionVersion(long companyId, String name, String version)
      Specified by:
      fetchKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
    • fetchLatestKaleoDefinitionVersion

      public KaleoDefinitionVersion fetchLatestKaleoDefinitionVersion(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchLatestKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchLatestKaleoDefinitionVersion

      public KaleoDefinitionVersion fetchLatestKaleoDefinitionVersion(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchLatestKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getActionableDynamicQuery

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

      public KaleoDefinitionVersion getFirstKaleoDefinitionVersion(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getFirstKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getIndexableActionableDynamicQuery

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

      public KaleoDefinitionVersion getKaleoDefinitionVersion(long kaleoDefinitionVersionId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the kaleo definition version with the primary key.
      Specified by:
      getKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Parameters:
      kaleoDefinitionVersionId - the primary key of the kaleo definition version
      Returns:
      the kaleo definition version
      Throws:
      PortalException - if a kaleo definition version with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getKaleoDefinitionVersion

      public KaleoDefinitionVersion getKaleoDefinitionVersion(long companyId, String name, String version) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKaleoDefinitionVersions

      public List<KaleoDefinitionVersion> getKaleoDefinitionVersions(int start, int end)
      Returns a range of all the kaleo definition 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.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionModelImpl.

      Specified by:
      getKaleoDefinitionVersions in interface KaleoDefinitionVersionLocalService
      Parameters:
      start - the lower bound of the range of kaleo definition versions
      end - the upper bound of the range of kaleo definition versions (not inclusive)
      Returns:
      the range of kaleo definition versions
    • getKaleoDefinitionVersions

      public List<KaleoDefinitionVersion> getKaleoDefinitionVersions(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
      Specified by:
      getKaleoDefinitionVersions in interface KaleoDefinitionVersionLocalService
    • getKaleoDefinitionVersions

      public List<KaleoDefinitionVersion> getKaleoDefinitionVersions(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKaleoDefinitionVersions in interface KaleoDefinitionVersionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKaleoDefinitionVersions

      public List<KaleoDefinitionVersion> getKaleoDefinitionVersions(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
      Specified by:
      getKaleoDefinitionVersions in interface KaleoDefinitionVersionLocalService
    • getKaleoDefinitionVersionsCount

      public int getKaleoDefinitionVersionsCount()
      Returns the number of kaleo definition versions.
      Specified by:
      getKaleoDefinitionVersionsCount in interface KaleoDefinitionVersionLocalService
      Returns:
      the number of kaleo definition versions
    • getKaleoDefinitionVersionsCount

      public int getKaleoDefinitionVersionsCount(long companyId)
      Specified by:
      getKaleoDefinitionVersionsCount in interface KaleoDefinitionVersionLocalService
    • getKaleoDefinitionVersionsCount

      public int getKaleoDefinitionVersionsCount(long companyId, String name)
      Specified by:
      getKaleoDefinitionVersionsCount in interface KaleoDefinitionVersionLocalService
    • getKaleoDefinitionVersionsPrevAndNext

      public KaleoDefinitionVersion[] getKaleoDefinitionVersionsPrevAndNext(long companyId, String name, String version) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKaleoDefinitionVersionsPrevAndNext in interface KaleoDefinitionVersionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLatestKaleoDefinitionVersion

      public KaleoDefinitionVersion getLatestKaleoDefinitionVersion(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getLatestKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLatestKaleoDefinitionVersions

      public List<KaleoDefinitionVersion> getLatestKaleoDefinitionVersions(long companyId, String keywords, int status, Locale locale, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
      Specified by:
      getLatestKaleoDefinitionVersions in interface KaleoDefinitionVersionLocalService
    • getLatestKaleoDefinitionVersionsCount

      public int getLatestKaleoDefinitionVersionsCount(long companyId, String keywords, int status)
      Specified by:
      getLatestKaleoDefinitionVersionsCount in interface KaleoDefinitionVersionLocalService
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface KaleoDefinitionVersionLocalService
      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 KaleoDefinitionVersionLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • updateKaleoDefinitionVersion

      public KaleoDefinitionVersion updateKaleoDefinitionVersion(KaleoDefinitionVersion kaleoDefinitionVersion)
      Updates the kaleo definition version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect KaleoDefinitionVersionLocalServiceImpl 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:
      updateKaleoDefinitionVersion in interface KaleoDefinitionVersionLocalService
      Parameters:
      kaleoDefinitionVersion - the kaleo definition version
      Returns:
      the kaleo definition 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<KaleoDefinitionVersion> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<KaleoDefinitionVersion>
      Specified by:
      getCTPersistence in interface KaleoDefinitionVersionLocalService
    • getModelClass

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

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

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

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