Package org.codice.ddf.commands.catalog
Class ImportCommand
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.ImportCommand
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
Imports Metacards, History, and their content from a zip file into the catalog. 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
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectExecutes the command once the user has been properly authorized.Methods 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
-
Constructor Details
-
ImportCommand
public ImportCommand()
-
-
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
-