Class JSONStoreCommands

  • All Implemented Interfaces:
    edu.uiuc.ncsa.security.core.Logable, edu.uiuc.ncsa.security.util.cli.Commands, Serializable

    public class JSONStoreCommands
    extends StoreCommands2
    Deprecated.

    Created by Jeff Gaynor
    on 2/21/19 at 7:33 PM

    A utility to manage a store of JSON snippets.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class edu.uiuc.ncsa.security.storage.cli.StoreCommands

        edu.uiuc.ncsa.security.storage.cli.StoreCommands.RSRecord
    • Field Summary

      • Fields inherited from class edu.uiuc.ncsa.security.storage.cli.StoreCommands

        ALL_LIST_COMMAND, allEntries, DEFAULT_MAGIC_NUMBER, display_width, FILE_FLAG, FORCE_COPY_FLAG, KEY_SHORTHAND_PREFIX, LINE_LIST_COMMAND, NEXT_N_COMMAND, RANDOM_ID_FLAG, resultSets, RM_FORCE_FLAG, RS_CLEAR_KEY, RS_LIST_INFO_KEY, RS_REMOVE_KEY, RS_SHOW_KEY, SEARCH_AFTER_TS_FLAG, SEARCH_BEFORE_TS_FLAG, SEARCH_DATE_FLAG, SEARCH_DEBUG_FLAG, SEARCH_REGEX_FLAG, SEARCH_RESULT_SET_NAME, SEARCH_RETURNED_ATTRIBUTES_FLAG, SEARCH_SHORT_REGEX_FLAG, SEARCH_SIZE_FLAG, SHORT_UPDATE_FLAG, SIZE_ALL_FLAG, SIZE_VERSIONS_FLAG, sortable, UPDATE_FLAG, UPKEEP_FLAG_CFG, UPKEEP_FLAG_ENABLE, UPKEEP_FLAG_RUN, UPKEEP_FLAG_SHOW, UPKEEP_FLAG_TEST, VERBOSE_COMMAND
      • Fields inherited from class edu.uiuc.ncsa.security.util.cli.CommonCommands

        BATCH_FILE_LINE_CONTINUES, BATCH_FILE_MODE_FLAG, BATCH_MODE_FLAG, batchFile, CL_INPUT_FILE_FLAG, CL_OUTPUT_FILE_FLAG, DEFAULT_NULL_VALUE_PLACEHOLDER, defaultIndent, INDENT, logger, placeHolder
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONStoreCommands​(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger, String defaultIndent, edu.uiuc.ncsa.security.core.Store store)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected net.sf.json.JSON createJSONFromLines​(String raw)
      Deprecated.
      Takes the lines of a file and turns it in to a JSON object.
      protected net.sf.json.JSONArray createProcedureFromLines​(List<String> lines)
      Deprecated.
      Take a file with a procedure in it and turn it in to an array of lines.
      protected String format​(edu.uiuc.ncsa.security.core.Identifiable identifiable)
      Deprecated.
       
      protected String getFromEditor​(String raw)
      Deprecated.
       
      edu.uiuc.ncsa.security.util.json.Ingester getIngester()
      Deprecated.
       
      protected edu.uiuc.ncsa.security.util.json.JSONStore<edu.uiuc.ncsa.security.util.json.JSONEntry> getJStore()
      Deprecated.
       
      String getName()
      Deprecated.
       
      void ingest​(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
      Deprecated.
      Ingest a file directly.
      protected void ingesterHelp()
      Deprecated.
       
      protected String readFile​(String path)
      Deprecated.
       
      boolean update​(edu.uiuc.ncsa.security.core.Identifiable identifiable)
      Deprecated.
       
      protected boolean updateJSON​(edu.uiuc.ncsa.security.util.json.JSONEntry jsonEntry)
      Deprecated.
       
      protected boolean updateProcedure​(edu.uiuc.ncsa.security.util.json.JSONEntry jsonEntry)
      Deprecated.
       
      • Methods inherited from class edu.uiuc.ncsa.security.storage.cli.StoreCommands

        actualCreate, addEntry, addEntry, archive, archiveFormat, bootstrap, clear_id, clear_store, clearEntries, copy, create, create, create, createEntry, createNew, deserialize, doCopy, doRename, edit, escapeRegex, findItem, formatLongLine, fromXMLMap, get_id, getAndCheckKeyArg, getArgList, getEditorEntry, getID, getKeyArg, getKeyArg, getMapConverter, getPrompt, getResultSets, getSerializationKeys, getSortable, getStore, getStoreArchiver, getTempDir, hasEntries, hasId, hasID, hasKey, inputJSON, isMonitored, list_keys, listAll, loadAllEntries, loadQDLScript, longFormat, longFormat, longFormat, ls, multiLineInput, multiLinePropertyInput, oldls, oldrm, oldUpdate, preCreation, print_help, printRS, removeEntries, removeEntry, rename, rm, rmCleanup, rs, search, serialize, serialize, set_id, setEnvironment, setID, setIDFromInputLine, setResultSets, setSortable, setStore, showArchiveHelp, showCommandLineSwitchesHelp, showCreateHelp, showDeserializeHelp, showEntries, showEntry, showKeyShorthandHelp, showListKeysHelp, showLSHelp, showLSHelp3, showResultSetHelp, showRMHelp, showSearchHelp, showSearchHelpExamples, showSerializeHelp, showSizeHelp, showUpdateHelp, showUpkeepHelp, size, supportsQDL, toXMLMap, update, update, updateSingleValue, updateSingleValue, upkeep
      • Methods inherited from class edu.uiuc.ncsa.security.util.cli.CommonCommands

        clear_env, clearEnvHelp, debug, echo, echoHelp, error, get_env, getBufferedReader, getDriver, getHelpUtil, getInput, getIOInterface, getPlaceHolder, getPropertyHelp, getValue, gracefulExit, indentWidth, info, isBatch, isBatchFile, isBatchMode, isDebugOn, isEmpty, isOk, isPrintOuput, isVerbose, logit, print_env, printEnvHelp, printGetEnvHelp, printReadEnvHelp, printSaveEnvHelp, printSetEnvHelp, read_env, readJSON, readline, readline, save_env, say, say, say2, sayi, sayii, sayv, set_env, set_output_on, set_verbose_on, setBatchFile, setBatchMode, setBufferedReader, setDebugOn, setDriver, setHelpUtil, setIOInterface, setOutputOnHelp, setPlaceHolder, setPrintOuput, setVerbose, setVerboseHelp, showHelp, version, versionHelp, warn
    • Constructor Detail

      • JSONStoreCommands

        public JSONStoreCommands​(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger,
                                 String defaultIndent,
                                 edu.uiuc.ncsa.security.core.Store store)
                          throws Throwable
        Deprecated.
        Throws:
        Throwable
    • Method Detail

      • getJStore

        protected edu.uiuc.ncsa.security.util.json.JSONStore<edu.uiuc.ncsa.security.util.json.JSONEntry> getJStore()
        Deprecated.
      • getIngester

        public edu.uiuc.ncsa.security.util.json.Ingester getIngester()
        Deprecated.
      • getName

        public String getName()
        Deprecated.
      • updateProcedure

        protected boolean updateProcedure​(edu.uiuc.ncsa.security.util.json.JSONEntry jsonEntry)
                                   throws IOException
        Deprecated.
        Throws:
        IOException
      • readFile

        protected String readFile​(String path)
        Deprecated.
        Overrides:
        readFile in class edu.uiuc.ncsa.security.util.cli.CommonCommands
      • updateJSON

        protected boolean updateJSON​(edu.uiuc.ncsa.security.util.json.JSONEntry jsonEntry)
                              throws IOException
        Deprecated.
        Throws:
        IOException
      • ingesterHelp

        protected void ingesterHelp()
        Deprecated.
      • ingest

        public void ingest​(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
                    throws IOException
        Deprecated.
        Ingest a file directly. The identifier can be included in the JSON and it will be used.
        Parameters:
        inputLine -
        Throws:
        IOException
      • update

        public boolean update​(edu.uiuc.ncsa.security.core.Identifiable identifiable)
                       throws IOException
        Deprecated.
        Overrides:
        update in class edu.uiuc.ncsa.security.storage.cli.StoreCommands
        Throws:
        IOException
      • format

        protected String format​(edu.uiuc.ncsa.security.core.Identifiable identifiable)
        Deprecated.
        Specified by:
        format in class edu.uiuc.ncsa.security.storage.cli.StoreCommands
      • createJSONFromLines

        protected net.sf.json.JSON createJSONFromLines​(String raw)
        Deprecated.
        Takes the lines of a file and turns it in to a JSON object.
        Parameters:
        raw -
        Returns:
      • createProcedureFromLines

        protected net.sf.json.JSONArray createProcedureFromLines​(List<String> lines)
        Deprecated.
        Take a file with a procedure in it and turn it in to an array of lines. This is how the procedure is stored in the JSONStore.
        Parameters:
        lines -
        Returns: