public abstract class UserSelectionAction extends Action
| Modifier and Type | Field and Description |
|---|---|
protected ClaimedTaskService |
claimedTaskService |
protected org.apache.log4j.Logger |
log |
protected PoolTaskService |
poolTaskService |
protected WorkflowItemRoleService |
workflowItemRoleService |
| Constructor and Description |
|---|
UserSelectionAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAuthorized(Context context,
javax.servlet.http.HttpServletRequest request,
XmlWorkflowItem wfi) |
abstract boolean |
isFinished(XmlWorkflowItem wfi) |
abstract 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, ...)
|
abstract 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
|
abstract boolean |
usesTaskPool()
A boolean indicating wether or not the task pool is used for this type of user selection
|
activate, addErrorField, alertUsersOnActivation, execute, getErrorFields, getParent, getProvenanceStartId, setParentprotected org.apache.log4j.Logger log
@Autowired(required=true) protected ClaimedTaskService claimedTaskService
@Autowired(required=true) protected PoolTaskService poolTaskService
@Autowired(required=true) protected WorkflowItemRoleService workflowItemRoleService
public abstract boolean isFinished(XmlWorkflowItem wfi)
public boolean isAuthorized(Context context, javax.servlet.http.HttpServletRequest request, XmlWorkflowItem wfi) throws SQLException, AuthorizeException, IOException, WorkflowConfigurationException
isAuthorized in class ActionSQLExceptionAuthorizeExceptionIOExceptionWorkflowConfigurationExceptionpublic abstract void regenerateTasks(Context c, XmlWorkflowItem wfi, RoleMembers roleMembers) throws SQLException, AuthorizeException, IOException
c - the dspace contextwfi - the workflowitemroleMembers - the list of users for which tasks must be regeneratedSQLException - ...AuthorizeException - thrown if the current user isn't authorizedIOExceptionpublic abstract boolean isValidUserSelection(Context context, XmlWorkflowItem wfi, boolean hasUI) throws WorkflowConfigurationException, SQLException
context - 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 abstract boolean usesTaskPool()
Copyright © 2022 LYRASIS. All rights reserved.