Skip to content

Commit d99d8e3

Browse files
committed
Adjust policy creation
1 parent ddf637b commit d99d8e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

acp/src/main/java/com/inrupt/client/acp/Policy.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ static IRI asResource(final Policy policy, final Graph graph) {
104104
graph.add(policy, asIRI(ACP.anyOf), matcher);
105105
Matcher.asResource(matcher, graph);
106106
});
107+
policy.noneOf().forEach(matcher -> {
108+
graph.add(policy, asIRI(ACP.noneOf), matcher);
109+
Matcher.asResource(matcher, graph);
110+
});
107111
policy.allow().forEach(allow ->
108112
graph.add(policy, asIRI(ACP.allow), asIRI(allow)));
109113
return policy;

0 commit comments

Comments
 (0)