Class 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.ComponentManager

    Created by Jeff Gaynor
    on 3/27/15 at 1:49 PM

    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2

        edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2.ListOnlyNotification
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String CLIENT_APPROVALS  
      static String CLIENTS  
      static String COPY  
      protected Map<String,​edu.uiuc.ncsa.security.util.cli.CLIDriver> drivers  
      protected String logoName  
      protected boolean showHeader  
      protected boolean showLogo  
      String TRANSACTION_COMMAND  
      • Fields inherited from class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2

        CFG_FILE_SWITCH, CONFIG_FILE_LONG_OPTION, CONFIG_FILE_OPTION, CONFIG_NAME_LONG_OPTION, CONFIG_NAME_OPTION
      • Fields inherited from class edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl

        CL_INPUT_FILE_FLAG, CL_OUTPUT_FILE_FLAG, DEFAULT_NULL_VALUE_PLACEHOLDER, defaultIndent, INDENT, LOGO, NO_HEADER, NO_LOGO, SILENT
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseCommands2​(edu.uiuc.ncsa.security.util.cli.CLIDriver driver)  
    • Constructor Detail

      • BaseCommands2

        public BaseCommands2​(edu.uiuc.ncsa.security.util.cli.CLIDriver driver)
    • Method Detail

      • initialize

        public void initialize()
        Overrides:
        initialize in class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
      • listComponents

        public Set<String> listComponents()
        Specified by:
        listComponents in interface edu.uiuc.ncsa.security.util.cli.ComponentManager
      • about

        public abstract void about()
      • getComponentName

        public String getComponentName()
        Specified by:
        getComponentName in class edu.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.
        Parameters:
        args -
        Throws:
        Exception
        Throwable
      • getServiceEnvironment

        public org.oa4mp.server.api.ServiceEnvironment getServiceEnvironment()
                                                                      throws Exception
        Throws:
        Exception
      • use

        public boolean use​(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
                    throws Throwable
        Specified by:
        use in interface edu.uiuc.ncsa.security.util.cli.ComponentManager
        Overrides:
        use in class edu.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:
        useHelp in class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2