Package org.dspace.app.bulkedit
Class MetadataDeletion
- java.lang.Object
-
- org.dspace.scripts.DSpaceRunnable<MetadataDeletionScriptConfiguration<MetadataDeletion>>
-
- org.dspace.app.bulkedit.MetadataDeletion
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
MetadataDeletionCli
public class MetadataDeletion extends DSpaceRunnable<MetadataDeletionScriptConfiguration<MetadataDeletion>>
DSpaceRunnableimplementation to delete all the values of the given metadata field.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.dspace.scripts.DSpaceRunnable
DSpaceRunnable.StepResult
-
-
Field Summary
-
Fields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler, helpCommandLine
-
-
Constructor Summary
Constructors Constructor Description MetadataDeletion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataDeletionScriptConfiguration<MetadataDeletion>getScriptConfiguration()This method will return the Configuration that the implementing DSpaceRunnable usesvoidinternalRun()This method has to be included in every script and this will be the main execution block for the script that'll contain all the logic neededvoidsetup()This method has to be included in every script and handles the setup of the script by parsing the CommandLine and setting the variables-
Methods inherited from class org.dspace.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, printHelp, run, setEpersonIdentifier
-
-
-
-
Method Detail
-
internalRun
public void internalRun() throws ExceptionDescription copied from class:DSpaceRunnableThis method has to be included in every script and this will be the main execution block for the script that'll contain all the logic needed- Specified by:
internalRunin classDSpaceRunnable<MetadataDeletionScriptConfiguration<MetadataDeletion>>- Throws:
Exception- If something goes wrong
-
getScriptConfiguration
public MetadataDeletionScriptConfiguration<MetadataDeletion> getScriptConfiguration()
Description copied from class:DSpaceRunnableThis method will return the Configuration that the implementing DSpaceRunnable uses- Specified by:
getScriptConfigurationin classDSpaceRunnable<MetadataDeletionScriptConfiguration<MetadataDeletion>>- Returns:
- The
ScriptConfigurationthat this implementing DspaceRunnable uses
-
setup
public void setup() throws org.apache.commons.cli.ParseExceptionDescription copied from class:DSpaceRunnableThis 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:
setupin classDSpaceRunnable<MetadataDeletionScriptConfiguration<MetadataDeletion>>- Throws:
org.apache.commons.cli.ParseException- If something goes wrong
-
-