Package org.dspace.ctask.testing
Class PropertyParameterTestingTask
- java.lang.Object
-
- org.dspace.curate.AbstractCurationTask
-
- org.dspace.ctask.testing.PropertyParameterTestingTask
-
- All Implemented Interfaces:
CurationTask
public class PropertyParameterTestingTask extends AbstractCurationTask
Logs what it was asked to do, samples run parameters and task properties, making no changes to the repository. For testing.To test parameters and properties, set a value for the run parameter "runParameter" or the task property "taskProperty".
This is a debugging tool, NOT a regression test.
- Author:
- mhwood
-
-
Field Summary
-
Fields inherited from class org.dspace.curate.AbstractCurationTask
communityService, configurationService, curator, handleService, itemService, taskId
-
-
Constructor Summary
Constructors Constructor Description PropertyParameterTestingTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(Curator curator, String taskId)Initialize task - parameters inform the task of it's invoking curator.intperform(DSpaceObject dso)Perform the curation task upon passed DSOintperform(Context ctx, String id)Perform the curation task for passed id-
Methods inherited from class org.dspace.curate.AbstractCurationTask
dereference, distribute, performItem, performObject, report, setResult, taskArrayProperty, taskBooleanProperty, taskIntProperty, taskLongProperty, taskProperty
-
-
-
-
Method Detail
-
init
public void init(Curator curator, String taskId) throws IOException
Description copied from interface:CurationTaskInitialize task - parameters inform the task of it's invoking curator. Since the curator can provide services to the task, this represents curation DI.- Specified by:
initin interfaceCurationTask- Overrides:
initin classAbstractCurationTask- Parameters:
curator- the Curator controlling this tasktaskId- identifier task should use in invoking services- Throws:
IOException- if error
-
perform
public int perform(DSpaceObject dso) throws IOException
Description copied from interface:CurationTaskPerform the curation task upon passed DSO- Specified by:
performin interfaceCurationTask- Specified by:
performin classAbstractCurationTask- Parameters:
dso- the DSpace object- Returns:
- status code
- Throws:
IOException- if error
-
perform
public int perform(Context ctx, String id) throws IOException
Description copied from interface:CurationTaskPerform the curation task for passed id- Specified by:
performin interfaceCurationTask- Overrides:
performin classAbstractCurationTask- Parameters:
ctx- DSpace context objectid- persistent ID for DSpace object- Returns:
- status code
- Throws:
IOException- if error
-
-