Class StructuredContentCartRuleProcessor
java.lang.Object
org.broadleafcommerce.common.rule.AbstractRuleProcessor<T>
org.broadleafcommerce.core.order.service.AbstractCartRuleProcessor<StructuredContentDTO>
org.broadleafcommerce.core.order.service.StructuredContentCartRuleProcessor
- All Implemented Interfaces:
RuleProcessor<StructuredContentDTO>
public class StructuredContentCartRuleProcessor
extends AbstractCartRuleProcessor<StructuredContentDTO>
Created by bpolster.
-
Field Summary
Fields inherited from class org.broadleafcommerce.core.order.service.AbstractCartRuleProcessor
orderDaoFields inherited from class org.broadleafcommerce.common.rule.AbstractRuleProcessor
contextClassNames, LOG, parserContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckForMatch(StructuredContentDTO sc, 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, setOrderDaoMethods inherited from class org.broadleafcommerce.common.rule.AbstractRuleProcessor
executeExpression, getContextClassNames, getParserContext, setContextClassNames
-
Constructor Details
-
StructuredContentCartRuleProcessor
public StructuredContentCartRuleProcessor()
-
-
Method Details
-
checkForMatch
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-
-