Class MultiUserConsoleInput
java.lang.Object
java.lang.Thread
com.biglybt.ui.console.ConsoleInput
com.biglybt.ui.console.multiuser.MultiUserConsoleInput
- All Implemented Interfaces:
Runnable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionMultiUserConsoleInput(String con, Core core, Reader _in, PrintStream _out, Boolean _controlling, UserProfile profile) set up the lists of commands that we prohibit, based upon the user type. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitialize our list of commands that need specific rolesvoidregisterCommand(IConsoleCommand command) check whether the specified command is one of our banned commands for this particular user type.protected voidadd some multi-user specific commandsMethods inherited from class ConsoleInput
downloadRemoteTorrent, downloadRemoteTorrent, downloadTorrent, downloadTorrent, getCore, getDefaultSaveDirectory, getErrorLogEvents, getGlobalManager, getUserProfile, invokeCommand, printconsolehelp, printwelcome, registerPluginCommand, registerUpdateChecker, run, saveAliases, unregisterCommand, unregisterCommand, unregisterPluginCommandMethods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
adminCommands
-
userCommands
-
-
Constructor Details
-
MultiUserConsoleInput
public MultiUserConsoleInput(String con, Core 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-core-_in-_out-_controlling-profile-
-
-
Method Details
-
initialise
protected void initialise()initialize our list of commands that need specific roles- Overrides:
initialisein classConsoleInput
-
registerCommands
protected void registerCommands()add some multi-user specific commands- Overrides:
registerCommandsin classConsoleInput
-
registerCommand
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:
registerCommandin classConsoleInput
-