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
-
-
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, ePersonService
-
Fields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler, helpCommandLine
-
-
Constructor Summary
Constructors Constructor Description HarvestCli()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassignCurrentUserInContext()This is the overridden instance of theHarvest.assignCurrentUserInContext()method in the parent classHarvest.-
Methods inherited from class org.dspace.app.harvest.Harvest
getScriptConfiguration, internalRun, setup
-
Methods inherited from class org.dspace.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, printHelp, run, setEpersonIdentifier
-
-
-
-
Method Detail
-
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
-
-