Class KaleoDefinitionLocalServiceWrapper

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

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

    • KaleoDefinitionLocalServiceWrapper

      public KaleoDefinitionLocalServiceWrapper()
    • KaleoDefinitionLocalServiceWrapper

      public KaleoDefinitionLocalServiceWrapper(KaleoDefinitionLocalService kaleoDefinitionLocalService)
  • Method Details

    • activateKaleoDefinition

      public KaleoDefinition activateKaleoDefinition(long kaleoDefinitionId, long kaleoDefinitionVersionId, long startKaleoNodeId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      activateKaleoDefinition in interface KaleoDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • activateKaleoDefinition

      public KaleoDefinition activateKaleoDefinition(long kaleoDefinitionId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      activateKaleoDefinition in interface KaleoDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • activateKaleoDefinition

      public KaleoDefinition activateKaleoDefinition(String name, int version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      activateKaleoDefinition in interface KaleoDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addKaleoDefinition

      public KaleoDefinition addKaleoDefinition(KaleoDefinition kaleoDefinition)
      Adds the kaleo definition to the database. Also notifies the appropriate model listeners.

      Important: Inspect KaleoDefinitionLocalServiceImpl 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:
      addKaleoDefinition in interface KaleoDefinitionLocalService
      Parameters:
      kaleoDefinition - the kaleo definition
      Returns:
      the kaleo definition that was added
    • addKaleoDefinition

      public KaleoDefinition addKaleoDefinition(String externalReferenceCode, String name, String title, String description, String content, String scope, int version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addKaleoDefinition in interface KaleoDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createKaleoDefinition

      public KaleoDefinition createKaleoDefinition(long kaleoDefinitionId)
      Creates a new kaleo definition with the primary key. Does not add the kaleo definition to the database.
      Specified by:
      createKaleoDefinition in interface KaleoDefinitionLocalService
      Parameters:
      kaleoDefinitionId - the primary key for the new kaleo definition
      Returns:
      the new kaleo definition
    • createPersistedModel

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

      public KaleoDefinition deactivateKaleoDefinition(String name, int version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deactivateKaleoDefinition in interface KaleoDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCompanyKaleoDefinitions

      public void deleteCompanyKaleoDefinitions(long companyId)
      Specified by:
      deleteCompanyKaleoDefinitions in interface KaleoDefinitionLocalService
    • deleteKaleoDefinition

      public KaleoDefinition deleteKaleoDefinition(KaleoDefinition kaleoDefinition)
      Deletes the kaleo definition from the database. Also notifies the appropriate model listeners.

      Important: Inspect KaleoDefinitionLocalServiceImpl 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:
      deleteKaleoDefinition in interface KaleoDefinitionLocalService
      Parameters:
      kaleoDefinition - the kaleo definition
      Returns:
      the kaleo definition that was removed
    • deleteKaleoDefinition

      public KaleoDefinition deleteKaleoDefinition(long kaleoDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the kaleo definition with the primary key from the database. Also notifies the appropriate model listeners.

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

      public void deleteKaleoDefinition(String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteKaleoDefinition in interface KaleoDefinitionLocalService
      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 KaleoDefinitionLocalService
      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 KaleoDefinitionLocalService
      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 KaleoDefinitionLocalService
      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 KaleoDefinitionLocalService
    • 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 KaleoDefinitionLocalService
      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.KaleoDefinitionModelImpl.

      Specified by:
      dynamicQuery in interface KaleoDefinitionLocalService
      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.KaleoDefinitionModelImpl.

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

      public KaleoDefinition fetchKaleoDefinition(long kaleoDefinitionId)
      Specified by:
      fetchKaleoDefinition in interface KaleoDefinitionLocalService
    • fetchKaleoDefinition

      public KaleoDefinition fetchKaleoDefinition(String name, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      fetchKaleoDefinition in interface KaleoDefinitionLocalService
    • fetchKaleoDefinitionByExternalReferenceCode

      public KaleoDefinition fetchKaleoDefinitionByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchKaleoDefinitionByExternalReferenceCode in interface KaleoDefinitionLocalService
    • fetchKaleoDefinitionByUuidAndGroupId

      public KaleoDefinition fetchKaleoDefinitionByUuidAndGroupId(String uuid, long groupId)
      Returns the kaleo definition matching the UUID and group.
      Specified by:
      fetchKaleoDefinitionByUuidAndGroupId in interface KaleoDefinitionLocalService
      Parameters:
      uuid - the kaleo definition's UUID
      groupId - the primary key of the group
      Returns:
      the matching kaleo definition, or null if a matching kaleo definition could not be found
    • getActionableDynamicQuery

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

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface KaleoDefinitionLocalService
    • getIndexableActionableDynamicQuery

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

      public KaleoDefinition getKaleoDefinition(long kaleoDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the kaleo definition with the primary key.
      Specified by:
      getKaleoDefinition in interface KaleoDefinitionLocalService
      Parameters:
      kaleoDefinitionId - the primary key of the kaleo definition
      Returns:
      the kaleo definition
      Throws:
      PortalException - if a kaleo definition with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getKaleoDefinition

      public KaleoDefinition getKaleoDefinition(String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKaleoDefinition in interface KaleoDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKaleoDefinitionByExternalReferenceCode

      public KaleoDefinition getKaleoDefinitionByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKaleoDefinitionByExternalReferenceCode in interface KaleoDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKaleoDefinitionByUuidAndGroupId

      public KaleoDefinition getKaleoDefinitionByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the kaleo definition matching the UUID and group.
      Specified by:
      getKaleoDefinitionByUuidAndGroupId in interface KaleoDefinitionLocalService
      Parameters:
      uuid - the kaleo definition's UUID
      groupId - the primary key of the group
      Returns:
      the matching kaleo definition
      Throws:
      PortalException - if a matching kaleo definition could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getKaleoDefinitions

      public List<KaleoDefinition> getKaleoDefinitions(boolean active, int start, int end)
      Specified by:
      getKaleoDefinitions in interface KaleoDefinitionLocalService
    • getKaleoDefinitions

      public List<KaleoDefinition> getKaleoDefinitions(boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      getKaleoDefinitions in interface KaleoDefinitionLocalService
    • getKaleoDefinitions

      public List<KaleoDefinition> getKaleoDefinitions(int start, int end)
      Returns a range of all the kaleo definitions.

      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.KaleoDefinitionModelImpl.

      Specified by:
      getKaleoDefinitions in interface KaleoDefinitionLocalService
      Parameters:
      start - the lower bound of the range of kaleo definitions
      end - the upper bound of the range of kaleo definitions (not inclusive)
      Returns:
      the range of kaleo definitions
    • getKaleoDefinitions

      public List<KaleoDefinition> getKaleoDefinitions(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      getKaleoDefinitions in interface KaleoDefinitionLocalService
    • getKaleoDefinitionsByUuidAndCompanyId

      public List<KaleoDefinition> getKaleoDefinitionsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the kaleo definitions matching the UUID and company.
      Specified by:
      getKaleoDefinitionsByUuidAndCompanyId in interface KaleoDefinitionLocalService
      Parameters:
      uuid - the UUID of the kaleo definitions
      companyId - the primary key of the company
      Returns:
      the matching kaleo definitions, or an empty list if no matches were found
    • getKaleoDefinitionsByUuidAndCompanyId

      public List<KaleoDefinition> getKaleoDefinitionsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator)
      Returns a range of kaleo definitions matching the UUID and company.
      Specified by:
      getKaleoDefinitionsByUuidAndCompanyId in interface KaleoDefinitionLocalService
      Parameters:
      uuid - the UUID of the kaleo definitions
      companyId - the primary key of the company
      start - the lower bound of the range of kaleo definitions
      end - the upper bound of the range of kaleo definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching kaleo definitions, or an empty list if no matches were found
    • getKaleoDefinitionsCount

      public int getKaleoDefinitionsCount()
      Returns the number of kaleo definitions.
      Specified by:
      getKaleoDefinitionsCount in interface KaleoDefinitionLocalService
      Returns:
      the number of kaleo definitions
    • getKaleoDefinitionsCount

      public int getKaleoDefinitionsCount(boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      getKaleoDefinitionsCount in interface KaleoDefinitionLocalService
    • getKaleoDefinitionsCount

      public int getKaleoDefinitionsCount(com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      getKaleoDefinitionsCount in interface KaleoDefinitionLocalService
    • getKaleoDefinitionsCount

      public int getKaleoDefinitionsCount(String name, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      getKaleoDefinitionsCount in interface KaleoDefinitionLocalService
    • getKaleoDefinitionsCount

      public int getKaleoDefinitionsCount(String name, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      getKaleoDefinitionsCount in interface KaleoDefinitionLocalService
    • getOSGiServiceIdentifier

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

      public List<KaleoDefinition> getScopeKaleoDefinitions(String scope, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      getScopeKaleoDefinitions in interface KaleoDefinitionLocalService
    • getScopeKaleoDefinitions

      public List<KaleoDefinition> getScopeKaleoDefinitions(String scope, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinition> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      getScopeKaleoDefinitions in interface KaleoDefinitionLocalService
    • getScopeKaleoDefinitionsCount

      public int getScopeKaleoDefinitionsCount(String scope, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      getScopeKaleoDefinitionsCount in interface KaleoDefinitionLocalService
    • getScopeKaleoDefinitionsCount

      public int getScopeKaleoDefinitionsCount(String scope, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      getScopeKaleoDefinitionsCount in interface KaleoDefinitionLocalService
    • updatedKaleoDefinition

      public KaleoDefinition updatedKaleoDefinition(String externalReferenceCode, long kaleoDefinitionId, String title, String description, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updatedKaleoDefinition in interface KaleoDefinitionLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateKaleoDefinition

      public KaleoDefinition updateKaleoDefinition(KaleoDefinition kaleoDefinition)
      Updates the kaleo definition in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect KaleoDefinitionLocalServiceImpl 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:
      updateKaleoDefinition in interface KaleoDefinitionLocalService
      Parameters:
      kaleoDefinition - the kaleo definition
      Returns:
      the kaleo definition 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<KaleoDefinition> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<KaleoDefinition>
      Specified by:
      getCTPersistence in interface KaleoDefinitionLocalService
    • getModelClass

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

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

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

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