package services.repository;
import models.ResourceList;
import javax.annotation.Nonnull;
import java.io.IOException;
import java.util.List;
import java.util.Map;
/**
* @author fo
*/
public interface Queryable {
/**
* Query for resources.
*
* @param aQueryString
* A string describing the query
* @param aFilters
* @return A resource resembling the result set of resources matching the
* criteria given in the query string
*/
ResourceList query(@Nonnull String aQueryString, int aFrom, int aSize, String aSortOrder,
Map<String, List<String>> aFilters) throws IOException;
}