@Component(value="blCartStateRequestProcessor") public class CartStateRequestProcessor extends AbstractBroadleafWebRequestProcessor
CartStateFilter},
BroadleafWebRequestProcessor},
ServletWebRequest},
org.springframework.web.portlet.context.PortletWebRequest}| Modifier and Type | Field and Description |
|---|---|
protected static String |
anonymousCartSessionAttributeName |
static String |
BLC_RULE_MAP_PARAM |
protected static String |
cartRequestAttributeName |
protected CrossAppAuthService |
crossAppAuthService |
protected CustomerStateRequestProcessor |
customerStateRequestProcessor |
protected org.apache.commons.logging.Log |
LOG
Logger for this class and subclasses
|
protected MergeCartService |
mergeCartService |
protected OrderService |
orderService |
static String |
OVERRIDE_CART_ATTR_NAME |
protected UpdateCartService |
updateCartService |
| Constructor and Description |
|---|
CartStateRequestProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCartRequestAttributeName() |
Order |
getOverrideCart(org.springframework.web.context.request.WebRequest request) |
Order |
mergeCart(Customer customer,
org.springframework.web.context.request.WebRequest request)
Looks up the anonymous customer and merges that cart with the cart from the given logged in customer.
|
boolean |
mergeCartNeeded(Customer customer,
org.springframework.web.context.request.WebRequest request)
Returns true if the given customer is different than the previous anonymous customer, implying that this is
the logged in customer and we need to merge the carts
|
void |
process(org.springframework.web.context.request.WebRequest request) |
static void |
setCartRequestAttributeName(String cartRequestAttributeName) |
postProcessprotected final org.apache.commons.logging.Log LOG
public static final String BLC_RULE_MAP_PARAM
protected OrderService orderService
protected UpdateCartService updateCartService
protected MergeCartService mergeCartService
protected CustomerStateRequestProcessor customerStateRequestProcessor
@Autowired(required=false) @Qualifier(value="blCrossAppAuthService") protected CrossAppAuthService crossAppAuthService
protected static String cartRequestAttributeName
protected static String anonymousCartSessionAttributeName
public static final String OVERRIDE_CART_ATTR_NAME
public void process(org.springframework.web.context.request.WebRequest request)
public Order getOverrideCart(org.springframework.web.context.request.WebRequest request)
public boolean mergeCartNeeded(Customer customer, org.springframework.web.context.request.WebRequest request)
public Order mergeCart(Customer customer, org.springframework.web.context.request.WebRequest request)
public static String getCartRequestAttributeName()
public static void setCartRequestAttributeName(String cartRequestAttributeName)
Copyright © 2015. All Rights Reserved.