use of org.apache.jackrabbit.jcr2spi.security.authorization.PrivilegeImpl in project jackrabbit by apache.
the class AccessControlProviderImpl method getSupportedPrivileges.
@Override
public Map<String, Privilege> getSupportedPrivileges(SessionInfo sessionInfo, NodeId nodeId, NamePathResolver npResolver) throws RepositoryException {
PrivilegeDefinition[] pDefs = service.getSupportedPrivileges(sessionInfo, nodeId);
Map<String, Privilege> privilegeMap = new HashMap<String, Privilege>(pDefs.length);
for (PrivilegeDefinition def : pDefs) {
Privilege p = new PrivilegeImpl(def, pDefs, npResolver);
privilegeMap.put(p.getName(), p);
}
return privilegeMap;
}
Aggregations