Class OA2Commands

  • All Implemented Interfaces:
    edu.uiuc.ncsa.security.core.Logable, edu.uiuc.ncsa.security.util.cli.Commands, edu.uiuc.ncsa.security.util.cli.ComponentManager, Serializable

    public class OA2Commands
    extends BaseCommands2

    Created by Jeff Gaynor
    on 4/3/14 at 1:23 PM

    See Also:
    Serialized Form
    • Constructor Detail

      • OA2Commands

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

      • getCommandCompletions

        protected ArrayList<String> getCommandCompletions()
        This snoops through all components and gloms every call together. This does not result in context-sensitive help, but at least is something.
        Returns:
      • getPrompt

        public String getPrompt()
      • getName

        public String getName()
      • getLoader

        public edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> getLoader()
        Specified by:
        getLoader in class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
      • main

        public static void main​(String[] args)
      • newMain

        protected static void newMain​(String[] args)
      • setupSAS

        protected static void setupSAS​(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
                                throws Throwable
        Throws:
        Throwable
      • about

        public void about​(boolean showBanner,
                          boolean showHeader)
        Specified by:
        about in class edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
      • 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 BaseCommands2
        Throws:
        Throwable
      • setLoader

        public void setLoader​(edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> loader)
        Specified by:
        setLoader in class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
      • 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 class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl2
        Throws:
        Throwable