public class ResolvedTask
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
ResolvedTask(java.lang.String taskName,
CurationTask cTask) |
protected |
ResolvedTask(java.lang.String taskName,
ScriptedTask sTask) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getCodes() |
Curator.Invoked |
getMode() |
java.lang.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,
java.lang.String id)
Perform the curation task for passed id
|
int |
perform(DSpaceObject dso)
Perform the curation task upon passed DSO
|
protected ResolvedTask(java.lang.String taskName,
CurationTask cTask)
protected ResolvedTask(java.lang.String taskName,
ScriptedTask sTask)
public void init(Curator curator) throws java.io.IOException
curator - the Curator controlling this taskjava.io.IOExceptionpublic int perform(DSpaceObject dso) throws java.io.IOException
dso - the DSpace objectjava.io.IOExceptionpublic int perform(Context ctx, java.lang.String id) throws java.io.IOException
ctx - DSpace context objectid - persistent ID for DSpace objectjava.lang.Exceptionjava.io.IOExceptionpublic java.lang.String getName()
public boolean isDistributive()
public boolean isMutative()
public Curator.Invoked getMode()
public int[] getCodes()
Copyright © 2018 DuraSpace. All Rights Reserved.