Class NoUserSelectionAction
java.lang.Object
org.dspace.xmlworkflow.state.actions.Action
org.dspace.xmlworkflow.state.actions.userassignment.UserSelectionAction
org.dspace.xmlworkflow.state.actions.userassignment.NoUserSelectionAction
A user selection action that does not assign any users
- Author:
- Bram De Schouwer (bram.deschouwer at dot com), Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)
-
Field Summary
Fields inherited from class org.dspace.xmlworkflow.state.actions.userassignment.UserSelectionAction
claimedTaskService, log, poolTaskService, workflowItemRoleService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(Context c, XmlWorkflowItem wf) Called when a workflow item becomes eligible for this Action.execute(Context c, XmlWorkflowItem wfi, Step step, jakarta.servlet.http.HttpServletRequest request) Called when the action is to be performed.Returns a list of options that the user can select at this action which results in the next step in the workflowbooleanbooleanisValidUserSelection(Context context, XmlWorkflowItem wfi, boolean hasUI) Check user constraints (enough users, group exists, ...).voidregenerateTasks(Context c, XmlWorkflowItem wfi, RoleMembers roleMembers) Should a person have the option to repool the task the tasks will have to be regeneratedbooleanA boolean indicating whether or not the task pool is used for this type of user selectionMethods inherited from class org.dspace.xmlworkflow.state.actions.userassignment.UserSelectionAction
isAuthorizedMethods inherited from class org.dspace.xmlworkflow.state.actions.Action
addApprovedProvenance, addErrorField, alertUsersOnActivation, getAdvancedInfo, getAdvancedOptions, getErrorFields, getParent, getProvenanceStartId, isAdvanced, isOptionInParam, setParent
-
Constructor Details
-
NoUserSelectionAction
public NoUserSelectionAction()
-
-
Method Details
-
isFinished
- Specified by:
isFinishedin classUserSelectionAction
-
regenerateTasks
Description copied from class:UserSelectionActionShould a person have the option to repool the task the tasks will have to be regenerated- Specified by:
regenerateTasksin classUserSelectionAction- Parameters:
c- the dspace contextwfi- the workflowitemroleMembers- the list of users for which tasks must be regenerated
-
isValidUserSelection
Description copied from class:UserSelectionActionCheck user constraints (enough users, group exists, ...).- Specified by:
isValidUserSelectionin classUserSelectionAction- Parameters:
context- the dspace contextwfi- the workflow itemhasUI- whether or not the Step has a user interface- Returns:
- if the action is valid
-
usesTaskPool
public boolean usesTaskPool()Description copied from class:UserSelectionActionA boolean indicating whether or not the task pool is used for this type of user selection- Specified by:
usesTaskPoolin classUserSelectionAction- Returns:
- a boolean
-
activate
Description copied from class:ActionCalled when a workflow item becomes eligible for this Action. -
execute
public ActionResult execute(Context c, XmlWorkflowItem wfi, Step step, jakarta.servlet.http.HttpServletRequest request) Description copied from class:ActionCalled when the action is to be performed. -
getOptions
Description copied from class:ActionReturns a list of options that the user can select at this action which results in the next step in the workflow- Specified by:
getOptionsin classAction- Returns:
- A list of options of this action, resulting in the next step of the workflow
-