Class KaleoTaskInstanceTokenLocalServiceUtil

java.lang.Object
com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil

public class KaleoTaskInstanceTokenLocalServiceUtil extends Object
Provides the local service utility for KaleoTaskInstanceToken. This utility wraps com.liferay.portal.workflow.kaleo.service.impl.KaleoTaskInstanceTokenLocalServiceImpl and is an access point for service operations in application layer code running on the local server. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
See Also:
Generated:
  • Constructor Details

    • KaleoTaskInstanceTokenLocalServiceUtil

      public KaleoTaskInstanceTokenLocalServiceUtil()
  • Method Details

    • addKaleoTaskInstanceToken

      public static KaleoTaskInstanceToken addKaleoTaskInstanceToken(KaleoTaskInstanceToken kaleoTaskInstanceToken)
      Adds the kaleo task instance token to the database. Also notifies the appropriate model listeners.

      Important: Inspect KaleoTaskInstanceTokenLocalServiceImpl 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.

      Parameters:
      kaleoTaskInstanceToken - the kaleo task instance token
      Returns:
      the kaleo task instance token that was added
    • addKaleoTaskInstanceToken

      public static KaleoTaskInstanceToken addKaleoTaskInstanceToken(long kaleoInstanceTokenId, long kaleoTaskId, String kaleoTaskName, Collection<KaleoTaskAssignment> kaleoTaskAssignments, Date dueDate, Map<String,Serializable> workflowContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • assignKaleoTaskInstanceToken

      public static KaleoTaskInstanceToken assignKaleoTaskInstanceToken(long kaleoTaskInstanceTokenId, Collection<KaleoTaskAssignment> kaleoTaskAssignments, Map<String,Serializable> workflowContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • assignKaleoTaskInstanceToken

      public static KaleoTaskInstanceToken assignKaleoTaskInstanceToken(long kaleoTaskInstanceTokenId, String assigneeClassName, long assigneeClassPK, Map<String,Serializable> workflowContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • completeKaleoTaskInstanceToken

      public static KaleoTaskInstanceToken completeKaleoTaskInstanceToken(long kaleoTaskInstanceTokenId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createKaleoTaskInstanceToken

      public static KaleoTaskInstanceToken createKaleoTaskInstanceToken(long kaleoTaskInstanceTokenId)
      Creates a new kaleo task instance token with the primary key. Does not add the kaleo task instance token to the database.
      Parameters:
      kaleoTaskInstanceTokenId - the primary key for the new kaleo task instance token
      Returns:
      the new kaleo task instance token
    • createPersistedModel

      public static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCompanyKaleoTaskInstanceTokens

      public static void deleteCompanyKaleoTaskInstanceTokens(long companyId)
    • deleteKaleoDefinitionVersionKaleoTaskInstanceTokens

      public static void deleteKaleoDefinitionVersionKaleoTaskInstanceTokens(long kaleoDefinitionVersionId)
    • deleteKaleoInstanceKaleoTaskInstanceTokens

      public static void deleteKaleoInstanceKaleoTaskInstanceTokens(long kaleoInstanceId)
    • deleteKaleoTaskInstanceToken

      public static KaleoTaskInstanceToken deleteKaleoTaskInstanceToken(KaleoTaskInstanceToken kaleoTaskInstanceToken)
      Deletes the kaleo task instance token from the database. Also notifies the appropriate model listeners.

      Important: Inspect KaleoTaskInstanceTokenLocalServiceImpl 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.

      Parameters:
      kaleoTaskInstanceToken - the kaleo task instance token
      Returns:
      the kaleo task instance token that was removed
    • deleteKaleoTaskInstanceToken

      public static KaleoTaskInstanceToken deleteKaleoTaskInstanceToken(long kaleoTaskInstanceTokenId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the kaleo task instance token with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect KaleoTaskInstanceTokenLocalServiceImpl 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.

      Parameters:
      kaleoTaskInstanceTokenId - the primary key of the kaleo task instance token
      Returns:
      the kaleo task instance token that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a kaleo task instance token with the primary key could not be found
    • deletePersistedModel

      public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
    • dslQueryCount

      public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
    • dynamicQuery

      public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
    • dynamicQuery

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

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

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

      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 static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public static 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.
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchKaleoTaskInstanceToken

      public static KaleoTaskInstanceToken fetchKaleoTaskInstanceToken(long kaleoTaskInstanceTokenId)
    • getActionableDynamicQuery

      public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getCompanyKaleoTaskInstanceTokens

      public static List<KaleoTaskInstanceToken> getCompanyKaleoTaskInstanceTokens(long companyId, int start, int end)
    • getCompanyKaleoTaskInstanceTokensCount

      public static int getCompanyKaleoTaskInstanceTokensCount(long companyId)
    • getIndexableActionableDynamicQuery

      public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getKaleoTaskInstanceToken

      public static KaleoTaskInstanceToken getKaleoTaskInstanceToken(long kaleoTaskInstanceTokenId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the kaleo task instance token with the primary key.
      Parameters:
      kaleoTaskInstanceTokenId - the primary key of the kaleo task instance token
      Returns:
      the kaleo task instance token
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a kaleo task instance token with the primary key could not be found
    • getKaleoTaskInstanceTokens

      public static List<KaleoTaskInstanceToken> getKaleoTaskInstanceTokens(Boolean completed, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTaskInstanceToken> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • getKaleoTaskInstanceTokens

      public static List<KaleoTaskInstanceToken> getKaleoTaskInstanceTokens(int start, int end)
      Returns a range of all the kaleo task instance tokens.

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

      Parameters:
      start - the lower bound of the range of kaleo task instance tokens
      end - the upper bound of the range of kaleo task instance tokens (not inclusive)
      Returns:
      the range of kaleo task instance tokens
    • getKaleoTaskInstanceTokens

      public static List<KaleoTaskInstanceToken> getKaleoTaskInstanceTokens(List<Long> roleIds, Boolean completed, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTaskInstanceToken> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • getKaleoTaskInstanceTokens

      public static List<KaleoTaskInstanceToken> getKaleoTaskInstanceTokens(long kaleoInstanceId, Boolean completed, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTaskInstanceToken> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • getKaleoTaskInstanceTokens

      public static KaleoTaskInstanceToken getKaleoTaskInstanceTokens(long kaleoInstanceId, long kaleoTaskId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKaleoTaskInstanceTokens

      public static List<KaleoTaskInstanceToken> getKaleoTaskInstanceTokens(String assigneeClassName, long assigneeClassPK, Boolean completed, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTaskInstanceToken> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • getKaleoTaskInstanceTokensCount

      public static int getKaleoTaskInstanceTokensCount()
      Returns the number of kaleo task instance tokens.
      Returns:
      the number of kaleo task instance tokens
    • getKaleoTaskInstanceTokensCount

      public static int getKaleoTaskInstanceTokensCount(Boolean completed, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • getKaleoTaskInstanceTokensCount

      public static int getKaleoTaskInstanceTokensCount(List<Long> roleIds, Boolean completed, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • getKaleoTaskInstanceTokensCount

      public static int getKaleoTaskInstanceTokensCount(long kaleoInstanceId, Boolean completed, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • getKaleoTaskInstanceTokensCount

      public static int getKaleoTaskInstanceTokensCount(String assigneeClassName, long assigneeClassPK, Boolean completed, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • getOSGiServiceIdentifier

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

      public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getSubmittingUserKaleoTaskInstanceTokens

      public static List<KaleoTaskInstanceToken> getSubmittingUserKaleoTaskInstanceTokens(long userId, Boolean completed, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTaskInstanceToken> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • getSubmittingUserKaleoTaskInstanceTokensCount

      public static int getSubmittingUserKaleoTaskInstanceTokensCount(long userId, Boolean completed, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • hasPendingKaleoTaskForms

      public static boolean hasPendingKaleoTaskForms(long kaleoTaskInstanceTokenId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      public static List<KaleoTaskInstanceToken> search(String keywords, Boolean completed, Boolean searchByUserRoles, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTaskInstanceToken> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • search

      public static List<KaleoTaskInstanceToken> search(String taskName, String assetType, Long[] assetPrimaryKeys, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTaskInstanceToken> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • search

      public static List<KaleoTaskInstanceToken> search(String assetTitle, String taskName, String[] assetTypes, Long[] assetPrimaryKeys, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTaskInstanceToken> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • search

      public static List<KaleoTaskInstanceToken> search(String keywords, String[] assetTypes, Boolean completed, Boolean searchByUserRoles, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTaskInstanceToken> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • search

      public static List<KaleoTaskInstanceToken> search(String assetTitle, String[] taskNames, String[] assetTypes, Long[] assetPrimaryKeys, Long[] assigneeClassPKs, Date dueDateGT, Date dueDateLT, Boolean completed, Long[] kaleoInstanceIds, Boolean searchByUserRoles, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTaskInstanceToken> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • search

      public static List<KaleoTaskInstanceToken> search(String assetTitle, String[] taskNames, String[] assetTypes, Long[] assetPrimaryKeys, String assigneeClassName, Long[] assigneeClassPKs, Date dueDateGT, Date dueDateLT, Boolean completed, Long kaleoDefinitionId, Long[] kaleoInstanceIds, Boolean searchByUserRoles, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTaskInstanceToken> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • searchCount

      public static int searchCount(long kaleoInstanceId, Boolean completed, Boolean searchByUserRoles, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • searchCount

      public static int searchCount(Long kaleoInstanceId, String assetTitle, String taskName, String[] assetTypes, Long[] assetPrimaryKeys, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, boolean andOperator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • searchCount

      public static int searchCount(String keywords, Boolean completed, Boolean searchByUserRoles, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • searchCount

      public static int searchCount(String taskName, String assetType, Long[] assetPrimaryKeys, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, boolean andOperator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • searchCount

      public static int searchCount(String keywords, String[] assetTypes, Boolean completed, Boolean searchByUserRoles, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • searchCount

      public static int searchCount(String assetTitle, String[] taskNames, String[] assetTypes, Long[] assetPrimaryKeys, Long[] assigneeClassPKs, Date dueDateGT, Date dueDateLT, Boolean completed, Long[] kaleoInstanceIds, Boolean searchByUserRoles, boolean andOperator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • searchCount

      public static int searchCount(String assetTitle, String[] taskNames, String[] assetTypes, Long[] assetPrimaryKeys, String assigneeClassName, Long[] assigneeClassPKs, Date dueDateGT, Date dueDateLT, Boolean completed, Long kaleoDefinitionId, Long[] kaleoInstanceIds, Boolean searchByUserRoles, boolean andOperator, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • searchKaleoTaskInstanceTokens

      public static com.liferay.portal.kernel.search.BaseModelSearchResult<KaleoTaskInstanceToken> searchKaleoTaskInstanceTokens(String assetTitle, String[] taskNames, String[] assetTypes, Long[] assetPrimaryKeys, String assigneeClassName, Long[] assigneeClassPKs, Date dueDateGT, Date dueDateLT, Boolean completed, Long kaleoDefinitionId, Long[] kaleoInstanceIds, boolean searchByActiveWorkflowHandlers, Boolean searchByUserRoles, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTaskInstanceToken> orderByComparator, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateDueDate

      public static KaleoTaskInstanceToken updateDueDate(long kaleoTaskInstanceTokenId, Date dueDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateKaleoTaskInstanceToken

      public static KaleoTaskInstanceToken updateKaleoTaskInstanceToken(KaleoTaskInstanceToken kaleoTaskInstanceToken)
      Updates the kaleo task instance token in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect KaleoTaskInstanceTokenLocalServiceImpl 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.

      Parameters:
      kaleoTaskInstanceToken - the kaleo task instance token
      Returns:
      the kaleo task instance token that was updated
    • getService

      public static KaleoTaskInstanceTokenLocalService getService()