org.broadleafcommerce.core.order.service
Class PageCartRuleProcessor

java.lang.Object
  extended by org.broadleafcommerce.common.rule.AbstractRuleProcessor<T>
      extended by org.broadleafcommerce.core.order.service.AbstractCartRuleProcessor<PageDTO>
          extended by org.broadleafcommerce.core.order.service.PageCartRuleProcessor
All Implemented Interfaces:
RuleProcessor<PageDTO>

public class PageCartRuleProcessor
extends AbstractCartRuleProcessor<PageDTO>

Created by bpolster.


Field Summary
 
Fields inherited from class org.broadleafcommerce.core.order.service.AbstractCartRuleProcessor
orderDao
 
Fields inherited from class org.broadleafcommerce.common.rule.AbstractRuleProcessor
contextClassNames, expressionCache, LOG, parserContext
 
Constructor Summary
PageCartRuleProcessor()
           
 
Method Summary
 boolean checkForMatch(PageDTO page, Map<String,Object> valueMap)
          Expects to find a valid "Customer" in the valueMap.
 
Methods inherited from class org.broadleafcommerce.core.order.service.AbstractCartRuleProcessor
checkItemCriteria, getOrderDao, lookupOrderForCustomer, setOrderDao
 
Methods inherited from class org.broadleafcommerce.common.rule.AbstractRuleProcessor
executeExpression, getContextClassNames, getParserContext, setContextClassNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageCartRuleProcessor

public PageCartRuleProcessor()
Method Detail

checkForMatch

public boolean checkForMatch(PageDTO page,
                             Map<String,Object> valueMap)
Expects to find a valid "Customer" in the valueMap. Uses the customer to locate the cart and then loops through the items in the current cart and checks to see if the cart items rules are met.

Parameters:
sc -


Copyright © 2013. All Rights Reserved.