Class AbstractStoreCommand

java.lang.Object
org.codice.ddf.persistence.commands.AbstractStoreCommand
All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
Direct Known Subclasses:
StoreDeleteCommand, StoreExportCommand, StoreImportCommand, StoreListCommand

public abstract class AbstractStoreCommand extends Object implements org.apache.karaf.shell.api.action.Action
Abstract store command that allows store commands to be built off this. Takes care of obtaining the persistent store service, console, and logging.
  • Field Details

    • LOGGER

      protected static final org.slf4j.Logger LOGGER
    • console

      protected PrintStream console
  • Constructor Details

    • AbstractStoreCommand

      public AbstractStoreCommand()
  • Method Details

    • execute

      public Object execute()
      Specified by:
      execute in interface org.apache.karaf.shell.api.action.Action
    • addUserConstraintToCql

      protected String addUserConstraintToCql(String user, String cql)
    • getResults

      protected long getResults(Function<List<Map<String,Object>>,Integer> storeFunction) throws org.codice.ddf.persistence.PersistenceException
      Throws:
      org.codice.ddf.persistence.PersistenceException