Package org.codice.ddf.commands.catalog
Class ExportCommand
java.lang.Object
org.codice.ddf.commands.catalog.CommandSupport
org.codice.ddf.commands.catalog.SubjectCommands
org.codice.ddf.commands.catalog.CatalogCommands
org.codice.ddf.commands.catalog.CqlCommands
org.codice.ddf.commands.catalog.ExportCommand
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
Exports Metacards, History, and their content into a zip file. This code is experimental.
While this interface is functional and tested, it may change or be removed in a future version of
the library.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ddf.security.audit.SecurityLoggerprotected ddf.catalog.content.StorageProviderFields inherited from class org.codice.ddf.commands.catalog.CqlCommands
DATE_FORMAT, DEFAULT_TEMPORAL_PROPERTYFields inherited from class org.codice.ddf.commands.catalog.CatalogCommands
bundleContext, catalogFramework, catalogProvider, DATETIME_FORMATTER, DEFAULT_NUMBER_OF_ITEMS, DEFAULT_TRANSFORMER_ID, ESCAPE, filterBuilder, isProvider, NAMESPACE, SERIALIZED_OBJECT_ID, SINGLE_WILDCARD, WILDCARDFields inherited from class org.codice.ddf.commands.catalog.SubjectCommands
security, session, userFields inherited from class org.codice.ddf.commands.catalog.CommandSupport
console, ERROR_COLOR, MS_PER_SECOND -
Constructor Summary
ConstructorsConstructorDescriptionExportCommand(ddf.catalog.filter.FilterBuilder filterBuilder, org.osgi.framework.BundleContext bundleContext, ddf.catalog.CatalogFramework catalogFramework, DigitalSignature signer) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectExecutes the command once the user has been properly authorized.protected org.geotools.api.filter.FilterMethods inherited from class org.codice.ddf.commands.catalog.CqlCommands
getFilter, getFilterStartTime, getTemporalProperty, hasFilterMethods inherited from class org.codice.ddf.commands.catalog.CatalogCommands
getCatalog, getFormattedDuration, getFormattedDuration, getServiceByFilterMethods inherited from class org.codice.ddf.commands.catalog.SubjectCommands
executeMethods inherited from class org.codice.ddf.commands.catalog.CommandSupport
calculateRecordsPerSecond, printColor, printErrorMessage, printHeaderMessage, printProgressAndFlush, printSuccessMessage
-
Field Details
-
storageProvider
protected ddf.catalog.content.StorageProvider storageProvider -
securityLogger
protected ddf.security.audit.SecurityLogger securityLogger
-
-
Constructor Details
-
ExportCommand
public ExportCommand() -
ExportCommand
public ExportCommand(ddf.catalog.filter.FilterBuilder filterBuilder, org.osgi.framework.BundleContext bundleContext, ddf.catalog.CatalogFramework catalogFramework, DigitalSignature signer)
-
-
Method Details
-
executeWithSubject
Description copied from class:SubjectCommandsExecutes the command once the user has been properly authorized.- Specified by:
executeWithSubjectin classSubjectCommands- Returns:
- result of the command execution
- Throws:
Exception- if the command failed to run
-
getFilter
protected org.geotools.api.filter.Filter getFilter() throws ParseException, org.geotools.filter.text.cql2.CQLException- Overrides:
getFilterin classCqlCommands- Throws:
ParseExceptionorg.geotools.filter.text.cql2.CQLException
-