Package org.dspace.app.mediafilter
Class MediaFilterScript
- java.lang.Object
-
- org.dspace.scripts.DSpaceRunnable<MediaFilterScriptConfiguration>
-
- org.dspace.app.mediafilter.MediaFilterScript
-
- All Implemented Interfaces:
Runnable
public class MediaFilterScript extends DSpaceRunnable<MediaFilterScriptConfiguration>
MediaFilterManager is the class that invokes the media/format filters over the repository's content. A few command line flags affect the operation of the MFM: -v verbose outputs all extracted text to STDOUT; -f force forces all bitstreams to be processed, even if they have been before; -n noindex does not recreate index after processing bitstreams; -i [identifier] limits processing scope to a community, collection or item; and -m [max] limits processing to a maximum number of items.
-
-
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 MediaFilterScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaFilterScriptConfigurationgetScriptConfiguration()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
-
getScriptConfiguration
public MediaFilterScriptConfiguration getScriptConfiguration()
Description copied from class:DSpaceRunnableThis method will return the Configuration that the implementing DSpaceRunnable uses- Specified by:
getScriptConfigurationin classDSpaceRunnable<MediaFilterScriptConfiguration>- 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<MediaFilterScriptConfiguration>- Throws:
org.apache.commons.cli.ParseException- If something goes wrong
-
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<MediaFilterScriptConfiguration>- Throws:
Exception- If something goes wrong
-
-