All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.day.cq.dam.api.ui.preview.CollectionPreviewManager Maven / Gradle / Ivy

There is a newer version: 2024.11.18751.20241128T090041Z-241100
Show newest version
/*************************************************************************
 *
 * ADOBE CONFIDENTIAL
 * __________________
 *
 *  Copyright 2015 Adobe Systems Incorporated
 *  All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated and its
 * suppliers and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 **************************************************************************/
package com.day.cq.dam.api.ui.preview;

import java.util.Iterator;

import aQute.bnd.annotation.ProviderType;
import org.apache.sling.api.resource.ResourceResolver;
import org.apache.sling.resource.collection.ResourceCollection;
import com.day.cq.dam.api.Asset;

/**
 * Service that retrieves the assets representing the collection members for a given collection.
 * It loops over registered {@link CollectionPreviewProvider}s to find the first provider that
 * can handle the collection.
 */
@ProviderType
public interface CollectionPreviewManager {

    /**
     * Returns an Iterator of {@link Asset}s representing the collection members for a given collection.
     * @param resolver The scope's resolver.
     * @param collection The resource collection.
     * @return An {@link Iterator} of {@link Asset}s representing the collection members.
     *          It returns null if no registered {@link CollectionPreviewProvider}s can handle the collection.
     */
    Iterator getCollectionAssets(ResourceResolver resolver, ResourceCollection collection);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy