use of javax.jcr.security.AccessControlException in project jackrabbit by apache.
the class AccessControlProviderImpl method privilegeFromName.
@Override
public Privilege privilegeFromName(SessionInfo sessionInfo, NamePathResolver resolver, String privilegeName) throws RepositoryException {
Name name = resolver.getQName(privilegeName);
Privilege priv = getPrivilegeFromName(sessionInfo, resolver, name);
if (priv == null) {
throw new AccessControlException("Unknown privilege " + privilegeName);
} else {
return priv;
}
}
Aggregations