Class ProcessingAction
- java.lang.Object
-
- org.dspace.xmlworkflow.state.actions.Action
-
- org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
-
- Direct Known Subclasses:
AcceptEditRejectAction,FinalEditAction,ReviewAction,ScoreEvaluationAction,ScoreReviewAction,SelectReviewerAction,SingleUserReviewAction
public abstract class ProcessingAction extends Action
Represent an action that can be offered to a workflow step's user(s).- 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 protected ClaimedTaskServiceclaimedTaskServiceprotected ItemServiceitemServiceprotected static StringREJECT_REASONprotected static StringRETURN_TO_POOLprotected static StringSUBMIT_APPROVEstatic StringSUBMIT_CANCELstatic StringSUBMIT_EDIT_METADATAprotected static StringSUBMIT_REJECTprotected XmlWorkflowServicexmlWorkflowService
-
Constructor Summary
Constructors Constructor Description ProcessingAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisAdvanced()Returns true if this Action has advanced options, false if it doesn'tbooleanisAuthorized(Context context, javax.servlet.http.HttpServletRequest request, XmlWorkflowItem wfi)Is this client authorized to act on this item?ActionResultprocessRejectPage(Context c, XmlWorkflowItem wfi, javax.servlet.http.HttpServletRequest request)Process result when option {@link this#SUBMIT_REJECT} is selected.-
Methods inherited from class org.dspace.xmlworkflow.state.actions.Action
activate, addApprovedProvenance, addErrorField, alertUsersOnActivation, execute, getAdvancedInfo, getAdvancedOptions, getErrorFields, getOptions, getParent, getProvenanceStartId, isOptionInParam, setParent
-
-
-
-
Field Detail
-
claimedTaskService
@Autowired(required=true) protected ClaimedTaskService claimedTaskService
-
itemService
@Autowired(required=true) protected ItemService itemService
-
xmlWorkflowService
@Autowired protected XmlWorkflowService xmlWorkflowService
-
SUBMIT_EDIT_METADATA
public static final String SUBMIT_EDIT_METADATA
- See Also:
- Constant Field Values
-
SUBMIT_CANCEL
public static final String SUBMIT_CANCEL
- 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
-
RETURN_TO_POOL
protected static final String RETURN_TO_POOL
- See Also:
- Constant Field Values
-
REJECT_REASON
protected static final String REJECT_REASON
- See Also:
- Constant Field Values
-
-
Method Detail
-
isAuthorized
public boolean isAuthorized(Context context, javax.servlet.http.HttpServletRequest request, XmlWorkflowItem wfi) throws SQLException
Description copied from class:ActionIs this client authorized to act on this item?- Specified by:
isAuthorizedin classAction- Parameters:
context- current DSpace session.request- current client request.wfi- the workflow item in question.- Returns:
- true if authorized.
- Throws:
SQLException- passed through.
-
processRejectPage
public ActionResult processRejectPage(Context c, XmlWorkflowItem wfi, javax.servlet.http.HttpServletRequest request) throws SQLException, AuthorizeException, IOException
Process result when option {@link this#SUBMIT_REJECT} is selected. - Sets the reason and workflow step responsible on item in dc.description.provenance - Send workflow back to the submission If reason is not given => error
-
isAdvanced
protected boolean isAdvanced()
Description copied from class:ActionReturns true if this Action has advanced options, false if it doesn't- Overrides:
isAdvancedin classAction- Returns:
- true if there are advanced options, false otherwise
-
-