|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.curate.ResolvedTask
public class ResolvedTask
ResolvedTask wraps an implementation of one of the CurationTask or ScriptedTask interfaces and provides for uniform invocation based on CurationTask methods.
| Constructor Summary | |
|---|---|
protected |
ResolvedTask(String taskName,
CurationTask cTask)
|
protected |
ResolvedTask(String taskName,
ScriptedTask sTask)
|
| Method Summary | |
|---|---|
int[] |
getCodes()
|
Curator.Invoked |
getMode()
|
String |
getName()
Returns local name of task |
void |
init(Curator curator)
Initialize task - parameters inform the task of it's invoking curator. |
boolean |
isDistributive()
Returns whether task should be distributed through containers |
boolean |
isMutative()
Returns whether task alters (mutates) it's target objects |
int |
perform(Context ctx,
String id)
Perform the curation task for passed id |
int |
perform(DSpaceObject dso)
Perform the curation task upon passed DSO |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ResolvedTask(String taskName,
CurationTask cTask)
protected ResolvedTask(String taskName,
ScriptedTask sTask)
| Method Detail |
|---|
public void init(Curator curator)
throws IOException
curator - the Curator controlling this task
IOException
public int perform(DSpaceObject dso)
throws IOException
dso - the DSpace object
IOException
public int perform(Context ctx,
String id)
throws IOException
ctx - DSpace context objectid - persistent ID for DSpace object
Exception
IOExceptionpublic String getName()
public boolean isDistributive()
public boolean isMutative()
public Curator.Invoked getMode()
public int[] getCodes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||