@Service(value="blMvelToSearchCriteriaConversionService") public class MvelToSearchCriteriaConversionServiceImpl extends Object implements MvelToSearchCriteriaConversionService
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
static String |
CATEGORY_FORMAT_REGEX |
static String |
CUSTOM_FIELD_CONTAINS_FORMAT_REGEX |
static String |
CUSTOM_FIELD_EQUALS_FORMAT_REGEX |
protected IndexFieldDao |
indexFieldDao |
| Constructor and Description |
|---|
MvelToSearchCriteriaConversionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildCustomFieldQuery(String mvelRule) |
protected String |
buildCustomFieldQuery(String customFieldPropertyName,
String customFieldValue) |
SearchCriteria |
convert(String mvelRule)
Given a simple MVEL rule, convert it to Search Criteria.
|
protected Long |
getCategoryId(String mvelRule) |
protected String |
getCustomFieldPropertyName(String mvelRule) |
protected String |
getCustomFieldValue(String mvelRule) |
protected boolean |
isCategoryTargetingRule(String mvelRule) |
protected boolean |
isCustomFieldContainsCheck(String mvelRule) |
protected boolean |
isCustomFieldEqualsCheck(String mvelRule) |
protected boolean |
isCustomFieldIndexed(List<IndexFieldType> indexFieldTypes) |
protected boolean |
isCustomFieldTargetingRule(String mvelRule) |
protected boolean |
isFirstItem(String customFieldQuery) |
public static final String CATEGORY_FORMAT_REGEX
public static final String CUSTOM_FIELD_EQUALS_FORMAT_REGEX
public static final String CUSTOM_FIELD_CONTAINS_FORMAT_REGEX
protected CatalogService catalogService
protected IndexFieldDao indexFieldDao
public MvelToSearchCriteriaConversionServiceImpl()
public SearchCriteria convert(String mvelRule)
MvelToSearchCriteriaConversionServiceconvert in interface MvelToSearchCriteriaConversionServiceprotected String buildCustomFieldQuery(String customFieldPropertyName, String customFieldValue)
protected boolean isFirstItem(String customFieldQuery)
protected boolean isCustomFieldIndexed(List<IndexFieldType> indexFieldTypes)
protected boolean isCustomFieldTargetingRule(String mvelRule)
protected boolean isCustomFieldEqualsCheck(String mvelRule)
protected boolean isCustomFieldContainsCheck(String mvelRule)
protected boolean isCategoryTargetingRule(String mvelRule)
Copyright © 2025. All rights reserved.