@ProviderType public interface CollectionHelper
|Modifier and Type||Method and Description|
Gets an iterator on all collections that can be added to a content fragment as "associated content".
java.util.Iterator<Resource> getCollections(ResourceResolver resolver, boolean includeSmartCollections)
In this context, the term "collections" refers to DAM or other resource
collections (technically implemented as Sling Resource Collections, see
As some of the implementations use a "smart collection" approach (like a collection containing the dynamically updated list of last modified items), which you may or may not want included in your list, there's a parameter for defining if such smart collections should actually be included.
ResourceResolverfor retrieving the collections
includeSmartCollections- True if smart collections should be included
Copyright © 2010 - 2020 Adobe. All Rights Reserved