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
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
FieldsModifier and TypeFieldDescriptionprotected ClaimedTaskServiceprotected ItemServiceprotected static final Stringprotected static final Stringprotected static final Stringstatic final Stringstatic final Stringprotected static final Stringprotected XmlWorkflowService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanReturns true if this Action has advanced options, false if it doesn'tbooleanisAuthorized(Context context, jakarta.servlet.http.HttpServletRequest request, XmlWorkflowItem wfi) Is this client authorized to act on this item?processRejectPage(Context c, XmlWorkflowItem wfi, jakarta.servlet.http.HttpServletRequest request) Process result when option {@link this#SUBMIT_REJECT} is selectedMethods inherited from class org.dspace.xmlworkflow.state.actions.Action
activate, addApprovedProvenance, addErrorField, alertUsersOnActivation, execute, getAdvancedInfo, getAdvancedOptions, getErrorFields, getOptions, getParent, getProvenanceStartId, isOptionInParam, setParent
-
Field Details
-
claimedTaskService
-
itemService
-
xmlWorkflowService
-
SUBMIT_EDIT_METADATA
- See Also:
-
SUBMIT_CANCEL
- See Also:
-
SUBMIT_APPROVE
- See Also:
-
SUBMIT_REJECT
- See Also:
-
RETURN_TO_POOL
- See Also:
-
REJECT_REASON
- See Also:
-
-
Constructor Details
-
ProcessingAction
public ProcessingAction()
-
-
Method Details
-
isAuthorized
public boolean isAuthorized(Context context, jakarta.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, jakarta.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
-