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();
}
Aggregations