Class AbstractQueryFilter
java.lang.Object
de.hybris.platform.jalo.flexiblesearch.AbstractQueryFilter
- Direct Known Subclasses:
ContextQueryFilter
Base class of query filter value objects.
They're used to add query fragments to each FlexibleSearch query if either existing SearchRestriction
items exist for the query type and the current session user or if there are context
specific filters.
-
Method Details
-
getRestrictionType
The type which this filter applies to. -
getQuery
The query fragment to inject. -
getCode
The code of this filter. Filters may be overloaded regarding super type relationship using the same code.Example:
If there are two filter 'foo' one for type Product and one for type VariantProduct each query upon variant products will contain the second filter text, any query upon prodcust will contain both texts in conjunction with type separating conditions.
-
equals
Filters are considered equal if their codes and types match. -
hashCode
public int hashCode()
-