Class PublicationLoaderRunnableCli
java.lang.Object
org.dspace.scripts.DSpaceRunnable<ScriptConfiguration<?>>
org.dspace.app.suggestion.runnable.PublicationLoaderRunnable
org.dspace.app.suggestion.runnable.PublicationLoaderRunnableCli
- All Implemented Interfaces:
Runnable
CLI implementation of the
PublicationLoaderRunnable script.
This class extends PublicationLoaderRunnable and provides additional
functionality specific to command-line execution.- Author:
- Adamo Fapohunda (adamo.fapohunda at 4science.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.dspace.scripts.DSpaceRunnable
DSpaceRunnable.StepResult -
Field Summary
Fields inherited from class org.dspace.app.suggestion.runnable.PublicationLoaderRunnable
context, filterQuery, loader, profileFields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler, helpCommandLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the script configuration associated with this CLI script.voidsetup()Sets up the script execution environment.Methods inherited from class org.dspace.app.suggestion.runnable.PublicationLoaderRunnable
internalRunMethods inherited from class org.dspace.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, printHelp, run, setEpersonIdentifier
-
Constructor Details
-
PublicationLoaderRunnableCli
public PublicationLoaderRunnableCli()
-
-
Method Details
-
getScriptConfiguration
Retrieves the script configuration associated with this CLI script. This method fetches the configuration from the DSpace service manager.- Overrides:
getScriptConfigurationin classPublicationLoaderRunnable- Returns:
- The
ScriptConfigurationinstance for the import-loader-suggestions script.
-
setup
public void setup() throws org.apache.commons.cli.ParseExceptionSets up the script execution environment. This method also checks for the presence of the help option and, if found, displays usage instructions before terminating the script.- Overrides:
setupin classPublicationLoaderRunnable- Throws:
org.apache.commons.cli.ParseException- If there is an error parsing the command-line options.
-