@Service(value="blContentDefaultRuleProcessor")
public class StructuredContentDefaultRuleProcessor
extends org.broadleafcommerce.common.rule.AbstractRuleProcessor<org.broadleafcommerce.common.structure.dto.StructuredContentDTO>
StructuredContent.getStructuredContentMatchRules()
into a single MVEL expression.| Constructor and Description |
|---|
StructuredContentDefaultRuleProcessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkForMatch(org.broadleafcommerce.common.structure.dto.StructuredContentDTO sc,
Map<String,Object> vars)
Returns true if all of the rules associated with the passed in
StructuredContent
item match based on the passed in vars. |
public StructuredContentDefaultRuleProcessor()
public boolean checkForMatch(org.broadleafcommerce.common.structure.dto.StructuredContentDTO sc,
Map<String,Object> vars)
StructuredContent
item match based on the passed in vars.
Also returns true if no rules are present for the passed in item.sc - - a structured content item to testvars - - a map of objects used by the rule MVEL expressionsCopyright © 2017. All rights reserved.