Package org.dspace.curate
Class CurationCli
- java.lang.Object
-
- org.dspace.scripts.DSpaceRunnable<CurationScriptConfiguration>
-
- org.dspace.curate.Curation
-
- org.dspace.curate.CurationCli
-
-
Field Summary
-
Fields inherited from class org.dspace.curate.Curation
context, ePersonService
-
Fields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler
-
-
Constructor Summary
Constructors Constructor Description CurationCli()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassignCurrentUserInContext()This is the overridden instance of theCuration.assignCurrentUserInContext()method in the parent classCuration.-
Methods inherited from class org.dspace.curate.Curation
getScriptConfiguration, internalRun, printHelp, setup
-
Methods inherited from class org.dspace.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, run, setEpersonIdentifier
-
-
-
-
Method Detail
-
assignCurrentUserInContext
protected void assignCurrentUserInContext() throws org.apache.commons.cli.ParseExceptionThis is the overridden instance of theCuration.assignCurrentUserInContext()method in the parent classCuration. 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 classCuration- Throws:
org.apache.commons.cli.ParseException- If the e flag was not given to the parameters when calling the script
-
-