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 class
command that adds new users to the user managerprivate final class
command that deletes a user from the user managerprivate final class
command that prints out the list of users registered in this user managerprivate final class
command that changes user's password or level or default save directoryNested classes/interfaces inherited from class com.biglybt.ui.console.commands.IConsoleCommand
IConsoleCommand.TorrentComparator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(String commandName, ConsoleInput ci, List args) determine the correct subcommand and execute itreturns the string describing how this command can be usedprivate UserManager
returns the UserManager object that is used by our subcommandsvoid
printHelpExtra
(PrintStream out, List args) prints out the help message showing the syntax for all subcommandsprivate void
write the user manager configuration back to the path that it was read fromMethods inherited from class com.biglybt.ui.console.commands.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:
getCommandDescriptions
in classIConsoleCommand
- Returns:
-
execute
determine the correct subcommand and execute it- Specified by:
execute
in classIConsoleCommand
- Parameters:
commandName
-ci
-args
-
-
printHelpExtra
prints out the help message showing the syntax for all subcommands- Overrides:
printHelpExtra
in classIConsoleCommand
-