Package org.dspace.app.itemexport
Class ItemExportCLI
- java.lang.Object
-
- org.dspace.scripts.DSpaceRunnable<ItemExportScriptConfiguration>
-
- org.dspace.app.itemexport.ItemExport
-
- org.dspace.app.itemexport.ItemExportCLI
-
- All Implemented Interfaces:
Runnable
public class ItemExportCLI extends ItemExport
CLI variant for theItemExportclass. This was done to specify the specific behaviors for the CLI.- Author:
- Francesco Pio Scognamiglio (francescopio.scognamiglio at 4science.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.dspace.scripts.DSpaceRunnable
DSpaceRunnable.StepResult
-
-
Field Summary
-
Fields inherited from class org.dspace.app.itemexport.ItemExport
collection, collectionService, destDirName, epersonService, excludeBitstreams, handleService, help, idString, item, itemService, migrate, seqStart, TEMP_DIR, type, typeString, zip, ZIP_EXT, ZIP_FILENAME, ZIP_NAME, zipFileName
-
Fields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler, helpCommandLine
-
-
Constructor Summary
Constructors Constructor Description ItemExportCLI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidprocess(Context context, ItemExportService itemExportService)Process the exportprotected voidsetDestDirName()protected voidsetNumber()Set the number optionprotected voidsetZip(Context context)Set the zip optionprotected voidvalidate()Validate the options-
Methods inherited from class org.dspace.app.itemexport.ItemExport
getScriptConfiguration, internalRun, setDestDirName, setup
-
Methods inherited from class org.dspace.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, printHelp, run, setEpersonIdentifier
-
-
-
-
Method Detail
-
validate
protected void validate()
Description copied from class:ItemExportValidate the options- Overrides:
validatein classItemExport
-
process
protected void process(Context context, ItemExportService itemExportService) throws Exception
Description copied from class:ItemExportProcess the export- Overrides:
processin classItemExport- Throws:
Exception
-
setDestDirName
protected void setDestDirName()
-
setZip
protected void setZip(Context context)
Description copied from class:ItemExportSet the zip option- Overrides:
setZipin classItemExport
-
setNumber
protected void setNumber()
Description copied from class:ItemExportSet the number option- Overrides:
setNumberin classItemExport
-
-