public class ResolvedTask extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ResolvedTask(String taskName,
CurationTask cTask) |
protected |
ResolvedTask(String taskName,
ScriptedTask sTask) |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected ResolvedTask(String taskName, CurationTask cTask)
protected ResolvedTask(String taskName, ScriptedTask sTask)
public void init(Curator curator) throws IOException
curator - the Curator controlling this taskIOException - if IO errorpublic int perform(DSpaceObject dso) throws IOException
dso - the DSpace objectIOException - if errorpublic int perform(Context ctx, String id) throws IOException
ctx - DSpace context objectid - persistent ID for DSpace objectIOException - if errorpublic String getName()
public boolean isDistributive()
public boolean isMutative()
public Curator.Invoked getMode()
public int[] getCodes()
Copyright © 2017 DuraSpace. All rights reserved.