public class AssignOriginalSubmitterAction extends UserSelectionAction
log| Constructor and Description |
|---|
AssignOriginalSubmitterAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(Context c,
XmlWorkflowItem wf) |
void |
alertUsersOnActivation(Context c,
XmlWorkflowItem wfi,
RoleMembers roleMembers) |
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, getErrorFields, getParent, getProvenanceStartId, setParentpublic boolean isFinished(XmlWorkflowItem wfi)
isFinished in class UserSelectionActionpublic void regenerateTasks(Context c, XmlWorkflowItem wfi, RoleMembers roleMembers) throws java.sql.SQLException
UserSelectionActionregenerateTasks in class UserSelectionActionc - the dspace contextwfi - the workflowitemroleMembers - the list of users for which tasks must be regeneratedjava.sql.SQLException - ...public boolean isValidUserSelection(Context context, XmlWorkflowItem wfi, boolean hasUI) throws WorkflowConfigurationException, java.sql.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 workflowjava.sql.SQLException - ...public boolean usesTaskPool()
UserSelectionActionusesTaskPool in class UserSelectionActionpublic void activate(Context c, XmlWorkflowItem wf) throws java.sql.SQLException, java.io.IOException
public void alertUsersOnActivation(Context c, XmlWorkflowItem wfi, RoleMembers roleMembers) throws java.io.IOException, java.sql.SQLException
alertUsersOnActivation in class Actionjava.io.IOExceptionjava.sql.SQLExceptionpublic ActionResult execute(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request) throws java.sql.SQLException, AuthorizeException, java.io.IOException, WorkflowException
execute in class Actionjava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionWorkflowExceptionCopyright © 2018 DuraSpace. All Rights Reserved.