Class BulkAccessControlScriptConfiguration<T extends BulkAccessControl>

java.lang.Object
org.dspace.scripts.configuration.ScriptConfiguration<T>
org.dspace.app.bulkaccesscontrol.BulkAccessControlScriptConfiguration<T>
Type Parameters:
T - the BulkAccessControl type
All Implemented Interfaces:
Aware, BeanNameAware
Direct Known Subclasses:
BulkAccessControlCliScriptConfiguration

public class BulkAccessControlScriptConfiguration<T extends BulkAccessControl> extends ScriptConfiguration<T>
Script configuration for BulkAccessControl.
Author:
Mohamed Eskander (mohamed.eskander at 4science.it)
  • Constructor Details

    • BulkAccessControlScriptConfiguration

      public BulkAccessControlScriptConfiguration()
  • Method Details

    • isAllowedToExecute

      public boolean isAllowedToExecute(Context context, List<DSpaceCommandLineParameter> commandLineParameters)
      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
      Overrides:
      isAllowedToExecute in class ScriptConfiguration<T extends BulkAccessControl>
      Parameters:
      context - The relevant DSpace context
      commandLineParameters - the parameters that will be used to start the process if known, null otherwise
      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 BulkAccessControl>
      Returns:
      the options value of this ScriptConfiguration
    • getDspaceRunnableClass

      public Class<T> getDspaceRunnableClass()
      Description copied from class: ScriptConfiguration
      Generic getter for the dspaceRunnableClass
      Specified by:
      getDspaceRunnableClass in class ScriptConfiguration<T extends BulkAccessControl>
      Returns:
      the dspaceRunnableClass value of this ScriptConfiguration
    • setDspaceRunnableClass

      public void setDspaceRunnableClass(Class<T> dspaceRunnableClass)
      Generic setter for the dspaceRunnableClass
      Specified by:
      setDspaceRunnableClass in class ScriptConfiguration<T extends BulkAccessControl>
      Parameters:
      dspaceRunnableClass - The dspaceRunnableClass to be set on this BulkImportScriptConfiguration