Class BaseCommands2
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
-
- edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
-
- org.oa4mp.server.admin.oauth2.base.BaseCommands2
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Logable,edu.uiuc.ncsa.security.util.cli.Commands,edu.uiuc.ncsa.security.util.cli.ComponentManager,Serializable
- Direct Known Subclasses:
OA2Commands
public abstract class BaseCommands2 extends edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2 implements edu.uiuc.ncsa.security.util.cli.ComponentManagerCreated by Jeff Gaynor
on 3/27/15 at 1:49 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLIENT_APPROVALSstatic StringCLIENTSstatic StringCOPYprotected Map<String,edu.uiuc.ncsa.security.util.cli.CLIDriver>driversprotected StringlogoNameprotected booleanshowHeaderprotected booleanshowLogoStringTRANSACTION_COMMAND
-
Constructor Summary
Constructors Constructor Description BaseCommands2(edu.uiuc.ncsa.security.util.cli.CLIDriver driver)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidabout()protected edu.uiuc.ncsa.security.util.cli.CLIDrivercreateCLIDriver(edu.uiuc.ncsa.security.util.cli.CommonCommands2 commands)ClientApprovalStoreCommandsgetClientApprovalCommands()abstract ClientStoreCommandsgetClientCommands()StringgetComponentName()abstract CopyCommandsgetCopyCommands()org.oa4mp.server.api.ServiceEnvironmentgetServiceEnvironment()protected abstract TransactionStoreCommandsgetTransactionCommands()protected booleanhasComponent(String componentName)voidinitialize()Set<String>listComponents()protected voidrunComponent(String componentName)protected voidstartup(String[] args)command line arguments are
-noLogo - do not show logo -noHeader - do not show splash screen with author, version -v = do not suppress startup messages.booleanuse(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)voiduseHelp()-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
bootstrap, doListNames, figureOutLoader, getConfigFile, getConfigName, getEnvironment, getLoader, initHelp, listConfigs, listXMLConfigs, load, loadConfig, setConfigFile, setConfigName, setDriver, setEnvironment, setLoader, showLoadHelp, switchOrRun
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
about, bootstrap, clear_env, clearEnvHelp, debug, error, error, get_env, getDriver, getHelpUtil, getInput, getIOInterface, getLogoName, getPropertyHelp, gracefulExit, hasLogger, indentWidth, info, isDebugOn, isOk, isShowHeader, isShowLogo, print_env, printEnvHelp, printGetEnvHelp, printReadEnvHelp, printSaveEnvHelp, printSetEnvHelp, read_env, readJSON, readline, readline, save_env, say, say, sayi, sayv, set_env, setDebugOn, setLogoName, setShowHeader, setShowLogo, showHelp, warn
-
-
-
-
Field Detail
-
CLIENTS
public static final String CLIENTS
- See Also:
- Constant Field Values
-
CLIENT_APPROVALS
public static final String CLIENT_APPROVALS
- See Also:
- Constant Field Values
-
COPY
public static final String COPY
- See Also:
- Constant Field Values
-
TRANSACTION_COMMAND
public String TRANSACTION_COMMAND
-
showHeader
protected boolean showHeader
-
showLogo
protected boolean showLogo
-
logoName
protected String logoName
-
-
Method Detail
-
initialize
public void initialize()
- Overrides:
initializein classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
-
listComponents
public Set<String> listComponents()
- Specified by:
listComponentsin interfaceedu.uiuc.ncsa.security.util.cli.ComponentManager
-
about
public abstract void about()
-
getClientCommands
public abstract ClientStoreCommands getClientCommands() throws Throwable
- Throws:
Throwable
-
getCopyCommands
public abstract CopyCommands getCopyCommands() throws Throwable
- Throws:
Throwable
-
getTransactionCommands
protected abstract TransactionStoreCommands getTransactionCommands() throws Throwable
- Throws:
Throwable
-
getComponentName
public String getComponentName()
- Specified by:
getComponentNamein classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
-
startup
protected void startup(String[] args) throws Throwable
command line arguments are
- -noLogo - do not show logo
- -noHeader - do not show splash screen with author, version
- -v = do not suppress startup messages. A lot of 3rd party software spits stuff out and it is normally hidden. This prints it all out.
- -silent = same as -noLogo and -noHeader
- -logo name = use the named logo. Standard are Times, Roman (like Times but bigger), OS2 - groovy font, Fraktur - Old German Font or Plain = barebones sans-serif, None = none (same as -noLogo). Times is the default.
-
getServiceEnvironment
public org.oa4mp.server.api.ServiceEnvironment getServiceEnvironment() throws Exception- Throws:
Exception
-
getClientApprovalCommands
public ClientApprovalStoreCommands getClientApprovalCommands() throws Throwable
- Throws:
Throwable
-
use
public boolean use(edu.uiuc.ncsa.security.util.cli.InputLine inputLine) throws Throwable- Specified by:
usein interfaceedu.uiuc.ncsa.security.util.cli.ComponentManager- Overrides:
usein classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2- Throws:
Throwable
-
createCLIDriver
protected edu.uiuc.ncsa.security.util.cli.CLIDriver createCLIDriver(edu.uiuc.ncsa.security.util.cli.CommonCommands2 commands)
-
hasComponent
protected boolean hasComponent(String componentName)
-
useHelp
public void useHelp()
- Specified by:
useHelpin classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
-
-