use of com.adobe.acs.commons.util.visitors.SimpleFilteringResourceVisitor in project acs-aem-commons by Adobe-Consulting-Services.
the class PageRelocator method validateAllAcls.
protected void validateAllAcls(ActionManager step1) {
SimpleFilteringResourceVisitor pageVisitor;
if (extensiveACLChecks) {
pageVisitor = new SimpleFilteringResourceVisitor();
pageVisitor.setLeafVisitor((resource, level) -> step1.deferredWithResolver(rr -> checkNodeAcls(rr, resource.getPath(), requiredPrivileges)));
} else {
pageVisitor = new TreeFilteringResourceVisitor(NameConstants.NT_PAGE);
}
pageVisitor.setBreadthFirstMode();
pageVisitor.setResourceVisitor((resource, level) -> step1.deferredWithResolver(rr -> checkNodeAcls(rr, resource.getPath(), requiredPrivileges)));
beginStep(step1, sourcePath, pageVisitor);
}
Aggregations