Package net.sourceforge.guacamole.net.auth.mysql

Examples of net.sourceforge.guacamole.net.auth.mysql.MySQLConnectionGroup


        if(checkConnectionGroupAccess(userID, connectionGroupID,
                MySQLConstants.CONNECTION_GROUP_ADMINISTER))
            return true;
       
        // Query the connection group
        MySQLConnectionGroup connectionGroup = connectionGroupService.
                retrieveConnectionGroup(connectionGroupID, userID);
       
        // If the connection group is not found, it cannot be used.
        if(connectionGroup == null)
            return false;

        // Verify that the desired usage matches the type.
        return MySQLConstants.getConnectionGroupTypeConstant(
                connectionGroup.getType()).equals(usage);
       
    }
View Full Code Here


     */
    public MySQLConnectionGroup retrieveConnectionGroup(Integer id, int userID) {

        // This is the root connection group, so just create it here
        if(id == null) {
            MySQLConnectionGroup connectionGroup = mysqlConnectionGroupProvider.get();
            connectionGroup.init(null, null,
                    MySQLConstants.CONNECTION_GROUP_ROOT_IDENTIFIER,
                    MySQLConstants.CONNECTION_GROUP_ROOT_IDENTIFIER,
                    org.glyptodon.guacamole.net.auth.ConnectionGroup.Type.ORGANIZATIONAL,
                    userID);
           
View Full Code Here

     *         specified connection.
     */
    private MySQLConnectionGroup toMySQLConnectionGroup(ConnectionGroup connectionGroup, int userID) {

        // Create new MySQLConnection from retrieved data
        MySQLConnectionGroup mySQLConnectionGroup = mysqlConnectionGroupProvider.get();
       
        String mySqlType = connectionGroup.getType();
        org.glyptodon.guacamole.net.auth.ConnectionGroup.Type authType;
       
        if(mySqlType.equals(MySQLConstants.CONNECTION_GROUP_ORGANIZATIONAL))
            authType = org.glyptodon.guacamole.net.auth.ConnectionGroup.Type.ORGANIZATIONAL;
        else
            authType = org.glyptodon.guacamole.net.auth.ConnectionGroup.Type.BALANCING;
       
        mySQLConnectionGroup.init(
            connectionGroup.getConnection_group_id(),
            connectionGroup.getParent_id(),
            connectionGroup.getConnection_group_name(),
            Integer.toString(connectionGroup.getConnection_group_id()),
            authType,
View Full Code Here

TOP

Related Classes of net.sourceforge.guacamole.net.auth.mysql.MySQLConnectionGroup

Copyright © 2018 www.massapicom. 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.