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

com.adobe.cq.social.commons.listing.CommentListProvider Maven / Gradle / Ivy

/*************************************************************************
 *
 * ADOBE CONFIDENTIAL
 * __________________
 *
 *  Copyright 2013 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.adobe.cq.social.commons.listing;

import org.apache.sling.api.resource.Resource;

import com.adobe.cq.social.scf.QueryRequestInfo;

/**
 * Comments node type are sorted in different ordered for different component. The {@link CommentListProvider} allows
 * a client to obtain the children of a resource sorted in the right order of its usage.
 */
public interface CommentListProvider {
    /**
     * Get a subset of {@link com.adobe.cq.social.commons.comments.api.Comment} of the specified root resource as defined by the given offset and size. The
     * comments are returned in chronological order.
     * @param resource the target resource.
     * @param listInfo QueryRequestInfo
     * @return The list of comments with the specified offset and size.
     */
    CommentListCollection getComments(final Resource resource, final QueryRequestInfo listInfo);

    /**
     * Get the resource types this provider supports
     * @return a list resource type this provider supports.
     */
    public String[] getSupportedResourceType();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy