Class KaleoProcessLocalServiceWrapper

java.lang.Object
com.liferay.portal.workflow.kaleo.forms.service.KaleoProcessLocalServiceWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<KaleoProcessLocalService>, KaleoProcessLocalService

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

    • KaleoProcessLocalServiceWrapper

      public KaleoProcessLocalServiceWrapper()
    • KaleoProcessLocalServiceWrapper

      public KaleoProcessLocalServiceWrapper(KaleoProcessLocalService kaleoProcessLocalService)
  • Method Details

    • addKaleoProcess

      public KaleoProcess addKaleoProcess(KaleoProcess kaleoProcess)
      Adds the kaleo process to the database. Also notifies the appropriate model listeners.

      Important: Inspect KaleoProcessLocalServiceImpl 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:
      addKaleoProcess in interface KaleoProcessLocalService
      Parameters:
      kaleoProcess - the kaleo process
      Returns:
      the kaleo process that was added
    • addKaleoProcess

      public KaleoProcess addKaleoProcess(long userId, long groupId, long ddmStructureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, long ddmTemplateId, String workflowDefinitionName, int workflowDefinitionVersion, KaleoTaskFormPairs kaleoTaskFormPairs, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Adds a Kaleo process.
      Specified by:
      addKaleoProcess in interface KaleoProcessLocalService
      Parameters:
      userId - the primary key of the Kaleo process's creator/owner
      groupId - the primary key of the Kaleo process's group
      ddmStructureId - the primary key of the Kaleo process's DDM structure
      nameMap - the Kaleo process's locales and localized names
      descriptionMap - the Kaleo process's locales and localized descriptions
      ddmTemplateId - the primary key of the Kaleo process's DDM template
      workflowDefinitionName - the Kaleo process's workflow definition name
      workflowDefinitionVersion - the Kaleo process's workflow definition version
      kaleoTaskFormPairs - the Kaleo task form pairs used to create a Kaleo process link. See KaleoTaskFormPairs in the portal.workflow.kaleo.forms.api module.
      serviceContext - the service context to be applied. This can set guest permissions and group permissions for the Kaleo process.
      Returns:
      the Kaleo process
      Throws:
      PortalException - if a portal exception occurred
      com.liferay.portal.kernel.exception.PortalException
    • createKaleoProcess

      public KaleoProcess createKaleoProcess(long kaleoProcessId)
      Creates a new kaleo process with the primary key. Does not add the kaleo process to the database.
      Specified by:
      createKaleoProcess in interface KaleoProcessLocalService
      Parameters:
      kaleoProcessId - the primary key for the new kaleo process
      Returns:
      the new kaleo process
    • createPersistedModel

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

      public KaleoProcess deleteKaleoProcess(KaleoProcess kaleoProcess) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the kaleo process from the database. Also notifies the appropriate model listeners.

      Important: Inspect KaleoProcessLocalServiceImpl 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:
      deleteKaleoProcess in interface KaleoProcessLocalService
      Parameters:
      kaleoProcess - the kaleo process
      Returns:
      the kaleo process that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteKaleoProcess

      public KaleoProcess deleteKaleoProcess(long kaleoProcessId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the kaleo process with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect KaleoProcessLocalServiceImpl 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:
      deleteKaleoProcess in interface KaleoProcessLocalService
      Parameters:
      kaleoProcessId - the primary key of the kaleo process
      Returns:
      the kaleo process that was removed
      Throws:
      PortalException - if a kaleo process with the primary key could not be found
      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 KaleoProcessLocalService
      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 KaleoProcessLocalService
      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 KaleoProcessLocalService
      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 KaleoProcessLocalService
    • 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 KaleoProcessLocalService
      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.forms.model.impl.KaleoProcessModelImpl.

      Specified by:
      dynamicQuery in interface KaleoProcessLocalService
      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.forms.model.impl.KaleoProcessModelImpl.

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

      public KaleoProcess fetchKaleoProcess(long kaleoProcessId)
      Specified by:
      fetchKaleoProcess in interface KaleoProcessLocalService
    • fetchKaleoProcessByUuidAndGroupId

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

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

      public KaleoProcess getDDLRecordSetKaleoProcess(long ddlRecordSetId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the Kaleo process matching the DDL record set ID.
      Specified by:
      getDDLRecordSetKaleoProcess in interface KaleoProcessLocalService
      Parameters:
      ddlRecordSetId - the primary key of the DDL record set associated with the Kaleo process
      Returns:
      the Kaleo process
      Throws:
      PortalException - if a matching Kaleo process could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getExportActionableDynamicQuery

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

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

      public KaleoProcess getKaleoProcess(long kaleoProcessId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the kaleo process with the primary key.
      Specified by:
      getKaleoProcess in interface KaleoProcessLocalService
      Parameters:
      kaleoProcessId - the primary key of the kaleo process
      Returns:
      the kaleo process
      Throws:
      PortalException - if a kaleo process with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getKaleoProcessByUuidAndGroupId

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

      public List<KaleoProcess> getKaleoProcesses(int start, int end)
      Returns a range of all the kaleo processes.

      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.forms.model.impl.KaleoProcessModelImpl.

      Specified by:
      getKaleoProcesses in interface KaleoProcessLocalService
      Parameters:
      start - the lower bound of the range of kaleo processes
      end - the upper bound of the range of kaleo processes (not inclusive)
      Returns:
      the range of kaleo processes
    • getKaleoProcesses

      public List<KaleoProcess> getKaleoProcesses(long groupId)
      Returns all the Kaleo processes belonging to the group.
      Specified by:
      getKaleoProcesses in interface KaleoProcessLocalService
      Parameters:
      groupId - the primary key of the Kaleo processes's group
      Returns:
      the Kaleo processes
    • getKaleoProcesses

      public List<KaleoProcess> getKaleoProcesses(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcess> orderByComparator)
      Returns an ordered range of all Kaleo processes belonging to the group.

      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, which resides in portal-kernel, will return the full result set.

      Specified by:
      getKaleoProcesses in interface KaleoProcessLocalService
      Parameters:
      groupId - the primary key of the Kaleo processes' group
      start - the lower bound of the range of Kaleo processes to return
      end - the upper bound of the range of Kaleo processes to return (not inclusive)
      orderByComparator - the comparator to order the Kaleo processes
      Returns:
      the range of matching Kaleo processes ordered by the comparator
    • getKaleoProcessesByUuidAndCompanyId

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

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

      public int getKaleoProcessesCount()
      Returns the number of kaleo processes.
      Specified by:
      getKaleoProcessesCount in interface KaleoProcessLocalService
      Returns:
      the number of kaleo processes
    • getKaleoProcessesCount

      public int getKaleoProcessesCount(long groupId)
      Returns the number of Kaleo processes belonging to the group.
      Specified by:
      getKaleoProcessesCount in interface KaleoProcessLocalService
      Parameters:
      groupId - the primary key of the Kaleo processes' group
      Returns:
      the number of Kaleo processes
    • getOSGiServiceIdentifier

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

      public KaleoProcess updateKaleoProcess(KaleoProcess kaleoProcess)
      Updates the kaleo process in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect KaleoProcessLocalServiceImpl 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:
      updateKaleoProcess in interface KaleoProcessLocalService
      Parameters:
      kaleoProcess - the kaleo process
      Returns:
      the kaleo process that was updated
    • updateKaleoProcess

      public KaleoProcess updateKaleoProcess(long kaleoProcessId, long ddmStructureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, long ddmTemplateId, String workflowDefinitionName, int workflowDefinitionVersion, KaleoTaskFormPairs kaleoTaskFormPairs, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Updates the Kaleo process.
      Specified by:
      updateKaleoProcess in interface KaleoProcessLocalService
      Parameters:
      kaleoProcessId - the primary key of the Kaleo process
      ddmStructureId - the primary key of the Kaleo process's DDM structure
      nameMap - the Kaleo process's locales and localized names
      descriptionMap - the Kaleo process's locales and localized descriptions
      ddmTemplateId - the primary key of the Kaleo process's DDM template
      workflowDefinitionName - the Kaleo process's workflow definition name
      workflowDefinitionVersion - the Kaleo process's workflow definition version
      kaleoTaskFormPairs - the Kaleo task form pairs. For more information, see the portal.workflow.kaleo.forms.api module's KaleoTaskFormPairs class.
      serviceContext - the service context to be applied. This can set guest permissions and group permissions for the Kaleo process.
      Returns:
      the Kaleo process
      Throws:
      PortalException - if a portal exception occurred
      com.liferay.portal.kernel.exception.PortalException
    • getBasePersistence

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

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

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