public class SimpleUserContext extends Object implements UserContext
Constructor and Description |
---|
SimpleUserContext(User self,
Map<String,net.sourceforge.guacamole.protocol.GuacamoleConfiguration> configs)
Creates a new SimpleUserContext which provides access to only those
configurations within the given Map.
|
Modifier and Type | Method and Description |
---|---|
Directory<String,Connection> |
getConnectionDirectory()
Retrieves a Directory which can be used to view and manipulate
connections and their configurations, 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(User self, Map<String,net.sourceforge.guacamole.protocol.GuacamoleConfiguration> configs)
self
- The owner of this UserContext.configs
- A Map of all configurations for which the user associated
with this UserContext has read access.public User self()
UserContext
self
in interface UserContext
public Directory<String,Connection> getConnectionDirectory() throws net.sourceforge.guacamole.GuacamoleException
UserContext
getConnectionDirectory
in interface UserContext
net.sourceforge.guacamole.GuacamoleException
- If an error occurs while creating the
Directory.public Directory<String,User> getUserDirectory() throws net.sourceforge.guacamole.GuacamoleException
UserContext
getUserDirectory
in interface UserContext
net.sourceforge.guacamole.GuacamoleException
- If an error occurs while creating the
Directory.Copyright © 2013. All Rights Reserved.