Package org.dspace.curate
Class ResolvedTask
java.lang.Object
org.dspace.curate.ResolvedTask
ResolvedTask wraps an implementation of one of the CurationTask or
ScriptedTask interfaces and provides for uniform invocation based on
CurationTask methods.
- Author:
- richardrodgers
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResolvedTask(String taskName, CurationTask cTask) protectedResolvedTask(String taskName, ScriptedTask sTask) -
Method Summary
Modifier and TypeMethodDescriptionint[]getCodes()getMode()getName()Returns local name of taskvoidInitialize task - parameters inform the task of it's invoking curator.booleanReturns whether task should be distributed through containersbooleanReturns whether task alters (mutates) it's target objectsintperform(DSpaceObject dso) Perform the curation task upon passed DSOintPerform the curation task for passed id
-
Constructor Details
-
ResolvedTask
-
ResolvedTask
-
-
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 task- Throws:
IOException- if IO error
-
perform
Perform the curation task upon passed DSO- Parameters:
dso- the DSpace object- Returns:
- status code
- Throws:
IOException- if error
-
perform
Perform the curation task for passed id- Parameters:
ctx- DSpace context objectid- persistent ID for DSpace object- Returns:
- status code
- Throws:
IOException- if error
-
getName
Returns local name of task- Returns:
- name the local name of the task
-
isDistributive
public boolean isDistributive()Returns whether task should be distributed through containers- Returns:
- whether task should be distributed through containers
-
isMutative
public boolean isMutative()Returns whether task alters (mutates) it's target objects- Returns:
- whether task alters (mutates) it's target objects
-
getMode
-
getCodes
public int[] getCodes()
-