syncbase/src/main/java/io/v/syncbase/AccessList.java
/**
     * @throws IllegalArgumentException if accessList is not valid
     */
@throws IllegalArgumentException if accessList is not valid
@throws IllegalArgumentException if accessList is not valid
private static Set<String> parsedAccessListToUserIds(Map<String, Set<String>> accessList) {
        Set<String> res = new HashSet<>();
        if (accessList.containsKey(Permissions.NOT_IN) &&
                !accessList.get(Permissions.NOT_IN).isEmpty()) {
            throw new IllegalArgumentException("Non-empty not-in section: " + accessList);
        }
        for (String blessingPattern : accessList.get(Permissions.IN)) {
            res.add(Syncbase.getAliasFromBlessingPattern(blessingPattern));
        }
        return res;
    }
private static Set < String > parsedAccessListToUserIds ( Map < String , Set < String > > accessList ) { Set < String > res = new HashSet < > ( ) ; if ( accessList . containsKey ( Permissions . NOT_IN ) && ! accessList . get ( Permissions . NOT_IN ) . isEmpty ( ) ) { throw new IllegalArgumentException ( "Non-empty not-in section: " + accessList ) ; } for ( String blessingPattern : accessList . get ( Permissions . IN ) ) { res . add ( Syncbase . getAliasFromBlessingPattern ( blessingPattern ) ) ; } return res ; }
@throws IllegalArgumentException if accessList is not valid
@throws IllegalArgumentException if accessList is not valid
// TODO(alexfandrianto): What if the blessing pattern is actually "..."? // TODO(sadovsky): Ignore cloud peer's blessing pattern?