Class AuthenticatedCommand

    • Field Detail

    • Constructor Detail

      • AuthenticatedCommand

        public AuthenticatedCommand()
    • Method Detail

      • handleRequest

        public void handleRequest​(RequestContext rc)
                           throws CLIException
        Authenticates the administrator. Dervived classes needs to call this method from the dervived method, handleRequest(RequestContext rc). Override this method to get user name and passowrd.
        Specified by:
        handleRequest in interface CLICommand
        Overrides:
        handleRequest in class CLICommandBase
        Parameters:
        rc - Request Context.
        Throws:
        CLIException - if authentication fails.
      • getAdminPassword

        protected String getAdminPassword()
      • getAdminID

        protected String getAdminID()
      • getAdminSSOToken

        protected SSOToken getAdminSSOToken()
      • processFileAttributes

        protected Map<String,​Set<String>> processFileAttributes​(Map<String,​Set<String>> attrs)
                                                               throws CLIException
        Post-process any attributes specified for the module instance (either via data file or on the command line) to resolve any file references. Any attribute can be specified using a -file suffix on the attribute name. This will cause the value to be treated as a file name, and the associated file to be read in (in the platform default encoding) and used as the attribute value. The attribute will be renamed to remove the -file suffix during this process.
        Parameters:
        attrs - the raw attributes read from the command line and/or data file.
        Returns:
        the processed attributes with all file references resolved.
        Throws:
        CLIException - if a referenced file cannot be read or if an attribute is specified both normally and using a -file reference.