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

io.katharsis.repository.MetaRepository Maven / Gradle / Ivy

There is a newer version: 2.6.3
Show newest version
package io.katharsis.repository;

import io.katharsis.queryParams.QueryParams;
import io.katharsis.response.MetaInformation;

/**
 * An optional interface that can be implemented along with {@link ResourceRepository} or {@link
 * RelationshipRepository} to get meta information about returned resource(s).
 */
public interface MetaRepository {

    /**
     * Return meta information about a resource. Can be called after find repository methods call
     *
     * @param resources a list of found resource(s)
     * @param queryParams parameters sent along with the request
     * @return meta information object
     */
    MetaInformation getMetaInformation(Iterable resources, QueryParams queryParams);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy