AccessController.checkPermission(new UserManagerAccessPermission());
MGraph contentGraph = cgProvider.getContentGraph();
MGraph resultGraph = new SimpleMGraph();
NonLiteral propertyManagementPage = new BNode();
resultGraph.add(new TripleImpl(propertyManagementPage,
USERMANAGER.role, new PlainLiteralImpl(role)));
resultGraph.add(new TripleImpl(propertyManagementPage, RDF.type,
USERMANAGER.CustomFieldPage));
resultGraph.add(new TripleImpl(propertyManagementPage, RDF.type,
PLATFORM.HeadedPage));
ArrayList<NonLiteral> customfields = customPropertyManager
.getCustomfieldsOfCollection(customPropertyManager
.getCustomPropertyCollection(PERMISSION.Role, role));
for (NonLiteral customfield : customfields) {
resultGraph.add(new TripleImpl(customfield, USERMANAGER.role,
new PlainLiteralImpl(role)));
resultGraph.add(new TripleImpl(propertyManagementPage,
CUSTOMPROPERTY.customfield, customfield));
}
return new GraphNode(propertyManagementPage, new UnionMGraph(
resultGraph, contentGraph));