Package org.dspace.curate.service
Interface XmlWorkflowCuratorService
-
- All Known Implementing Classes:
XmlWorkflowCuratorServiceImpl
public interface XmlWorkflowCuratorServiceManage interactions between curation and workflow. Specifically, it is invoked in XmlWorkflowService to allow the performance of curation tasks during workflow. Copied fromWorkflowCuratorServicewith minor refactoring.- Author:
- mwood
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancurate(Curator curator, Context c, String wfId)Determines 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 Detail
-
needsCuration
boolean needsCuration(Context c, XmlWorkflowItem wfi) throws IOException, SQLException
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 failed.
- 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 curation failed.
- Throws:
AuthorizeException- if authorization errorIOException- if IO errorSQLException- if database error
-
-