Class UserCommand
java.lang.Object
com.biglybt.ui.console.commands.IConsoleCommand
com.biglybt.ui.console.multiuser.commands.UserCommand
container command for commands that deal with the add/modify/delete of users
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classcommand that adds new users to the user managerprivate final classcommand that deletes a user from the user managerprivate final classcommand that prints out the list of users registered in this user managerprivate final classcommand that changes user's password or level or default save directoryNested classes/interfaces inherited from class IConsoleCommand
IConsoleCommand.TorrentComparator -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(String commandName, ConsoleInput ci, List args) determine the correct subcommand and execute itreturns the string describing how this command can be usedprivate UserManagerreturns the UserManager object that is used by our subcommandsvoidprintHelpExtra(PrintStream out, List args) prints out the help message showing the syntax for all subcommandsprivate voidwrite the user manager configuration back to the path that it was read fromMethods inherited from class IConsoleCommand
expandVariable, getCommandName, getCommandNames, getDefaultSummaryFormat, getShortCommandName, getTorrentSummary, printHelp, printHelp
-
Field Details
-
subCommands
-
userManager
-
-
Constructor Details
-
UserCommand
- Parameters:
_commandNames-
-
-
Method Details
-
getUserManager
returns the UserManager object that is used by our subcommands- Returns:
-
saveUserManagerConfig
write the user manager configuration back to the path that it was read from- Parameters:
out- stream to print success/failure messages to
-
getCommandDescriptions
returns the string describing how this command can be used- Specified by:
getCommandDescriptionsin classIConsoleCommand- Returns:
-
execute
determine the correct subcommand and execute it- Specified by:
executein classIConsoleCommand- Parameters:
commandName-ci-args-
-
printHelpExtra
prints out the help message showing the syntax for all subcommands- Overrides:
printHelpExtrain classIConsoleCommand
-