Class PublicationLoaderRunnable
java.lang.Object
org.dspace.scripts.DSpaceRunnable<PublicationLoaderScriptConfiguration<PublicationLoaderRunnable>>
org.dspace.app.suggestion.openaire.PublicationLoaderRunnable
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
PublicationLoaderRunnableCli
public class PublicationLoaderRunnable
extends DSpaceRunnable<PublicationLoaderScriptConfiguration<PublicationLoaderRunnable>>
Runner responsible to import metadata about authors from OpenAIRE to Solr.
This runner works in two ways:
If -s parameter with a valid UUID is received, then the specific researcher
with this UUID will be used.
Invocation without any parameter results in massive import, processing all
authors registered in DSpace.
- 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
FieldsFields 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 usesvoidThis method has to be included in every script and this will be the main execution block for the script that'll contain all the logic neededvoidsetup()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.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, printHelp, run, setEpersonIdentifier
-
Field Details
-
context
-
profile
-
-
Constructor Details
-
PublicationLoaderRunnable
public PublicationLoaderRunnable()
-
-
Method Details
-
getScriptConfiguration
Description copied from class:DSpaceRunnableThis method will return the Configuration that the implementing DSpaceRunnable uses- Specified by:
getScriptConfigurationin classDSpaceRunnable<PublicationLoaderScriptConfiguration<PublicationLoaderRunnable>>- 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- Specified by:
setupin classDSpaceRunnable<PublicationLoaderScriptConfiguration<PublicationLoaderRunnable>>- Throws:
org.apache.commons.cli.ParseException- If something goes wrong
-
internalRun
Description copied from class:DSpaceRunnableThis method has to be included in every script and this will be the main execution block for the script that'll contain all the logic needed- Specified by:
internalRunin classDSpaceRunnable<PublicationLoaderScriptConfiguration<PublicationLoaderRunnable>>- Throws:
Exception- If something goes wrong
-