Class OA2Commands
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
-
- org.oa4mp.server.admin.base.oauth2.myproxy.BaseCommands
-
- org.oa4mp.server.admin.tools.oauth2.myproxy.OA2Commands
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Logable
,edu.uiuc.ncsa.security.util.cli.Commands
,edu.uiuc.ncsa.security.util.cli.ComponentManager
public class OA2Commands extends BaseCommands
Created by Jeff Gaynor
on 4/3/14 at 1:23 PM
-
-
Field Summary
Fields Modifier and Type Field Description static String
ADMINS
static String
KEYS
protected edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment>
loader
static String
PERMISSIONS
static String
TOKENS
static String
VIRTUAL_ORGANIZATION
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oauth2.base.BaseCommands
CLIENT_APPROVALS, CLIENTS, components, COPY, logoName, PARSER_COMMAND, showHeader, showLogo, TRANSACTION_COMMAND
-
Fields inherited from class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
COMMENT_START, COMMENT_START_OPTION, CONFIG_FILE_LONG_OPTION, CONFIG_FILE_OPTION, CONFIG_NAME_LONG_OPTION, CONFIG_NAME_OPTION, DEBUG_LONG_OPTION, DEBUG_OPTION, DEFAULT_LOG_FILE, ENV_LONG_OPTION, ENV_OPTION, FILE_SWITCH, HELP_LONG_OPTION, HELP_OPTION, INPUT_OPTION, LOG_FILE_LONG_OPTION, LOG_FILE_OPTION, OUTPUT_OPTION, USE_COMPONENT_LONG_OPTION, USE_COMPONENT_OPTION, VERBOSE_LONG_OPTION, VERBOSE_OPTION
-
-
Constructor Summary
Constructors Constructor Description OA2Commands(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
about()
void
about(boolean showBanner, boolean showHeader)
void
bootstrap()
protected edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment>
figureOutLoader(String fileName, String configName)
OA2AdminClientCommands
getAdminClientCommands()
edu.uiuc.ncsa.security.util.cli.HelpUtil
getHelpUtil()
edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment>
getLoader()
ClientStoreCommands
getNewClientStoreCommands()
CopyCommands
getNewCopyCommands()
edu.uiuc.ncsa.security.util.cli.ParserCommands
getNewParserCommands()
OA2PermissionCommands
getPermissionCommands()
String
getPrompt()
protected edu.uiuc.ncsa.security.util.cli.CommonCommands
getTokenCommands()
protected edu.uiuc.ncsa.security.util.cli.CommonCommands
getTransactionCommands()
protected VOCommands
getVOCommands()
protected void
init()
static void
main(String[] args)
void
print_help()
void
setLoader(edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> loader)
protected static void
setupSAS(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
boolean
use(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
void
useHelp()
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oauth2.base.BaseCommands
executeComponent, getComponentName, getNewClientApprovalStoreCommands, getServiceEnvironment, hasComponent, listComponents, runComponent, start, switchOrRun
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
debug, doListNames, error, getCommandLine, getConfigFile, getConfigName, getEnvironment, getGlobalEnv, getIOInterface, getLogfileName, getMyLogger, getOptions, getOptions, hasOption, info, initialize, isDebugOn, isVerbose, listConfigs, listXMLConfigs, load, loadConfig, padLineWithBlanks, parseCommandLine, readEnv, say, sayv, setConfigFile, setConfigName, setDebugOn, setEnvironment, setIOInterface, setLogfileName, setMyLogger, setVerbose, showHelp, showLoadHelp, trace, warn
-
-
-
-
Field Detail
-
PERMISSIONS
public static final String PERMISSIONS
- See Also:
- Constant Field Values
-
ADMINS
public static final String ADMINS
- See Also:
- Constant Field Values
-
TOKENS
public static final String TOKENS
- See Also:
- Constant Field Values
-
KEYS
public static final String KEYS
- See Also:
- Constant Field Values
-
VIRTUAL_ORGANIZATION
public static final String VIRTUAL_ORGANIZATION
- See Also:
- Constant Field Values
-
loader
protected edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> loader
-
-
Method Detail
-
init
protected void init()
- Overrides:
init
in classBaseCommands
-
getPrompt
public String getPrompt()
-
getLoader
public edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> getLoader()
- Specified by:
getLoader
in classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
-
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.util.cli.ConfigurableCommandsImpl
- Throws:
Exception
-
getNewParserCommands
public edu.uiuc.ncsa.security.util.cli.ParserCommands getNewParserCommands() throws Throwable
- Specified by:
getNewParserCommands
in classBaseCommands
- Throws:
Throwable
-
main
public static void main(String[] args)
-
setupSAS
protected static void setupSAS(edu.uiuc.ncsa.security.util.cli.InputLine inputLine) throws Throwable
- Throws:
Throwable
-
useHelp
public void useHelp()
- Overrides:
useHelp
in classBaseCommands
-
about
public void about()
- Specified by:
about
in classBaseCommands
-
about
public void about(boolean showBanner, boolean showHeader)
-
getNewClientStoreCommands
public ClientStoreCommands getNewClientStoreCommands() throws Throwable
- Specified by:
getNewClientStoreCommands
in classBaseCommands
- Throws:
Throwable
-
getNewCopyCommands
public CopyCommands getNewCopyCommands() throws Throwable
- Specified by:
getNewCopyCommands
in classBaseCommands
- Throws:
Throwable
-
getTokenCommands
protected edu.uiuc.ncsa.security.util.cli.CommonCommands getTokenCommands() throws Throwable
- Throws:
Throwable
-
getVOCommands
protected VOCommands getVOCommands() throws Throwable
- Throws:
Throwable
-
getTransactionCommands
protected edu.uiuc.ncsa.security.util.cli.CommonCommands getTransactionCommands() throws Throwable
- Specified by:
getTransactionCommands
in classBaseCommands
- Throws:
Throwable
-
getAdminClientCommands
public OA2AdminClientCommands getAdminClientCommands() throws Throwable
- Throws:
Throwable
-
getPermissionCommands
public OA2PermissionCommands getPermissionCommands() throws Throwable
- Throws:
Throwable
-
use
public boolean use(edu.uiuc.ncsa.security.util.cli.InputLine inputLine) throws Throwable
- Specified by:
use
in interfaceedu.uiuc.ncsa.security.util.cli.ComponentManager
- Overrides:
use
in classBaseCommands
- Throws:
Throwable
-
getHelpUtil
public edu.uiuc.ncsa.security.util.cli.HelpUtil getHelpUtil()
-
setLoader
public void setLoader(edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> loader)
- Specified by:
setLoader
in classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
-
figureOutLoader
protected edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> figureOutLoader(String fileName, String configName) throws Throwable
- Specified by:
figureOutLoader
in classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
- Throws:
Throwable
-
-