Package net.sourceforge.guacamole.net.auth.mysql.model.ConnectionPermissionExample

Examples of net.sourceforge.guacamole.net.auth.mysql.model.ConnectionPermissionExample.Criteria


                return connectionService.getAllConnectionIDs();
        }

        // Query all connection permissions for the given user and permission type
        ConnectionPermissionExample example = new ConnectionPermissionExample();
        Criteria criteria = example.createCriteria().andUser_idEqualTo(userID)
                .andPermissionEqualTo(permissionType);
       
        // Ensure that the connections are all under the parent ID, if needed
        if(checkParentID) {
            // Get the IDs of all connections in the connection group
            List<Integer> allConnectionIDs = connectionService.getAllConnectionIDs(parentID);
           
            if(allConnectionIDs.isEmpty())
                return Collections.EMPTY_LIST;
           
            criteria.andConnection_idIn(allConnectionIDs);
        }
                                             
        example.setDistinct(true);
        List<ConnectionPermissionKey> connectionPermissions =
                connectionPermissionDAO.selectByExample(example);
View Full Code Here

TOP

Related Classes of net.sourceforge.guacamole.net.auth.mysql.model.ConnectionPermissionExample.Criteria

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.