syncbase/src/main/java/io/v/syncbase/AccessList.java
/**
     * Computes a new Permissions object based on delta, allowing only the valid tags.
     */
Computes a new Permissions object based on delta, allowing only the valid tags.
Computes a new Permissions object based on delta allowing only the valid tags .
static Permissions applyDeltaForSyncgroup(Permissions corePermissions,
                                                        AccessList delta) {
        Map<String, Map<String, Set<String>>> parsedPermissions =
                applyDeltaParsed(corePermissions, delta);
        Map<String, Map<String, Set<String>>> filteredPermissions = new HashMap<>();
        filteredPermissions.put(Permissions.Tags.READ,
                parsedPermissions.get(Permissions.Tags.READ));
        filteredPermissions.put(Permissions.Tags.ADMIN,
                parsedPermissions.get(Permissions.Tags.ADMIN));
        return new Permissions(filteredPermissions);
    }
static Permissions applyDeltaForSyncgroup ( Permissions corePermissions , AccessList delta ) { Map < String , Map < String , Set < String > > > parsedPermissions = applyDeltaParsed ( corePermissions , delta ) ; Map < String , Map < String , Set < String > > > filteredPermissions = new HashMap < > ( ) ; filteredPermissions . put ( Permissions . Tags . READ , parsedPermissions . get ( Permissions . Tags . READ ) ) ; filteredPermissions . put ( Permissions . Tags . ADMIN , parsedPermissions . get ( Permissions . Tags . ADMIN ) ) ; return new Permissions ( filteredPermissions ) ; }
Computes a new Permissions object based on delta, allowing only the valid tags.
Computes a new Permissions object based on delta allowing only the valid tags .