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 Detail

      • getCollectionAssets

        java.util.Iterator<Asset> getCollectionAssets​(ResourceResolver resolver,
                                                      ResourceCollection collection)
        Returns an Iterator of Assets representing the collection members for a given collection.
        Parameters:
        resolver - The scope's resolver.
        collection - The resource collection.
        Returns:
        An Iterator of Assets representing the collection members. It returns null if the provider cannot handle the collection.