Class SingleUserReviewAction
- java.lang.Object
-
- org.dspace.xmlworkflow.state.actions.Action
-
- org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
-
- org.dspace.xmlworkflow.state.actions.processingaction.SingleUserReviewAction
-
public class SingleUserReviewAction extends ProcessingAction
Processing class of an action where a single user has been assigned and he can either accept/reject the workflow item or reject the task- 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 Modifier and Type Field Description static intMAIN_PAGEstatic intOUTCOME_REJECTstatic intREJECT_PAGEprotected static StringSUBMIT_APPROVEprotected static StringSUBMIT_DECLINE_TASKprotected static StringSUBMIT_REJECTstatic intSUBMITTER_IS_DELETED_PAGE-
Fields inherited from class org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
claimedTaskService, itemService, SUBMIT_CANCEL, SUBMIT_EDIT_METADATA
-
-
Constructor Summary
Constructors Constructor Description SingleUserReviewAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(Context c, XmlWorkflowItem wfItem)Called when a workflow item becomes eligible for this Action.ActionResultexecute(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request)Called when the action is to be performed.List<String>getOptions()Returns a list of options that the user can select at this action which results in the next step in the workflowActionResultprocessMainPage(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request)ActionResultprocessRejectPage(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request)ActionResultprocessSubmitterIsDeletedPage(Context c, XmlWorkflowItem wfi, javax.servlet.http.HttpServletRequest request)-
Methods inherited from class org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
isAuthorized
-
Methods inherited from class org.dspace.xmlworkflow.state.actions.Action
addErrorField, alertUsersOnActivation, getErrorFields, getParent, getProvenanceStartId, isOptionInParam, setParent
-
-
-
-
Field Detail
-
MAIN_PAGE
public static final int MAIN_PAGE
- See Also:
- Constant Field Values
-
REJECT_PAGE
public static final int REJECT_PAGE
- See Also:
- Constant Field Values
-
SUBMITTER_IS_DELETED_PAGE
public static final int SUBMITTER_IS_DELETED_PAGE
- See Also:
- Constant Field Values
-
OUTCOME_REJECT
public static final int OUTCOME_REJECT
- See Also:
- Constant Field Values
-
SUBMIT_APPROVE
protected static final String SUBMIT_APPROVE
- See Also:
- Constant Field Values
-
SUBMIT_REJECT
protected static final String SUBMIT_REJECT
- See Also:
- Constant Field Values
-
SUBMIT_DECLINE_TASK
protected static final String SUBMIT_DECLINE_TASK
- See Also:
- Constant Field Values
-
-
Method Detail
-
activate
public void activate(Context c, XmlWorkflowItem wfItem)
Description copied from class:ActionCalled when a workflow item becomes eligible for this Action.
-
execute
public ActionResult execute(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request) throws SQLException, AuthorizeException, IOException
Description copied from class:ActionCalled when the action is to be performed.- Specified by:
executein classAction- Parameters:
c- current DSpace session.wfi- the item on which the action is to be performed.step- the workflow step in which the action is performed.request- the current client request.- Returns:
- the result of performing the action.
- Throws:
SQLException- passed through.AuthorizeException- passed through.IOException- passed through.
-
getOptions
public List<String> 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
-
processMainPage
public ActionResult processMainPage(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request) throws SQLException, AuthorizeException
- Throws:
SQLExceptionAuthorizeException
-
processRejectPage
public ActionResult processRejectPage(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request) throws SQLException, AuthorizeException, IOException
-
processSubmitterIsDeletedPage
public ActionResult processSubmitterIsDeletedPage(Context c, XmlWorkflowItem wfi, javax.servlet.http.HttpServletRequest request) throws SQLException, AuthorizeException, IOException
-
-