Package edu.uiuc.ncsa.sas.admin
Class SASCommands
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.CommonCommands
-
- edu.uiuc.ncsa.security.storage.cli.StoreCommands
-
- edu.uiuc.ncsa.sas.admin.SASCommands
-
public class SASCommands extends StoreCommands
Created by Jeff Gaynor
on 8/15/22 at 2:48 PM
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.uiuc.ncsa.security.storage.cli.StoreCommands
StoreCommands.RSRecord
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_FILE_FLAG
static String
CONFIG_NAME_FLAG
static String
CONFIG_TAG_NAME
-
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 Modifier Constructor Description protected
SASCommands(SASEnvironment SASEnvironment)
SASCommands(MyLoggingFacade logger, Store store)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extraUpdates(Identifiable identifiable, int magicNumber)
This is a hook for extensions so they don't have to completely rewrite complexStoreCommands.update(edu.uiuc.ncsa.security.core.Identifiable)
methods.protected String
format(Identifiable identifiable)
In listing operations, take theIdentifiable
argument and make a string version that a user can understandSASEnvironment
getEnvironment()
String
getName()
String
getPrompt()
The prompt displayed to the user.static void
main(String[] args)
-
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, 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, 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, readFile, 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
-
SASCommands
protected SASCommands(SASEnvironment SASEnvironment) throws Throwable
- Throws:
Throwable
-
SASCommands
public SASCommands(MyLoggingFacade logger, Store store) throws Throwable
- Throws:
Throwable
-
-
Method Detail
-
getEnvironment
public SASEnvironment getEnvironment()
- Overrides:
getEnvironment
in classStoreCommands
-
getPrompt
public String getPrompt()
Description copied from interface:Commands
The prompt displayed to the user. This allows it to change based on context.- Specified by:
getPrompt
in interfaceCommands
- Overrides:
getPrompt
in classStoreCommands
- Returns:
- java.lang.String
-
getName
public String getName()
- Specified by:
getName
in classStoreCommands
-
extraUpdates
public void extraUpdates(Identifiable identifiable, int magicNumber) throws IOException
Description copied from class:StoreCommands
This is a hook for extensions so they don't have to completely rewrite complexStoreCommands.update(edu.uiuc.ncsa.security.core.Identifiable)
methods. It will be invoked before update displays the completed item and saves it, allowing any properties not in the base class to be queried and saved.- Specified by:
extraUpdates
in classStoreCommands
- Throws:
IOException
-
format
protected String format(Identifiable identifiable)
Description copied from class:StoreCommands
In listing operations, take theIdentifiable
argument and make a string version that a user can understand- Specified by:
format
in classStoreCommands
-
-