Package org.cilogon.oauth2.admin
Class UserStoreCommands
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.CommonCommands
-
- edu.uiuc.ncsa.security.storage.cli.StoreCommands
-
- org.oa4mp.server.admin.myproxy.oauth2.base.StoreCommands2
-
- org.cilogon.oauth2.admin.UserStoreCommands
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Logable
,edu.uiuc.ncsa.security.util.cli.Commands
,Serializable
public class UserStoreCommands extends org.oa4mp.server.admin.myproxy.oauth2.base.StoreCommands2
Created by Jeff Gaynor
on 5/23/13 at 9:47 AM- See Also:
- Serialized Form
-
-
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
-
-
Constructor Summary
Constructors Constructor Description UserStoreCommands(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger, String defaultIndent, edu.uiuc.ncsa.security.core.Store userStore, ArchivedUserStore archivedUserStore)
UserStoreCommands(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger, UserStore userStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
archive(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
void
bootstrap()
protected User
createEntry(int magicNumber)
void
dn(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
void
extraUpdates(edu.uiuc.ncsa.security.core.Identifiable identifiable, int magicNumber)
protected String
format(edu.uiuc.ncsa.security.core.Identifiable identifiable)
ArchivedUserStore
getArchivedUserStore()
protected void
getEPPN(User user)
protected void
getEPTID(User user)
String
getName()
protected void
getOpenID(User user)
protected void
getOpenIDConnect(User user)
protected String
getPersonPrompt(String prompt, PersonName person)
protected void
getRemoteUser(User user)
protected UserStore
getUserStore()
protected int
longFormat(edu.uiuc.ncsa.security.core.Identifiable identifiable, boolean isVerbose)
void
print_help()
void
rm(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
void
setArchivedUserStore(ArchivedUserStore archivedUserStore)
protected void
showArchiveHelp()
-
Methods inherited from class org.oa4mp.server.admin.myproxy.oauth2.base.StoreCommands2
decode, encode, getEnvironment, main
-
Methods inherited from class edu.uiuc.ncsa.security.storage.cli.StoreCommands
actualCreate, addEntry, addEntry, archiveFormat, clear_id, clear_store, clearEntries, copy, create, create, create, 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, ls, multiLineInput, multiLinePropertyInput, oldls, oldrm, oldUpdate, preCreation, printRS, removeEntries, removeEntry, rename, rmCleanup, rs, search, serialize, serialize, set_id, setEnvironment, setID, setIDFromInputLine, setResultSets, setSortable, setStore, 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
-
UserStoreCommands
public UserStoreCommands(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger, String defaultIndent, edu.uiuc.ncsa.security.core.Store userStore, ArchivedUserStore archivedUserStore) throws Throwable
- Throws:
Throwable
-
-
Method Detail
-
getUserStore
protected UserStore getUserStore()
-
getArchivedUserStore
public ArchivedUserStore getArchivedUserStore()
-
setArchivedUserStore
public void setArchivedUserStore(ArchivedUserStore archivedUserStore)
-
createEntry
protected User createEntry(int magicNumber)
- Overrides:
createEntry
in classedu.uiuc.ncsa.security.storage.cli.StoreCommands
-
format
protected String format(edu.uiuc.ncsa.security.core.Identifiable identifiable)
- Specified by:
format
in classedu.uiuc.ncsa.security.storage.cli.StoreCommands
-
print_help
public void print_help() throws Exception
- Specified by:
print_help
in interfaceedu.uiuc.ncsa.security.util.cli.Commands
- Overrides:
print_help
in classedu.uiuc.ncsa.security.storage.cli.StoreCommands
- Throws:
Exception
-
getName
public String getName()
- Specified by:
getName
in classedu.uiuc.ncsa.security.storage.cli.StoreCommands
-
showArchiveHelp
protected void showArchiveHelp()
- Overrides:
showArchiveHelp
in classedu.uiuc.ncsa.security.storage.cli.StoreCommands
-
archive
public void archive(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
- Overrides:
archive
in classedu.uiuc.ncsa.security.storage.cli.StoreCommands
-
extraUpdates
public void extraUpdates(edu.uiuc.ncsa.security.core.Identifiable identifiable, int magicNumber) throws IOException
- Overrides:
extraUpdates
in classorg.oa4mp.server.admin.myproxy.oauth2.base.StoreCommands2
- Throws:
IOException
-
getPersonPrompt
protected String getPersonPrompt(String prompt, PersonName person) throws IOException
- Throws:
IOException
-
getOpenID
protected void getOpenID(User user) throws IOException
- Throws:
IOException
-
getOpenIDConnect
protected void getOpenIDConnect(User user) throws IOException
- Throws:
IOException
-
getEPTID
protected void getEPTID(User user) throws IOException
- Throws:
IOException
-
getEPPN
protected void getEPPN(User user) throws IOException
- Throws:
IOException
-
getRemoteUser
protected void getRemoteUser(User user) throws IOException
- Throws:
IOException
-
longFormat
protected int longFormat(edu.uiuc.ncsa.security.core.Identifiable identifiable, boolean isVerbose)
- Overrides:
longFormat
in classedu.uiuc.ncsa.security.storage.cli.StoreCommands
-
rm
public void rm(edu.uiuc.ncsa.security.util.cli.InputLine inputLine) throws IOException
- Overrides:
rm
in classedu.uiuc.ncsa.security.storage.cli.StoreCommands
- Throws:
IOException
-
dn
public void dn(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
-
-