org.gudy.azureus2.ui.console.multiuser
Class MultiUserConsoleInput
java.lang.Object
java.lang.Thread
org.gudy.azureus2.ui.console.ConsoleInput
org.gudy.azureus2.ui.console.multiuser.MultiUserConsoleInput
- All Implemented Interfaces:
- Runnable
public class MultiUserConsoleInput
- extends ConsoleInput
subclass of the ConsoleInput object that is used for multi users.
in this particular subclass, we replace some commands with our own versions
and disable some commands.
- Author:
- pauld
Method Summary |
protected void |
initialise()
initialize our list of commands that need specific roles |
void |
registerCommand(IConsoleCommand command)
check whether the specified command is one of our banned commands for
this particular user type. |
protected void |
registerCommands()
add some multi-user specific commands |
Methods inherited from class org.gudy.azureus2.ui.console.ConsoleInput |
downloadRemoteTorrent, downloadRemoteTorrent, downloadTorrent, downloadTorrent, getCore, getDefaultSaveDirectory, getGlobalManager, getUserProfile, invokeCommand, printconsolehelp, printwelcome, registerAlertHandler, registerPluginCommand, registerUpdateChecker, run, saveAliases, unregisterCommand, unregisterCommand, unregisterPluginCommand |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
MultiUserConsoleInput
public MultiUserConsoleInput(String con,
AzureusCore _azureus_core,
Reader _in,
PrintStream _out,
Boolean _controlling,
UserProfile profile)
- set up the lists of commands that we prohibit, based upon the user type.
- Parameters:
con
- _azureus_core
- _in
- _out
- _controlling
- profile
-
initialise
protected void initialise()
- initialize our list of commands that need specific roles
- Overrides:
initialise
in class ConsoleInput
registerCommands
protected void registerCommands()
- add some multi-user specific commands
- Overrides:
registerCommands
in class ConsoleInput
registerCommand
public void registerCommand(IConsoleCommand command)
- check whether the specified command is one of our banned commands for
this particular user type. some commands are able to handle different
user types, others are not relevant to anybody but admin
- Overrides:
registerCommand
in class ConsoleInput