Class HarvestScriptConfiguration<T extends Harvest>

    • Constructor Detail

      • HarvestScriptConfiguration

        public HarvestScriptConfiguration()
    • Method Detail

      • setDspaceRunnableClass

        public void setDspaceRunnableClass​(Class<T> dspaceRunnableClass)
        Description copied from class: ScriptConfiguration
        Generic setter for the dspaceRunnableClass
        Specified by:
        setDspaceRunnableClass in class ScriptConfiguration<T extends Harvest>
        Parameters:
        dspaceRunnableClass - The dspaceRunnableClass to be set on this IndexDiscoveryScriptConfiguration
      • isAllowedToExecute

        public boolean isAllowedToExecute​(Context context)
        Description copied from class: ScriptConfiguration
        This method will return if the script is allowed to execute in the given context. This is by default set to the currentUser in the context being an admin, however this can be overwritten by each script individually if different rules apply
        Specified by:
        isAllowedToExecute in class ScriptConfiguration<T extends Harvest>
        Parameters:
        context - The relevant DSpace context
        Returns:
        A boolean indicating whether the script is allowed to execute or not
      • getOptions

        public org.apache.commons.cli.Options getOptions()
        Description copied from class: ScriptConfiguration
        The getter for the options of the Script
        Specified by:
        getOptions in class ScriptConfiguration<T extends Harvest>
        Returns:
        the options value of this ScriptConfiguration