Package org.dspace.app.bulkedit
Class MetadataExport
- java.lang.Object
-
- org.dspace.scripts.DSpaceRunnable<MetadataExportScriptConfiguration>
-
- org.dspace.app.bulkedit.MetadataExport
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
MetadataExportCli
public class MetadataExport extends DSpaceRunnable<MetadataExportScriptConfiguration>
Metadata exporter to allow the batch export of metadata into a file- Author:
- Stuart Lewis
-
-
Field Summary
-
Fields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler
-
-
Constructor Summary
Constructors Constructor Description MetadataExport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetFileNameForExportFile()MetadataExportScriptConfigurationgetScriptConfiguration()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 neededprotected voidlogHelpInfo()voidsetup()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<MetadataExportScriptConfiguration>- Throws:
Exception- If something goes wrong
-
logHelpInfo
protected void logHelpInfo()
-
getScriptConfiguration
public MetadataExportScriptConfiguration getScriptConfiguration()
Description copied from class:DSpaceRunnableThis method will return the Configuration that the implementing DSpaceRunnable uses- Specified by:
getScriptConfigurationin classDSpaceRunnable<MetadataExportScriptConfiguration>- 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<MetadataExportScriptConfiguration>- Throws:
org.apache.commons.cli.ParseException- If something goes wrong
-
getFileNameForExportFile
protected String getFileNameForExportFile() throws org.apache.commons.cli.ParseException
- Throws:
org.apache.commons.cli.ParseException
-
-