Class ScoreReviewAction
- java.lang.Object
-
- org.dspace.xmlworkflow.state.actions.Action
-
- org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
-
- org.dspace.xmlworkflow.state.actions.processingaction.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
-
-
Field Summary
Fields Modifier and Type Field Description static MetadataFieldNameREVIEW_FIELDstatic MetadataFieldNameSCORE_FIELDstatic StringSUBMIT_SCORE-
Fields inherited from class org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
claimedTaskService, itemService, REJECT_REASON, RETURN_TO_POOL, SUBMIT_APPROVE, SUBMIT_CANCEL, SUBMIT_EDIT_METADATA, SUBMIT_REJECT, xmlWorkflowService
-
-
Constructor Summary
Constructors Constructor Description ScoreReviewAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(Context c, XmlWorkflowItem wf)Called when a workflow item becomes eligible for this Action.ActionResultexecute(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request)Called when the action is to be performed.protected List<ActionAdvancedInfo>getAdvancedInfo()Returns a list of advanced info required by the advanced optionsprotected List<String>getAdvancedOptions()Returns a list of advanced options that the user can select at this actionList<String>getOptions()Returns a list of options that the user can select at this action which results in the next step in the workflowvoidsetDescriptionRequired(boolean descriptionRequired)Setter that sets the descriptionRequired property from workflow-actions.xmlvoidsetMaxValue(int maxValue)Setter that sets the maxValue property from workflow-actions.xml-
Methods inherited from class org.dspace.xmlworkflow.state.actions.processingaction.ProcessingAction
isAdvanced, isAuthorized, processRejectPage
-
Methods inherited from class org.dspace.xmlworkflow.state.actions.Action
addApprovedProvenance, addErrorField, alertUsersOnActivation, getErrorFields, getParent, getProvenanceStartId, isOptionInParam, setParent
-
-
-
-
Field Detail
-
SUBMIT_SCORE
public static final String SUBMIT_SCORE
- See Also:
- Constant Field Values
-
SCORE_FIELD
public static final MetadataFieldName SCORE_FIELD
-
REVIEW_FIELD
public static final MetadataFieldName REVIEW_FIELD
-
-
Method Detail
-
activate
public void activate(Context c, XmlWorkflowItem wf)
Description copied from class:ActionCalled when a workflow item becomes eligible for this Action.
-
execute
public ActionResult execute(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request) throws SQLException, AuthorizeException
Description copied from class:ActionCalled when the action is to be performed.- Specified by:
executein classAction- 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:ActionReturns a list of options that the user can select at this action which results in the next step in the workflow- Specified by:
getOptionsin classAction- 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:ActionReturns a list of advanced options that the user can select at this action- Overrides:
getAdvancedOptionsin classAction- 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:ActionReturns a list of advanced info required by the advanced options- Overrides:
getAdvancedInfoin classAction- 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
-
-