AccessController.checkPermission(new UserManagerAccessPermission());
AccessController.checkPermission(new PermissionManagerAccessPermission());
TrailingSlash.enforceNotPresent(uriInfo);
MGraph resultGraph = new SimpleMGraph();
NonLiteral rolePermissionPage = new BNode();
Iterator<PermissionDescripton> permDescs = permGatherer.getAllPermissionDescriptors();
while(permDescs.hasNext()) {
PermissionDescripton desc = permDescs.next();
BNode providedPermission = new BNode();
resultGraph.add(new TripleImpl(rolePermissionPage,
USERMANAGER.permission, providedPermission));
resultGraph.add(new TripleImpl(providedPermission,
PERMISSION.javaPermissionEntry, new PlainLiteralImpl(desc.getJavaPermissionString())));
resultGraph.add(new TripleImpl(providedPermission,
DCTERMS.title, new PlainLiteralImpl(desc.getSimpleName())));
resultGraph.add(new TripleImpl(providedPermission,
DCTERMS.description, new PlainLiteralImpl(desc.getDescription())));
}
resultGraph.add(new TripleImpl(rolePermissionPage, RDF.type,
PLATFORM.HeadedPage));
resultGraph.add(new TripleImpl(rolePermissionPage, RDF.type,
USERMANAGER.RolePermissionPage));
NonLiteral role = userManager.getRoleByTitle(title);
if (role != null) {
resultGraph.add(new TripleImpl(rolePermissionPage,
USERMANAGER.role, role));
return new GraphNode(rolePermissionPage, new UnionMGraph(
resultGraph, systemGraph));