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