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 ItemServiceitemServicestatic StringSUBMIT_CANCELstatic StringSUBMIT_EDIT_METADATA
-
Constructor Summary
Constructors Constructor Description ProcessingAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAuthorized(Context context, javax.servlet.http.HttpServletRequest request, XmlWorkflowItem wfi)Is this client authorized to act on this item?-
Methods inherited from class org.dspace.xmlworkflow.state.actions.Action
activate, addErrorField, alertUsersOnActivation, execute, getErrorFields, getOptions, getParent, getProvenanceStartId, isOptionInParam, setParent
-
-
-
-
Field Detail
-
claimedTaskService
@Autowired(required=true) protected ClaimedTaskService claimedTaskService
-
itemService
@Autowired(required=true) protected ItemService itemService
-
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
-
-
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.
-
-