Class AbstractQueryFilter

java.lang.Object
de.hybris.platform.jalo.flexiblesearch.AbstractQueryFilter
Direct Known Subclasses:
ContextQueryFilter

public abstract class AbstractQueryFilter extends Object
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

      public ComposedType getRestrictionType()
      The type which this filter applies to.
    • getQuery

      public String getQuery()
      The query fragment to inject.
    • getCode

      public 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(Object obj)
      Filters are considered equal if their codes and types match.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object