in src/main/java/org/apache/sling/feature/cpconverter/handlers/RepPolicyEntryHandler.java [70:98]
public void startElement(String uri, String localName, String qName, Attributes attributes)
throws SAXException {
if (onRepAclNode) {
String primaryType = attributes.getValue(JCR_PRIMARYTYPE);
if (isAccessControlEntry(primaryType)) {
String principalName = attributes.getValue(REP_PRINCIPAL_NAME);
AccessControlEntry ace = createEntry(operations.get(primaryType), attributes);
// handle restrictions added in jr2 format (i.e. not located below rep:restrictions node)
addRestrictions(ace, attributes);
processCurrentAce = aclManager.addAccessControlEntry(principalName, ace);
if (processCurrentAce) {
entries.add(ace);
} else {
hasRejectedNodes = true;
}
} else if (REP_RESTRICTIONS.equals(primaryType) && !entries.isEmpty() && processCurrentAce) {
AccessControlEntry ace = entries.peek();
entries.add(ace);
addRestrictions(ace, attributes);
}
} else {
super.startElement(uri, localName, qName, attributes);
}
if (!onRepAclNode || !processCurrentAce) {
handler.startElement(uri, localName, qName, attributes);
}
}