@Override
    protected ObjectPermissionSet getObjectPermissions(Permissions permissions)
            throws GuacamoleException {
        return permissions.getSharingProfilePermissions();
    }
Creates a new SharingProfileDirectoryResource which exposes the
operations and subresources available for the given SharingProfile
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
    SharingProfiles.

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