@Override
protected void checkValidEntry(Principal principal, Privilege[] privileges,
boolean isAllow, Map<String, Value> restrictions)
throws AccessControlException {
if (!this.principal.equals(principal)) {
throw new AccessControlException("Invalid principal. Expected: " + principal);
}
Set<String> rNames = restrictions.keySet();
if (!rNames.contains(jcrNodePathName) && !rNames.contains(P_NODE_PATH.toString())) {
throw new AccessControlException("Missing mandatory restriction: " + jcrNodePathName);
}
}