public interface CollectionHelper
| Modifier and Type | Method and Description |
|---|---|
Iterator<org.apache.sling.api.resource.Resource> |
getCollections(org.apache.sling.api.resource.ResourceResolver resolver,
boolean includeSmartCollections)
Gets an iterator on all collections that can be added to a content fragment as
"associated content".
|
Iterator<org.apache.sling.api.resource.Resource> getCollections(org.apache.sling.api.resource.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/collectionCopyright © 2006-2017 Adobe Systems Incorporated. All Rights Reserved.