public class ConnectionGroupTree extends Object
Constructor and Description |
---|
ConnectionGroupTree(UserContext userContext,
ConnectionGroup root,
List<ObjectPermission.Type> permissions)
Creates a new connection group tree using the given connection group as
the tree root.
|
Modifier and Type | Method and Description |
---|---|
APIConnectionGroup |
getRootAPIConnectionGroup()
Returns the entire connection group tree as an APIConnectionGroup.
|
public ConnectionGroupTree(UserContext userContext, ConnectionGroup root, List<ObjectPermission.Type> permissions) throws GuacamoleException
userContext
- The context of the user obtaining the connection group tree.root
- The connection group to use as the root of this connection group
tree.permissions
- If specified and non-empty, limit the contents of the tree to only
those connections for which the current user has any of the given
permissions. Otherwise, all visible connections are returned.
Connection groups are unaffected by this parameter.GuacamoleException
- If an error occurs while retrieving the tree of connection groups
and their descendants.public APIConnectionGroup getRootAPIConnectionGroup()
Copyright © 2015. All rights reserved.