Class RuleFilter

java.lang.Object
com.broadleafcommerce.search.api.domain.RuleFilter

public class RuleFilter extends Object
Represents the rule filter to be searched.
Author:
Marie Standeven (marieStandeven)
  • Constructor Details

    • RuleFilter

      public RuleFilter()
  • Method Details

    • getRule

      public String getRule()
      Rule-based RSQL filters to be searched upon
      Returns:
      RSQL filters to be searched upon
    • getOverrideLocale

      public Locale getOverrideLocale()
      The override locale to be used when evaluating the rule in the RSQLSolrQueryContributor. This locale would override whatever context the current locale is in when evaluating the rule values against the Solr document fields. This is useful since the rule is a simple string without translations.
      Returns:
      override locale to be used when evaluating the rule
    • setRule

      public void setRule(String rule)
      Rule-based RSQL filters to be searched upon
      Parameters:
      rule - RSQL filters to be searched upon
    • setOverrideLocale

      public void setOverrideLocale(Locale overrideLocale)
      The override locale to be used when evaluating the rule in the RSQLSolrQueryContributor. This locale would override whatever context the current locale is in when evaluating the rule values against the Solr document fields. This is useful since the rule is a simple string without translations.
      Parameters:
      overrideLocale - override locale to be used when evaluating the rule
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object