Package org.dspace.app.itemimport
Class ItemImportScriptConfiguration<T extends ItemImport>
- java.lang.Object
-
- org.dspace.scripts.configuration.ScriptConfiguration<T>
-
- org.dspace.app.itemimport.ItemImportScriptConfiguration<T>
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
ItemImportCLIScriptConfiguration
public class ItemImportScriptConfiguration<T extends ItemImport> extends ScriptConfiguration<T>
TheScriptConfigurationfor theItemImportscript- Author:
- Francesco Pio Scognamiglio (francescopio.scognamiglio at 4science.com)
-
-
Field Summary
-
Fields inherited from class org.dspace.scripts.configuration.ScriptConfiguration
options
-
-
Constructor Summary
Constructors Constructor Description ItemImportScriptConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>getDspaceRunnableClass()Generic getter for the dspaceRunnableClassorg.apache.commons.cli.OptionsgetOptions()The getter for the options of the ScriptbooleanisAllowedToExecute(Context context)This method will return if the script is allowed to execute in the given context.voidsetDspaceRunnableClass(Class<T> dspaceRunnableClass)Generic setter for the dspaceRunnableClass-
Methods inherited from class org.dspace.scripts.configuration.ScriptConfiguration
getDescription, getName, setBeanName, setDescription, setName
-
-
-
-
Method Detail
-
getDspaceRunnableClass
public Class<T> getDspaceRunnableClass()
Description copied from class:ScriptConfigurationGeneric getter for the dspaceRunnableClass- Specified by:
getDspaceRunnableClassin classScriptConfiguration<T extends ItemImport>- Returns:
- the dspaceRunnableClass value of this ScriptConfiguration
-
setDspaceRunnableClass
public void setDspaceRunnableClass(Class<T> dspaceRunnableClass)
Description copied from class:ScriptConfigurationGeneric setter for the dspaceRunnableClass- Specified by:
setDspaceRunnableClassin classScriptConfiguration<T extends ItemImport>- Parameters:
dspaceRunnableClass- The dspaceRunnableClass to be set on this IndexDiscoveryScriptConfiguration
-
isAllowedToExecute
public boolean isAllowedToExecute(Context context)
Description copied from class:ScriptConfigurationThis 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:
isAllowedToExecutein classScriptConfiguration<T extends ItemImport>- 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:ScriptConfigurationThe getter for the options of the Script- Specified by:
getOptionsin classScriptConfiguration<T extends ItemImport>- Returns:
- the options value of this ScriptConfiguration
-
-