Examples of ConnectionGroup


Examples of org.glyptodon.guacamole.net.auth.ConnectionGroup

        // Attempt to get connection group directory
        Directory<String, ConnectionGroup> directory =
                context.getRootConnectionGroup().getConnectionGroupDirectory();

        // Create connection group skeleton
        ConnectionGroup connectionGroup = directory.get(identifier);
        connectionGroup.setName(name);
       
        if("balancing".equals(type))
            connectionGroup.setType(ConnectionGroup.Type.BALANCING);
        else if("organizational".equals(type))
            connectionGroup.setType(ConnectionGroup.Type.ORGANIZATIONAL);

        // Update connection group
        directory.update(connectionGroup);

    }
View Full Code Here

Examples of org.glyptodon.guacamole.net.auth.ConnectionGroup

     */
    static Directory<String, ConnectionGroup> findConnectionGroupDirectory(
            UserContext context, String parentID) throws GuacamoleException {
       
        // Find the correct connection group directory
        ConnectionGroup rootGroup = context.getRootConnectionGroup();
        Directory<String, ConnectionGroup> directory;
       
        Directory<String, ConnectionGroup> connectionGroupDirectory =
            rootGroup.getConnectionGroupDirectory();

        ConnectionGroup parentGroup = connectionGroupDirectory.get(parentID);

        if(parentGroup == null)
            return null;

        directory = parentGroup.getConnectionGroupDirectory();
       
        return directory;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.