Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
API 2.20.0
-
None
-
None
Description
Currently the AbstractResourceVisitor (https://github.com/apache/sling-org-apache-sling-api/blob/master/src/main/java/org/apache/sling/api/resource/AbstractResourceVisitor.java) completely decouples the visit method from the actual resource traversal. That means it is currently rather hard to programmatically add a break condition which should lead to no further descending into child resources.
I propose to extend AbstractResourceVisitor by an additional visit method which is supposed to return a boolean value. Only if true is returned it will further descend into the children of the current resource. The default implementation should just return true to make this change backwards compatible.
Attachments
Issue Links
- is related to
-
SLING-8581 Include Resource Filter in Sling Starter
-
- Closed
-
- links to