org.broadleafcommerce.cms.page.service
Class PageDefaultRuleProcessor

java.lang.Object
  extended by org.broadleafcommerce.cms.page.service.AbstractPageRuleProcessor
      extended by org.broadleafcommerce.cms.page.service.PageDefaultRuleProcessor
All Implemented Interfaces:
PageRuleProcessor

@Service(value="blPageDefaultRuleProcessor")
public class PageDefaultRuleProcessor
extends AbstractPageRuleProcessor

By default, this rule processor combines all of the rules from Page.getPageMatchRules() into a single MVEL expression.

Author:
bpolster.

Constructor Summary
PageDefaultRuleProcessor()
           
 
Method Summary
 boolean checkForMatch(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.
 
Methods inherited from class org.broadleafcommerce.cms.page.service.AbstractPageRuleProcessor
executeExpression, getContextClassNames, getParserContext, setContextClassNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageDefaultRuleProcessor

public PageDefaultRuleProcessor()
Method Detail

checkForMatch

public boolean checkForMatch(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. Also returns true if no rules are present for the passed in item.

Parameters:
sc - - a structured content item to test
vars - - a map of objects used by the rule MVEL expressions
Returns:
the result of the rule checks


Copyright © 2013. All Rights Reserved.