Package org.dspace.curate.service
Interface WorkflowCuratorService
-
- All Known Implementing Classes:
WorkflowCuratorServiceImpl
public interface WorkflowCuratorServiceWorkflowCurator manages interactions between curation and workflow. Specifically, it is invoked in WorkflowManager to allow the performance of curation tasks during workflow.- Author:
- richardrodgers
-
-
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.booleancurate(Curator curator, Context c, BasicWorkflowItem wfi)Determines and executes curation of a Workflow item.booleandoCuration(Context c, BasicWorkflowItem wfi)Determines and executes curation on a Workflow item.booleanneedsCuration(BasicWorkflowItem wfi)
-
-
-
Method Detail
-
needsCuration
boolean needsCuration(BasicWorkflowItem wfi)
-
doCuration
boolean doCuration(Context c, BasicWorkflowItem 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.- Parameters:
curator- the Curator objectc- the user contextwfId- the workflow id- Returns:
- true if curation was completed or not required, false if no workflow item found for id or item was rejected
- Throws:
AuthorizeException- if authorization errorIOException- if IO errorSQLException- if database error
-
curate
boolean curate(Curator curator, Context c, BasicWorkflowItem wfi) throws AuthorizeException, IOException, SQLException
Determines and executes curation of a Workflow item.- Parameters:
curator- the Curator objectc- the user contextwfi- the workflow item- Returns:
- true if curation was completed or not required, false if item was rejected
- Throws:
AuthorizeException- if authorization errorIOException- if IO errorSQLException- if database error
-
-