Exemple #1
0
  public Set<WsecPermission> getAllPermissionExcludes() {
    Set<WsecPermission> result = new HashSet<WsecPermission>();
    Set<WsecPermission> perms = getAllPermissions();

    for (WsecPermission permission : perms) {
      result.addAll(permission.getExcludes());
    }
    return result;
  }
Exemple #2
0
 public boolean removePermission(WsecPermission permission) {
   permission.getReceivingGroups().remove(this);
   return permissions.remove(permission);
 }
Exemple #3
0
 public boolean addPermission(WsecPermission permission) throws PermissionCollisionException {
   PermissionExclusion.checkIfConflicts(this, permission);
   permission.getReceivingGroups().add(this);
   return permissions.add(permission);
 }