Class UserCommand

java.lang.Object
com.biglybt.ui.console.commands.IConsoleCommand
com.biglybt.ui.console.multiuser.commands.UserCommand

public class UserCommand extends IConsoleCommand
container command for commands that deal with the add/modify/delete of users
  • Field Details

  • Constructor Details

    • UserCommand

      public UserCommand(UserManager userManager)
      Parameters:
      _commandNames -
  • Method Details

    • getUserManager

      private UserManager getUserManager()
      returns the UserManager object that is used by our subcommands
      Returns:
    • saveUserManagerConfig

      private void saveUserManagerConfig(PrintStream out)
      write the user manager configuration back to the path that it was read from
      Parameters:
      out - stream to print success/failure messages to
    • getCommandDescriptions

      public String getCommandDescriptions()
      returns the string describing how this command can be used
      Specified by:
      getCommandDescriptions in class IConsoleCommand
      Returns:
    • execute

      public void execute(String commandName, ConsoleInput ci, List args)
      determine the correct subcommand and execute it
      Specified by:
      execute in class IConsoleCommand
    • printHelpExtra

      public void printHelpExtra(PrintStream out, List args)
      prints out the help message showing the syntax for all subcommands
      Overrides:
      printHelpExtra in class IConsoleCommand