private static Set<ObjectPermission> getPermissions(Collection<String> identifiers) {

        // Include one READ permission for each of the given identifiers
        Set<ObjectPermission> permissions = new HashSet<ObjectPermission>();
        for (String identifier : identifiers)
            permissions.add(new ObjectPermission(ObjectPermission.Type.READ, identifier));

        return permissions;

    }
Returns a new Set of ObjectPermissions defining READ access for each of
the given identifiers.

@param identifiers
    The identifiers of the objects for which READ permission should be
    granted.

@return
    A new Set of ObjectPermissions granting READ access for each of the
    given identifiers.
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/sharing/permission/SharedObjectPermissionSet.java