public class ObjectRetrievalService extends Object
Constructor and Description |
---|
ObjectRetrievalService() |
Modifier and Type | Method and Description |
---|---|
Connection |
retrieveConnection(GuacamoleSession session,
String authProviderIdentifier,
String identifier)
Retrieves a single connection from the given GuacamoleSession.
|
Connection |
retrieveConnection(UserContext userContext,
String identifier)
Retrieves a single connection from the given user context.
|
ConnectionGroup |
retrieveConnectionGroup(GuacamoleSession session,
String authProviderIdentifier,
String identifier)
Retrieves a single connection group from the given GuacamoleSession.
|
ConnectionGroup |
retrieveConnectionGroup(UserContext userContext,
String identifier)
Retrieves a single connection group from the given user context.
|
User |
retrieveUser(GuacamoleSession session,
String authProviderIdentifier,
String identifier)
Retrieves a single user from the given GuacamoleSession.
|
User |
retrieveUser(UserContext userContext,
String identifier)
Retrieves a single user from the given user context.
|
UserContext |
retrieveUserContext(GuacamoleSession session,
String authProviderIdentifier)
Retrieves a single UserContext from the given GuacamoleSession, which
may contain multiple UserContexts.
|
public UserContext retrieveUserContext(GuacamoleSession session, String authProviderIdentifier) throws GuacamoleException
session
- The GuacamoleSession to retrieve the UserContext from.authProviderIdentifier
- The unique identifier of the AuthenticationProvider that created the
UserContext being retrieved. Only one UserContext per User per
AuthenticationProvider can exist.GuacamoleException
- If an error occurs while retrieving the UserContext, or if the
UserContext does not exist.public User retrieveUser(UserContext userContext, String identifier) throws GuacamoleException
userContext
- The user context to retrieve the user from.identifier
- The identifier of the user to retrieve.GuacamoleException
- If an error occurs while retrieving the user, or if the
user does not exist.public User retrieveUser(GuacamoleSession session, String authProviderIdentifier, String identifier) throws GuacamoleException
session
- The GuacamoleSession to retrieve the user from.authProviderIdentifier
- The unique identifier of the AuthenticationProvider that created the
UserContext from which the user should be retrieved. Only one
UserContext per User per AuthenticationProvider can exist.identifier
- The identifier of the user to retrieve.GuacamoleException
- If an error occurs while retrieving the user, or if the
user does not exist.public Connection retrieveConnection(UserContext userContext, String identifier) throws GuacamoleException
userContext
- The user context to retrieve the connection from.identifier
- The identifier of the connection to retrieve.GuacamoleException
- If an error occurs while retrieving the connection, or if the
connection does not exist.public Connection retrieveConnection(GuacamoleSession session, String authProviderIdentifier, String identifier) throws GuacamoleException
session
- The GuacamoleSession to retrieve the connection from.authProviderIdentifier
- The unique identifier of the AuthenticationProvider that created the
UserContext from which the connection should be retrieved. Only one
UserContext per User per AuthenticationProvider can exist.identifier
- The identifier of the connection to retrieve.GuacamoleException
- If an error occurs while retrieving the connection, or if the
connection does not exist.public ConnectionGroup retrieveConnectionGroup(UserContext userContext, String identifier) throws GuacamoleException
userContext
- The user context to retrieve the connection group from.identifier
- The identifier of the connection group to retrieve.GuacamoleException
- If an error occurs while retrieving the connection group, or if the
connection group does not exist.public ConnectionGroup retrieveConnectionGroup(GuacamoleSession session, String authProviderIdentifier, String identifier) throws GuacamoleException
session
- The GuacamoleSession to retrieve the connection group from.authProviderIdentifier
- The unique identifier of the AuthenticationProvider that created the
UserContext from which the connection group should be retrieved.
Only one UserContext per User per AuthenticationProvider can exist.identifier
- The identifier of the connection group to retrieve.GuacamoleException
- If an error occurs while retrieving the connection group, or if the
connection group does not exist.Copyright © 2017. All rights reserved.