Package org.dspace.curate.service
Interface XmlWorkflowCuratorService
- All Known Implementing Classes:
XmlWorkflowCuratorServiceImpl
public interface XmlWorkflowCuratorService
Manage interactions between curation and workflow.
Specifically, it is invoked in XmlWorkflowService to allow the
performance of curation tasks during workflow.
Copied from
WorkflowCuratorService with minor refactoring.- Author:
- mwood
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines and executes curation of a Workflow item by ID.booleancurate(Curator curator, Context c, XmlWorkflowItem wfi) Determines and executes curation of a Workflow item.booleandoCuration(Context c, XmlWorkflowItem wfi) Determines and executes curation on a Workflow item.booleanneedsCuration(Context c, XmlWorkflowItem wfi) Should this item be curated?
-
Method Details
-
needsCuration
Should this item be curated?- Parameters:
c- current DSpace session.wfi- the item in question.- Returns:
- true if the item is in a workflow step.
- Throws:
IOException- passed through.SQLException- passed through.
-
doCuration
boolean doCuration(Context c, XmlWorkflowItem wfi) throws AuthorizeException, IOException, SQLException Determines and executes curation on a Workflow item.- Parameters:
c- the contextwfi- the workflow item- Returns:
- true if curation was completed or not required; false if tasks were queued for later completion, or item was rejected.
- Throws:
AuthorizeException- if authorization errorIOException- if IO errorSQLException- if database error
-
curate
boolean curate(Curator curator, Context c, String wfId) throws AuthorizeException, IOException, SQLException Determines and executes curation of a Workflow item by ID.- Parameters:
curator- the curation contextc- the user contextwfId- the workflow item's ID- Returns:
- true if curation curation was completed or not required; false if tasks were queued for later completion, or item was rejected.
- Throws:
AuthorizeException- if authorization errorIOException- if IO errorSQLException- if database error
-
curate
boolean curate(Curator curator, Context c, XmlWorkflowItem wfi) throws AuthorizeException, IOException, SQLException Determines and executes curation of a Workflow item.- Parameters:
curator- the curation contextc- the user contextwfi- the workflow item- Returns:
- true if workflow curation was completed or not required; false if tasks were queued for later completion, or item was rejected.
- Throws:
AuthorizeException- if authorization errorIOException- if IO errorSQLException- if database error
-