Package com.day.cq.dam.api.ui.preview
Interface CollectionPreviewProvider
-
public interface CollectionPreviewProvider
Provider that retrieves the assets representing the collection members for a given collection. A provider handles a specific collection type (e.g. a collection of products) and is dynamically registered.CollectionPreviewManager
loops over all the registered providers to find the first that can handle the collection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Iterator<Asset>
getCollectionAssets(ResourceResolver resolver, ResourceCollection collection)
Returns anIterator
ofAsset
s representing the collection members for a given collection.
-
-
-
Method Detail
-
getCollectionAssets
java.util.Iterator<Asset> getCollectionAssets(ResourceResolver resolver, ResourceCollection collection)
Returns anIterator
ofAsset
s representing the collection members for a given collection.- Parameters:
resolver
- The scope's resolver.collection
- The resource collection.- Returns:
- An
Iterator
ofAsset
s representing the collection members. It returnsnull
if the provider cannot handle the collection.
-
-