Class CurationScriptConfiguration<T extends Curation>

    • Constructor Detail

      • CurationScriptConfiguration

        public CurationScriptConfiguration()
    • 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 Curation>
        Parameters:
        dspaceRunnableClass - The dspaceRunnableClass to be set on this IndexDiscoveryScriptConfiguration
      • isAllowedToExecute

        public boolean isAllowedToExecute​(Context context,
                                          List<DSpaceCommandLineParameter> commandLineParameters)
        Only repository admins or admins of the target object can run Curation script via the scripts and processes endpoints.
        Overrides:
        isAllowedToExecute in class ScriptConfiguration<T extends Curation>
        Parameters:
        context - The relevant DSpace context
        commandLineParameters - the parameters that will be used to start the process if known, null otherwise
        Returns:
        true if the currentUser is allowed to run the script with the specified parameters or at least in some case if the parameters are not yet known
      • 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 Curation>
        Returns:
        the options value of this ScriptConfiguration