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