role.setIncludeAll(assignmentNode.get("include-all").asBoolean());
}
if (assignmentNode.hasDefined("include")) {
List<Property> inclusions = assignmentNode.get("include").asPropertyList();
for (Property inclusion : inclusions) {
PrincipalRealmTupel principal = mapPrincipal(principals, inclusion.getName(),
inclusion.getValue());
if (principal != null) {
internal.include(principal);
}
}
}
if (assignmentNode.hasDefined("exclude")) {
List<Property> exclusions = assignmentNode.get("exclude").asPropertyList();
for (Property exclusion : exclusions) {
PrincipalRealmTupel principal = mapPrincipal(principals, exclusion.getName(),
exclusion.getValue());
if (principal != null) {
internal.exclude(principal);
}
}