public class SimpleUserContext extends Object implements UserContext
| Constructor and Description |
|---|
SimpleUserContext(Map<String,GuacamoleConfiguration> configs)
Creates a new SimpleUserContext which provides access to only those
configurations within the given Map.
|
SimpleUserContext(String username,
Map<String,GuacamoleConfiguration> configs)
Creates a new SimpleUserContext for the user with the given username
which provides access to only those configurations within the given Map.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionGroup |
getRootConnectionGroup()
Retrieves a connection group which can be used to view and manipulate
connections, but only as allowed by the permissions given to the user of
this UserContext.
|
Directory<String,User> |
getUserDirectory()
Retrieves a Directory which can be used to view and manipulate other
users, but only as allowed by the permissions given to the user of this
UserContext.
|
User |
self()
Returns the User whose access rights control the operations of this
UserContext.
|
public SimpleUserContext(Map<String,GuacamoleConfiguration> configs)
configs - A Map of all configurations for which the user associated
with this UserContext has read access.public SimpleUserContext(String username, Map<String,GuacamoleConfiguration> configs)
username - The username of the user associated with this
UserContext.configs - A Map of all configurations for which the user associated
with this UserContext has read access.public User self()
UserContextself in interface UserContextpublic Directory<String,User> getUserDirectory() throws GuacamoleException
UserContextgetUserDirectory in interface UserContextGuacamoleException - If an error occurs while creating the
Directory.public ConnectionGroup getRootConnectionGroup() throws GuacamoleException
UserContextgetRootConnectionGroup in interface UserContextGuacamoleException - If an error occurs while creating the
Directory.Copyright © 2015. All rights reserved.