Package org.dspace.qaevent.script
Class OpenaireEventsImportCli
java.lang.Object
org.dspace.scripts.DSpaceRunnable<OpenaireEventsImportScriptConfiguration<OpenaireEventsImport>>
org.dspace.qaevent.script.OpenaireEventsImport
org.dspace.qaevent.script.OpenaireEventsImportCli
- All Implemented Interfaces:
Runnable
Extensions of
OpenaireEventsImport to run the script on console.- Author:
- Alessandro Martelli (alessandro.martelli at 4science.it)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.dspace.scripts.DSpaceRunnable
DSpaceRunnable.StepResult -
Field Summary
Fields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler, helpCommandLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method will return the Configuration that the implementing DSpaceRunnable usesvoidsetup()This method has to be included in every script and handles the setup of the script by parsing the CommandLine and setting the variablesMethods inherited from class org.dspace.qaevent.script.OpenaireEventsImport
internalRunMethods inherited from class org.dspace.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, printHelp, run, setEpersonIdentifier
-
Constructor Details
-
OpenaireEventsImportCli
public OpenaireEventsImportCli()
-
-
Method Details
-
getScriptConfiguration
Description copied from class:DSpaceRunnableThis method will return the Configuration that the implementing DSpaceRunnable uses- Overrides:
getScriptConfigurationin classOpenaireEventsImport- Returns:
- The
ScriptConfigurationthat this implementing DspaceRunnable uses
-
setup
public void setup() throws org.apache.commons.cli.ParseExceptionDescription copied from class:DSpaceRunnableThis method has to be included in every script and handles the setup of the script by parsing the CommandLine and setting the variables- Overrides:
setupin classOpenaireEventsImport- Throws:
org.apache.commons.cli.ParseException- If something goes wrong
-