public class AutoAssignAction extends UserSelectionAction
| Modifier and Type | Field and Description |
|---|---|
protected GroupService |
groupService |
protected WorkflowRequirementsService |
workflowRequirementsService |
claimedTaskService, poolTaskService, workflowItemRoleService| Constructor and Description |
|---|
AutoAssignAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(Context c,
XmlWorkflowItem wfItem) |
protected void |
createTaskForEPerson(Context c,
XmlWorkflowItem wfi,
Step step,
WorkflowActionConfig actionConfig,
EPerson user)
Create a claimed task for the user IF this user doesn't have a claimed action for this workflow item
|
ActionResult |
execute(Context c,
XmlWorkflowItem wfi,
Step step,
javax.servlet.http.HttpServletRequest request) |
boolean |
isFinished(XmlWorkflowItem wfi) |
boolean |
isValidUserSelection(Context context,
XmlWorkflowItem wfi,
boolean hasUI)
Verifies if the user selection action is valid
User constraints will be checked (enough users, group exists, ...)
|
void |
regenerateTasks(Context c,
XmlWorkflowItem wfi,
RoleMembers roleMembers)
Should a person have the option to repool the task the tasks will have to be regenerated
|
boolean |
usesTaskPool()
A boolean indicating wether or not the task pool is used for this type of user selection
|
isAuthorizedaddErrorField, alertUsersOnActivation, getErrorFields, getParent, getProvenanceStartId, setParent@Autowired(required=true) protected GroupService groupService
@Autowired(required=true) protected WorkflowRequirementsService workflowRequirementsService
public void activate(Context c, XmlWorkflowItem wfItem)
public ActionResult execute(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request) throws SQLException, AuthorizeException, IOException
execute in class ActionSQLExceptionAuthorizeExceptionIOExceptionprotected void createTaskForEPerson(Context c, XmlWorkflowItem wfi, Step step, WorkflowActionConfig actionConfig, EPerson user) throws SQLException, AuthorizeException, IOException
c - the dspace contextwfi - the workflow itemstep - the current stepactionConfig - the actionuser - the user to create the action forSQLException - ...AuthorizeException - ...IOException - ...public boolean isFinished(XmlWorkflowItem wfi)
isFinished in class UserSelectionActionpublic void regenerateTasks(Context c, XmlWorkflowItem wfi, RoleMembers roleMembers) throws SQLException
UserSelectionActionregenerateTasks in class UserSelectionActionc - the dspace contextwfi - the workflowitemroleMembers - the list of users for which tasks must be regeneratedSQLException - ...public boolean isValidUserSelection(Context context, XmlWorkflowItem wfi, boolean hasUI) throws WorkflowConfigurationException, SQLException
UserSelectionActionisValidUserSelection in class UserSelectionActioncontext - the dspace contextwfi - the workflow itemhasUI - boolean indicating whether or not the action has a user interfaceWorkflowConfigurationException - occurs if there is a configuration error in the workflowSQLException - ...public boolean usesTaskPool()
UserSelectionActionusesTaskPool in class UserSelectionActionCopyright © 2022 LYRASIS. All rights reserved.