ResourceChangeListener v/s Sling Event


With introduction of ResourceChangeListener, this blog is an effort to help developers choose between ResourceChangeListener and Sling Event for an implementation. ResourceChangeListener: pros: Can be configured to listen to only specific paths. Multiple watch paths can also be configured to provide it a more granular approach. For a bulk operation concerning N resources, listener will be executed … Continue reading ResourceChangeListener v/s Sling Event

AbstractResourceVisitor for traversing resource trees


We often come across features that require traversal of a resource tree (e.g. processing assets in a folder). In such scenarios, recommendation is to use tree traversal than queries. More details of similar scenarios can found on link  Sling provides AbstractResourceVisitor API, which performs traversal through a resource tree, allowing a developer to focus on processing child resources. How to … Continue reading AbstractResourceVisitor for traversing resource trees