Class RuleFilter
java.lang.Object
com.broadleafcommerce.search.api.domain.RuleFilter
Represents the rule filter to be searched.
- Author:
- Marie Standeven (marieStandeven)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe override locale to be used when evaluating the rule in theRSQLSolrQueryContributor.getRule()Rule-based RSQL filters to be searched uponinthashCode()voidsetOverrideLocale(Locale overrideLocale) The override locale to be used when evaluating the rule in theRSQLSolrQueryContributor.voidRule-based RSQL filters to be searched upontoString()
-
Constructor Details
-
RuleFilter
public RuleFilter()
-
-
Method Details
-
getRule
Rule-based RSQL filters to be searched upon- Returns:
- RSQL filters to be searched upon
-
getOverrideLocale
The override locale to be used when evaluating the rule in theRSQLSolrQueryContributor. 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
Rule-based RSQL filters to be searched upon- Parameters:
rule- RSQL filters to be searched upon
-
setOverrideLocale
The override locale to be used when evaluating the rule in theRSQLSolrQueryContributor. 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
-
canEqual
-
hashCode
public int hashCode() -
toString
-