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
    • 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
      • 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
      • setDescriptionRequired

        public void setDescriptionRequired​(boolean descriptionRequired)
        Setter that sets the descriptionRequired property from workflow-actions.xml
        Parameters:
        descriptionRequired - boolean whether a description is required
      • setMaxValue

        public void setMaxValue​(int maxValue)
        Setter that sets the maxValue property from workflow-actions.xml
        Parameters:
        maxValue - integer of the maximum allowed value