Class RuleFilter


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

      • RuleFilter

        public RuleFilter()
    • Method Detail

      • 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
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object