org.dspace.xmlworkflow.state.actions.processingaction
Class ScoreEvaluationAction

java.lang.Object
  extended by org.dspace.xmlworkflow.state.actions.Action
      extended by org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
          extended by org.dspace.xmlworkflow.state.actions.processingaction.ScoreEvaluationAction

public class ScoreEvaluationAction
extends ProcessingAction

Processing class for the score evaluation action 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 Summary
ScoreEvaluationAction()
           
 
Method Summary
 void activate(Context c, XmlWorkflowItem wf)
           
 ActionResult execute(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request)
           
 int getMinimumAcceptanceScore()
           
 void setMinimumAcceptanceScore(int minimumAcceptanceScore)
           
 
Methods inherited from class org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
isAuthorized
 
Methods inherited from class org.dspace.xmlworkflow.state.actions.Action
addErrorField, alertUsersOnActivation, getErrorFields, getParent, getProvenanceStartId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoreEvaluationAction

public ScoreEvaluationAction()
Method Detail

activate

public void activate(Context c,
                     XmlWorkflowItem wf)
              throws SQLException,
                     IOException,
                     AuthorizeException,
                     WorkflowException
Specified by:
activate in class Action
Throws:
SQLException
IOException
AuthorizeException
WorkflowException

execute

public ActionResult execute(Context c,
                            XmlWorkflowItem wfi,
                            Step step,
                            javax.servlet.http.HttpServletRequest request)
                     throws SQLException,
                            AuthorizeException,
                            IOException,
                            WorkflowException
Specified by:
execute in class Action
Throws:
SQLException
AuthorizeException
IOException
WorkflowException

getMinimumAcceptanceScore

public int getMinimumAcceptanceScore()

setMinimumAcceptanceScore

public void setMinimumAcceptanceScore(int minimumAcceptanceScore)


Copyright © 2012 DuraSpace. All Rights Reserved.