Class PublicationLoaderRunnableCli

All Implemented Interfaces:
Runnable

public class PublicationLoaderRunnableCli extends PublicationLoaderRunnable
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)
  • Constructor Details

    • PublicationLoaderRunnableCli

      public PublicationLoaderRunnableCli()
  • Method Details

    • getScriptConfiguration

      public ScriptConfiguration<?> getScriptConfiguration()
      Retrieves the script configuration associated with this CLI script. This method fetches the configuration from the DSpace service manager.
      Overrides:
      getScriptConfiguration in class PublicationLoaderRunnable
      Returns:
      The ScriptConfiguration instance for the import-loader-suggestions script.
    • setup

      public void setup() throws org.apache.commons.cli.ParseException
      Sets 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:
      setup in class PublicationLoaderRunnable
      Throws:
      org.apache.commons.cli.ParseException - If there is an error parsing the command-line options.