Package de.xima.fc.handler.entity
Class WorkflowTriggerHandler
- java.lang.Object
-
- de.xima.fc.handler.AMSApiHandler
-
- de.xima.fc.handler.entity.GenericHandler
-
- de.xima.fc.handler.entity.WorkflowTriggerHandler
-
- All Implemented Interfaces:
IAPIHandler
,IGenericHandler
,IWorkflowTriggerHandler
,Serializable
public class WorkflowTriggerHandler extends GenericHandler implements IWorkflowTriggerHandler
Handler implementation for reading and writingWorkflowTrigger
entities.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.handler.entity.GenericHandler
LOG
-
-
Constructor Summary
Constructors Constructor Description WorkflowTriggerHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowTrigger
getUserTriggerByRecordAndUser(UserContext uc, UUID formRecordUuid, IUser user, UUID taskUuid, UUID triggerUuid)
Returns the workflow user trigger defined by the given record, task and trigger UUID.PagedResult<WorkflowTrigger>
getUserTriggersByRecordAndUser(UserContext uc, UUID formRecordUuid, IUser user, int page, int pageSize)
Finds the workflow user triggers available for the form record given by its UUID if the given user can access the form record.-
Methods inherited from class de.xima.fc.handler.entity.GenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, update
-
Methods inherited from class de.xima.fc.handler.AMSApiHandler
getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName
-
Methods inherited from interface de.xima.fc.handler.interfaces.entity.IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
-
-
-
Method Detail
-
getUserTriggerByRecordAndUser
public WorkflowTrigger getUserTriggerByRecordAndUser(UserContext uc, UUID formRecordUuid, IUser user, UUID taskUuid, UUID triggerUuid)
Description copied from interface:IWorkflowTriggerHandler
Returns the workflow user trigger defined by the given record, task and trigger UUID. The workflow trigger needs to be oftype
FC_USER_INVOCATION
, and it must beactive
.- Specified by:
getUserTriggerByRecordAndUser
in interfaceIWorkflowTriggerHandler
- Parameters:
uc
- user context for accessing the database.formRecordUuid
- the UUID of the form record.user
- to get the user workflow trigger for.taskUuid
- the UUID of the workflow task.triggerUuid
- the UUID of the workflow trigger.- Returns:
- the workflow user trigger defined by the given record, task and trigger UUID.
null
if no workflow trigger was found with the given specification.
-
getUserTriggersByRecordAndUser
public PagedResult<WorkflowTrigger> getUserTriggersByRecordAndUser(UserContext uc, UUID formRecordUuid, IUser user, int page, int pageSize)
Description copied from interface:IWorkflowTriggerHandler
Finds the workflow user triggers available for the form record given by its UUID if the given user can access the form record. The workflow triggers need to be oftype
FC_USER_INVOCATION
., and they must beactive
.- Specified by:
getUserTriggersByRecordAndUser
in interfaceIWorkflowTriggerHandler
- Parameters:
uc
- user context for accessing the database.formRecordUuid
- the UUID of the form recorduser
- to get the user workflow triggers for.page
- to get.pageSize
- size of the page to get.- Returns:
- a list of portal workflow triggers the user has access to ordered by their name (asc).
null
if the form record given by the UUID could not be found.
-
-