T
- type of the resourceV
- type of the valuepublic interface TermFilterSearchModel<T,V> extends FilterSearchModel<T,V>
Modifier and Type | Method and Description |
---|---|
List<FilterExpression<T>> |
containsAll(Iterable<V> values)
Generates an expression to select all elements with attributes matching all the given values.
|
List<FilterExpression<T>> |
containsAllAsString(Iterable<String> values)
Generates an expression to select all elements with attributes matching all the given values.
|
List<FilterExpression<T>> |
containsAny(Iterable<V> values)
Generates an expression to select all elements with attributes matching any of the given values.
|
List<FilterExpression<T>> |
containsAnyAsString(Iterable<String> values)
Generates an expression to select all elements with attributes matching any of the given values.
|
List<FilterExpression<T>> |
is(V value)
Generates an expression to select all elements with the given attribute value.
|
List<FilterExpression<T>> |
isIn(Iterable<V> values)
Generates an expression to select all elements with attributes matching any of the given values.
|
static <T,V> TermFilterSearchModel<T,V> |
of(String attributePath,
Function<V,String> typeSerializer)
Creates an instance of the search model to generate term filters.
|
getSearchModel
List<FilterExpression<T>> containsAll(Iterable<V> values)
FilterSearchModel
containsAll
in interface FilterSearchModel<T,V>
values
- the values to filter byList<FilterExpression<T>> containsAllAsString(Iterable<String> values)
FilterSearchModel
containsAllAsString
in interface FilterSearchModel<T,V>
values
- the values to filter byList<FilterExpression<T>> containsAny(Iterable<V> values)
FilterSearchModel
containsAny
in interface FilterSearchModel<T,V>
values
- the values to filter byList<FilterExpression<T>> containsAnyAsString(Iterable<String> values)
FilterSearchModel
containsAnyAsString
in interface FilterSearchModel<T,V>
values
- the values to filter byList<FilterExpression<T>> is(V value)
FilterSearchModel
is
in interface FilterSearchModel<T,V>
value
- the value to filter byList<FilterExpression<T>> isIn(Iterable<V> values)
FilterSearchModel
Alias for FilterSearchModel.containsAny(Iterable)
.
isIn
in interface FilterSearchModel<T,V>
values
- the values to filter bystatic <T,V> TermFilterSearchModel<T,V> of(String attributePath, Function<V,String> typeSerializer)
T
- type of the resourceV
- type of the valueattributePath
- the path of the attribute as expected by Composable Commerce (e.g. "variants.attributes.color.key")typeSerializer
- the function to convert the provided value to a string accepted by Composable Commerce