Package org.dspace.curate
Interface ScriptedTask
public interface ScriptedTask
ScriptedTask describes a rather generic ability to perform an operation
upon a DSpace object. It's semantics are identical to the CurationTask interface,
but is designed to be implemented in scripting languages, rather than
Java. For this reason, the 'perform' methods are renamed to accommodate
languages (like Ruby) that lack method overloading.
- Author:
- richardrodgers
-
Method Summary
Modifier and TypeMethodDescriptionvoidInitialize task - parameters inform the task of it's invoking curator.intperformDso(DSpaceObject dso) Perform the curation task upon passed DSOintPerform the curation task for passed id
-
Method Details
-
init
Initialize task - parameters inform the task of it's invoking curator. Since the curator can provide services to the task, this represents curation DI.- Parameters:
curator- the Curator controlling this tasktaskId- identifier task should use in invoking services- Throws:
IOException- if IO error
-
performDso
Perform the curation task upon passed DSO- Parameters:
dso- the DSpace object- Returns:
- status code
- Throws:
IOException- if IO error
-
performId
Perform the curation task for passed id- Parameters:
ctx- DSpace context objectid- persistent ID for DSpace object- Returns:
- status code
- Throws:
IOException- if IO error
-