|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 accomodate languages (like Ruby) that lack method overloading.
| Method Summary | |
|---|---|
void |
init(Curator curator,
String taskId)
Initialize task - parameters inform the task of it's invoking curator. |
int |
performDso(DSpaceObject dso)
Perform the curation task upon passed DSO |
int |
performId(Context ctx,
String id)
Perform the curation task for passed id |
| Method Detail |
|---|
void init(Curator curator,
String taskId)
throws IOException
curator - the Curator controlling this tasktaskId - identifier task should use in invoking services
IOException
int performDso(DSpaceObject dso)
throws IOException
dso - the DSpace object
IOException
int performId(Context ctx,
String id)
throws IOException
ctx - DSpace context objectid - persistent ID for DSpace object
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||