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

io.sphere.client.filters.Filter Maven / Gradle / Ivy

There is a newer version: 0.72.1
Show newest version
package io.sphere.client.filters;

import io.sphere.client.filters.expressions.FilterExpression;

import java.util.Map;

/** Filter 'component' that supports construction of backend queries based on application's URL query string.
 *
 *  See {@link FilterParser} for reconstructing state of multiple filters from application's URL.
 * */
public interface Filter {
    /** Creates a backend query for this filter, based on current values in the application's query string. */
    FilterExpression parse(Map queryString);

    /** Sets a custom query parameter name that will represent this filter in the application's query string. */
    Filter setQueryParam(String queryParam);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy