public class SimpleUserContext extends Object implements UserContext
| Constructor and Description |
|---|
SimpleUserContext(AuthenticationProvider authProvider,
Map<String,org.glyptodon.guacamole.protocol.GuacamoleConfiguration> configs)
Creates a new SimpleUserContext which provides access to only those
configurations within the given Map.
|
SimpleUserContext(AuthenticationProvider authProvider,
String username,
Map<String,org.glyptodon.guacamole.protocol.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 |
|---|---|
Directory<ActiveConnection> |
getActiveConnectionDirectory()
Retrieves a Directory which can be used to view and manipulate
active connections, but only as allowed by the permissions given to the
user.
|
AuthenticationProvider |
getAuthenticationProvider()
Returns the AuthenticationProvider which created this UserContext, which
may not be the same AuthenticationProvider that authenticated the user
associated with this UserContext.
|
Collection<Form> |
getConnectionAttributes()
Retrieves a collection of all attributes applicable to connections.
|
Directory<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.
|
Collection<Form> |
getConnectionGroupAttributes()
Retrieves a collection of all attributes applicable to connection
groups.
|
Directory<ConnectionGroup> |
getConnectionGroupDirectory()
Retrieves a Directory which can be used to view and manipulate
connection groups and their members, but only as allowed by the
permissions given to the user.
|
ConnectionRecordSet |
getConnectionHistory()
Retrieves all connection records visible to current user.
|
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.
|
Collection<Form> |
getUserAttributes()
Retrieves a collection of all attributes applicable to users.
|
Directory<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(AuthenticationProvider authProvider, Map<String,org.glyptodon.guacamole.protocol.GuacamoleConfiguration> configs)
authProvider - The AuthenticationProvider creating this UserContext.configs - A Map of all configurations for which the user associated with this
UserContext has read access.public SimpleUserContext(AuthenticationProvider authProvider, String username, Map<String,org.glyptodon.guacamole.protocol.GuacamoleConfiguration> configs)
authProvider - The AuthenticationProvider creating this UserContext.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 AuthenticationProvider getAuthenticationProvider()
UserContextgetAuthenticationProvider in interface UserContextpublic Directory<User> getUserDirectory() throws org.glyptodon.guacamole.GuacamoleException
UserContextgetUserDirectory in interface UserContextorg.glyptodon.guacamole.GuacamoleException - If an error occurs while creating the
Directory.public Directory<Connection> getConnectionDirectory() throws org.glyptodon.guacamole.GuacamoleException
UserContextgetConnectionDirectory in interface UserContextorg.glyptodon.guacamole.GuacamoleException - If an error occurs while creating the
Directory.public Directory<ConnectionGroup> getConnectionGroupDirectory() throws org.glyptodon.guacamole.GuacamoleException
UserContextgetConnectionGroupDirectory in interface UserContextorg.glyptodon.guacamole.GuacamoleException - If an error occurs while creating the
Directory.public ConnectionGroup getRootConnectionGroup() throws org.glyptodon.guacamole.GuacamoleException
UserContextgetRootConnectionGroup in interface UserContextorg.glyptodon.guacamole.GuacamoleException - If an error occurs while creating the
Directory.public Directory<ActiveConnection> getActiveConnectionDirectory() throws org.glyptodon.guacamole.GuacamoleException
UserContextgetActiveConnectionDirectory in interface UserContextorg.glyptodon.guacamole.GuacamoleException - If an error occurs while creating the Directory.public ConnectionRecordSet getConnectionHistory() throws org.glyptodon.guacamole.GuacamoleException
UserContextgetConnectionHistory in interface UserContextorg.glyptodon.guacamole.GuacamoleException - If an error occurs while retrieving the connection records.public Collection<Form> getUserAttributes()
UserContextgetUserAttributes in interface UserContextpublic Collection<Form> getConnectionAttributes()
UserContextgetConnectionAttributes in interface UserContextpublic Collection<Form> getConnectionGroupAttributes()
UserContextgetConnectionGroupAttributes in interface UserContextCopyright © 2015. All rights reserved.