org.broadleafcommerce.core.order.service
Class StructuredContentCartRuleProcessor

java.lang.Object
  extended by org.broadleafcommerce.cms.structure.service.AbstractStructuredContentRuleProcessor
      extended by org.broadleafcommerce.core.order.service.StructuredContentCartRuleProcessor
All Implemented Interfaces:
StructuredContentRuleProcessor

public class StructuredContentCartRuleProcessor
extends AbstractStructuredContentRuleProcessor

Created by bpolster.


Constructor Summary
StructuredContentCartRuleProcessor()
           
 
Method Summary
 boolean checkForMatch(StructuredContent sc, Map<String,Object> valueMap)
          Expects to find a valid "Customer" in the valueMap.
 OrderDao getOrderDao()
           
 void setOrderDao(OrderDao orderDao)
           
 
Methods inherited from class org.broadleafcommerce.cms.structure.service.AbstractStructuredContentRuleProcessor
executeExpression, getContextClassNames, getParserContext, setContextClassNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructuredContentCartRuleProcessor

public StructuredContentCartRuleProcessor()
Method Detail

checkForMatch

public boolean checkForMatch(StructuredContent sc,
                             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 -
Returns:

setOrderDao

public void setOrderDao(OrderDao orderDao)

getOrderDao

public OrderDao getOrderDao()


Copyright © 2012. All Rights Reserved.