@Service(value="blMvelToSearchCriteriaConversionService") public class MvelToSearchCriteriaConversionServiceImpl extends Object implements MvelToSearchCriteriaConversionService
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
static String |
CATEGORY_FORMAT_REGEX |
protected IndexFieldDao |
indexFieldDao |
protected LocaleService |
localeService |
protected SolrHelperService |
solrHelperService |
| Constructor and Description |
|---|
MvelToSearchCriteriaConversionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
SearchCriteria |
convert(String mvelRule)
Given a simple MVEL rule, convert it to Search Criteria.
|
protected String |
convertFieldName(String fieldName) |
protected Collection<String> |
convertRuleToFilters(String matchRule) |
protected Long[] |
getCategoryIds(String mvelRule) |
protected String |
getCustomFieldPropertyName(String mvelRule) |
protected String |
getCustomFieldValue(String mvelRule) |
protected String |
getRuleOrPropertyFromFunction(String mvelRule) |
protected boolean |
isCategoryTargetingRule(String mvelRule) |
protected boolean |
isCustomFieldIndexed(List<IndexFieldType> indexFieldTypes) |
protected boolean |
isProductRule(String rule) |
protected boolean |
isWildCardSearch(String fieldValue)
Determines if the given field value string represents a wild card search.
|
protected String |
parseMethod(String fieldName)
Takes in a fieldName that contains a method (indicated with "()") and converts the method to an attribute.
|
public static final String CATEGORY_FORMAT_REGEX
protected CatalogService catalogService
protected IndexFieldDao indexFieldDao
protected LocaleService localeService
protected SolrHelperService solrHelperService
public MvelToSearchCriteriaConversionServiceImpl()
public SearchCriteria convert(String mvelRule)
MvelToSearchCriteriaConversionServiceconvert in interface MvelToSearchCriteriaConversionServiceprotected boolean isProductRule(String rule)
protected boolean isCustomFieldIndexed(List<IndexFieldType> indexFieldTypes)
protected boolean isCategoryTargetingRule(String mvelRule)
protected Collection<String> convertRuleToFilters(String matchRule)
protected String parseMethod(String fieldName)
fieldName - protected boolean isWildCardSearch(String fieldValue)
fieldValue - the String field valueCopyright © 2026. All rights reserved.