Class Harvest

    • Constructor Detail

      • Harvest

        public Harvest()
    • Method Detail

      • setup

        public void setup()
                   throws org.apache.commons.cli.ParseException
        Description copied from class: DSpaceRunnable
        This 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:
        setup in class DSpaceRunnable<HarvestScriptConfiguration>
        Throws:
        org.apache.commons.cli.ParseException - If something goes wrong
      • assignCurrentUserInContext

        protected void assignCurrentUserInContext()
                                           throws org.apache.commons.cli.ParseException
        This method will assign the currentUser to the Context variable which is also created in this method. The instance of the method in this class will fetch the EPersonIdentifier from this class, this identifier was given to this class upon instantiation, it'll then be used to find the EPerson associated with it and this EPerson will be set as the currentUser of the created Context
        Throws:
        org.apache.commons.cli.ParseException - If something went wrong with the retrieval of the EPerson Identifier