Example #1
0
 public InMemoryAce(Ace commonsAce) {
   if (null == commonsAce
       || null == commonsAce.getPrincipalId()
       || null == commonsAce.getPermissions())
     throw new IllegalArgumentException("Cannot create InMemoryAce with null value");
   List<String> perms = commonsAce.getPermissions();
   if (perms.size() != 1)
     throw new IllegalArgumentException("InMemory only supports ACEs with a single permission.");
   String perm = perms.get(0);
   this.principalId = commonsAce.getPrincipalId();
   this.permission = Permission.fromCmisString(perm);
 }