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
CLI variant for the
ItemExport class.
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, zipFileNameFields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler, helpCommandLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocess(Context context, ItemExportService itemExportService) Process the exportprotected voidprotected voidSet the number optionprotected voidSet the zip optionprotected voidvalidate()Validate the optionsMethods inherited from class org.dspace.app.itemexport.ItemExport
getScriptConfiguration, internalRun, setDestDirName, setupMethods inherited from class org.dspace.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, printHelp, run, setEpersonIdentifier
-
Constructor Details
-
ItemExportCLI
public ItemExportCLI()
-
-
Method Details
-
validate
protected void validate()Description copied from class:ItemExportValidate the options- Overrides:
validatein classItemExport
-
process
Description copied from class:ItemExportProcess the export- Overrides:
processin classItemExport- Throws:
Exception
-
setDestDirName
protected void setDestDirName() -
setZip
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
-