@ProviderType
public interface CollectionHelper
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Resource> |
getCollections(ResourceResolver resolver,
boolean includeSmartCollections)
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
org.apache.sling.resource.collection.ResourceCollection
).
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.
resolver
- The ResourceResolver
for retrieving the collectionsincludeSmartCollections
- True if smart collections should be includedsling/collection
Copyright © 2010 - 2020 Adobe. All Rights Reserved