Class AbstractQueryFilter
- java.lang.Object
-
- de.hybris.platform.jalo.flexiblesearch.AbstractQueryFilter
-
- Direct Known Subclasses:
ContextQueryFilter
public abstract class AbstractQueryFilter extends java.lang.ObjectBase class of query filter value objects.They're used to add query fragments to each
FlexibleSearchquery if either existingSearchRestrictionitems exist for the query type and the current session user or if there arecontext specificfilters.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Filters are considered equal if their codes and types match.java.lang.StringgetCode()The code of this filter.java.lang.StringgetQuery()The query fragment to inject.ComposedTypegetRestrictionType()The type which this filter applies to.inthashCode()
-
-
-
Method Detail
-
getRestrictionType
public ComposedType getRestrictionType()
The type which this filter applies to.
-
getQuery
public java.lang.String getQuery()
The query fragment to inject.
-
getCode
public java.lang.String 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
public boolean equals(java.lang.Object obj)
Filters are considered equal if their codes and types match.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-