@Component(value="blCustomerStateRequestProcessor") public class CustomerStateRequestProcessor extends Object implements org.springframework.context.ApplicationEventPublisherAware, org.broadleafcommerce.common.web.BroadleafWebRequestProcessor
CustomerStateFilter}| Modifier and Type | Field and Description |
|---|---|
static String |
ANONYMOUS_CUSTOMER_SESSION_ATTRIBUTE_NAME |
static String |
BLC_RULE_MAP_PARAM |
protected CustomerService |
customerService |
protected org.apache.commons.logging.Log |
logger
Logger for this class and subclasses
|
| Constructor and Description |
|---|
CustomerStateRequestProcessor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAnonymousCustomerAttributeName()
Returns the session attribute to store the anonymous customer.
|
static String |
getCustomerRequestAttributeName() |
void |
process(org.springframework.web.context.request.WebRequest request) |
Customer |
resolveAnonymousCustomer(org.springframework.web.context.request.WebRequest request)
Implementors can subclass to change how anonymous customers are created.
|
Customer |
resolveAuthenticatedCustomer(org.springframework.security.core.Authentication authentication)
Subclasses can extend to resolve other types of Authentication tokens
|
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher eventPublisher) |
static void |
setCustomerRequestAttributeName(String customerRequestAttributeName) |
protected final org.apache.commons.logging.Log logger
public static final String BLC_RULE_MAP_PARAM
protected CustomerService customerService
public static final String ANONYMOUS_CUSTOMER_SESSION_ATTRIBUTE_NAME
public void process(org.springframework.web.context.request.WebRequest request)
process in interface org.broadleafcommerce.common.web.BroadleafWebRequestProcessorpublic Customer resolveAuthenticatedCustomer(org.springframework.security.core.Authentication authentication)
authentication - public Customer resolveAnonymousCustomer(org.springframework.web.context.request.WebRequest request)
request - public String getAnonymousCustomerAttributeName()
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher eventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwarepublic static String getCustomerRequestAttributeName()
public static void setCustomerRequestAttributeName(String customerRequestAttributeName)
Copyright © 2014. All rights reserved.