Package org.dspace.ctask.testing
Class PropertyParameterTestingTask
java.lang.Object
org.dspace.curate.AbstractCurationTask
org.dspace.ctask.testing.PropertyParameterTestingTask
- All Implemented Interfaces:
CurationTask
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 -
Method Summary
Methods inherited from class org.dspace.curate.AbstractCurationTask
dereference, distribute, performItem, performObject, report, setResult, taskArrayProperty, taskBooleanProperty, taskIntProperty, taskLongProperty, taskProperty
-
Constructor Details
-
PropertyParameterTestingTask
public PropertyParameterTestingTask()
-
-
Method Details
-
init
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
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
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
-