Class SelectReviewerAction


  • public class SelectReviewerAction
    extends ProcessingAction
    Processing class for an action where an assigned user can assign another user to review the item
    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)
    • Constructor Detail

      • SelectReviewerAction

        public SelectReviewerAction()
    • Method Detail

      • activate

        public void activate​(Context c,
                             XmlWorkflowItem wf)
        Description copied from class: Action
        Called when a workflow item becomes eligible for this Action.
        Specified by:
        activate in class Action
        Parameters:
        c - current DSpace session.
        wf - the eligible item.
      • execute

        public ActionResult execute​(Context c,
                                    XmlWorkflowItem wfi,
                                    Step step,
                                    javax.servlet.http.HttpServletRequest request)
                             throws SQLException,
                                    AuthorizeException
        Description copied from class: Action
        Called when the action is to be performed.
        Specified by:
        execute in class Action
        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.
      • getOptions

        public List<String> getOptions()
        Description copied from class: Action
        Returns a list of options that the user can select at this action which results in the next step in the workflow
        Specified by:
        getOptions in class Action
        Returns:
        A list of options of this action, resulting in the next step of the workflow
      • getAdvancedOptions

        protected List<String> getAdvancedOptions()
        Description copied from class: Action
        Returns a list of advanced options that the user can select at this action
        Overrides:
        getAdvancedOptions in class Action
        Returns:
        A list of advanced options of this action, resulting in the next step of the workflow
      • getAdvancedInfo

        protected List<ActionAdvancedInfo> getAdvancedInfo()
        Description copied from class: Action
        Returns a list of advanced info required by the advanced options
        Overrides:
        getAdvancedInfo in class Action
        Returns:
        A list of advanced info required by the advanced options
      • getRole

        public Role getRole()
      • setRole

        @Autowired(required=true)
        public void setRole​(Role role)
      • resetGroup

        public static void resetGroup()
        To be used by IT, e.g. XmlWorkflowServiceIT, when defining new 'Reviewers' group