Class ScoreReviewAction


  • public class ScoreReviewAction
    extends ProcessingAction
    This action will allow multiple users to rate a certain item if the mean of this score is higher then the minimum score the item will be sent to the next action/step else it will be rejected
    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

      • ScoreReviewAction

        public ScoreReviewAction()
    • 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