@Component(value="blCustomerStateRequestProcessor") public class CustomerStateRequestProcessor extends AbstractBroadleafWebRequestProcessor implements org.springframework.context.ApplicationEventPublisherAware
CustomerStateFilter}| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANONYMOUS_CUSTOMER_SESSION_ATTRIBUTE_NAME |
static java.lang.String |
BLC_RULE_MAP_PARAM |
protected static java.lang.String |
customerRequestAttributeName |
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 |
|---|---|
java.lang.String |
getAnonymousCustomerAttributeName()
Returns the session attribute to store the anonymous customer.
|
static java.lang.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(java.lang.String customerRequestAttributeName) |
postProcessprotected final org.apache.commons.logging.Log logger
public static final java.lang.String BLC_RULE_MAP_PARAM
protected CustomerService customerService
protected static java.lang.String customerRequestAttributeName
public static final java.lang.String ANONYMOUS_CUSTOMER_SESSION_ATTRIBUTE_NAME
public void process(org.springframework.web.context.request.WebRequest request)
process in interface BroadleafWebRequestProcessorpublic Customer resolveAuthenticatedCustomer(org.springframework.security.core.Authentication authentication)
authentication - public Customer resolveAnonymousCustomer(org.springframework.web.context.request.WebRequest request)
request - public java.lang.String getAnonymousCustomerAttributeName()
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher eventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwarepublic static java.lang.String getCustomerRequestAttributeName()
public static void setCustomerRequestAttributeName(java.lang.String customerRequestAttributeName)
Copyright © 2018. All Rights Reserved.