Search in sources :

Example 1 with CompositeOperator

use of io.spine.client.CompositeColumnFilter.CompositeOperator in project core-java by SpineEventEngine.

the class EntityQueries method toQueryParams.

private static QueryParameters toQueryParams(EntityFilters entityFilters, Collection<EntityColumn> entityColumns) {
    final QueryParameters.Builder builder = QueryParameters.newBuilder();
    for (CompositeColumnFilter filter : entityFilters.getFilterList()) {
        final Multimap<EntityColumn, ColumnFilter> columnFilters = splitFilters(filter, entityColumns);
        final CompositeOperator operator = filter.getOperator();
        final CompositeQueryParameter parameter = CompositeQueryParameter.from(columnFilters, operator);
        builder.add(parameter);
    }
    return builder.build();
}
Also used : CompositeColumnFilter(io.spine.client.CompositeColumnFilter) CompositeOperator(io.spine.client.CompositeColumnFilter.CompositeOperator) CompositeColumnFilter(io.spine.client.CompositeColumnFilter) ColumnFilter(io.spine.client.ColumnFilter)

Aggregations

ColumnFilter (io.spine.client.ColumnFilter)1 CompositeColumnFilter (io.spine.client.CompositeColumnFilter)1 CompositeOperator (io.spine.client.CompositeColumnFilter.CompositeOperator)1