Package org.dspace.curate
Class CurationCli
java.lang.Object
org.dspace.scripts.DSpaceRunnable<CurationScriptConfiguration>
org.dspace.curate.Curation
org.dspace.curate.CurationCli
- All Implemented Interfaces:
Runnable
This is the CLI version of the
Curation script.
This will only be called when the curate script is called from a commandline instance.-
Nested Class Summary
Nested classes/interfaces inherited from class org.dspace.scripts.DSpaceRunnable
DSpaceRunnable.StepResult -
Field Summary
Fields inherited from class org.dspace.curate.Curation
context, dspaceObjectUtils, 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 theCuration.assignCurrentUserInContext()method in the parent classCuration.Methods inherited from class org.dspace.curate.Curation
assignSpecialGroupsInContext, getScriptConfiguration, internalRun, printHelp, setupMethods inherited from class org.dspace.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, run, setEpersonIdentifier
-
Constructor Details
-
CurationCli
public CurationCli()
-
-
Method Details
-
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
-