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 Summary
Constructors Constructor Description RuleFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)LocalegetOverrideLocale()The override locale to be used when evaluating the rule in theRSQLSolrQueryContributor.StringgetRule()Rule-based RSQL filters to be searched uponinthashCode()voidsetOverrideLocale(Locale overrideLocale)The override locale to be used when evaluating the rule in theRSQLSolrQueryContributor.voidsetRule(String rule)Rule-based RSQL filters to be searched uponStringtoString()
-
-
-
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 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
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 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
-
canEqual
protected boolean canEqual(Object other)
-
-