Package org.dspace.app.harvest
Class HarvestCli
java.lang.Object
org.dspace.scripts.DSpaceRunnable<HarvestScriptConfiguration>
org.dspace.app.harvest.Harvest
org.dspace.app.harvest.HarvestCli
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.dspace.scripts.DSpaceRunnable
DSpaceRunnable.StepResult -
Field Summary
Fields inherited from class org.dspace.app.harvest.Harvest
context, ePersonServiceFields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler, helpCommandLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis is the overridden instance of theHarvest.assignCurrentUserInContext()method in the parent classHarvest.Methods inherited from class org.dspace.app.harvest.Harvest
getScriptConfiguration, internalRun, setupMethods inherited from class org.dspace.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, printHelp, run, setEpersonIdentifier
-
Constructor Details
-
HarvestCli
public HarvestCli()
-
-
Method Details
-
assignCurrentUserInContext
protected void assignCurrentUserInContext() throws org.apache.commons.cli.ParseExceptionThis is the overridden instance of theHarvest.assignCurrentUserInContext()method in the parent classHarvest. This is done so that the CLI version of the Script is able to retrieve its currentUser from the -e flag given with the parameters of the Script.- Overrides:
assignCurrentUserInContextin classHarvest- Throws:
org.apache.commons.cli.ParseException- If the e flag was not given to the parameters when calling the script
-