@Override
    protected ObjectPermissionSet getObjectPermissions(Permissions permissions)
            throws GuacamoleException {
        return permissions.getConnectionPermissions();
    }
Creates a new ConnectionDirectoryResource which exposes the operations
and subresources available for the given Connection Directory.

@param authenticatedUser
    The user that is accessing this resource.

@param userContext
    The UserContext associated with the given Directory.

@param directory
    The Directory being exposed.

@param translator
    A DirectoryObjectTranslator implementation which handles
    Connections.

@param resourceFactory
    A factory which can be used to create instances of resources
    representing Connections.
guacamole/src/main/java/org/apache/guacamole/rest/connection/ConnectionDirectoryResource.java