public class CustomerRefHandlerMethodArgumentResolver extends Object implements org.springframework.web.method.support.HandlerMethodArgumentResolver
CustomerRef
parameter for controller methods that require it.Modifier and Type | Field and Description |
---|---|
protected static Class<ResolveCustomerRef> |
clazz |
Constructor and Description |
---|
CustomerRefHandlerMethodArgumentResolver(com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils,
com.broadleafcommerce.common.extension.TypeFactory typeFactory) |
Modifier and Type | Method and Description |
---|---|
protected Optional<ResolveCustomerRef> |
findAnnotation(org.springframework.core.MethodParameter param) |
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils |
getAuthenticationUtils() |
protected com.broadleafcommerce.common.extension.TypeFactory |
getTypeFactory() |
protected void |
handleRegisteredOnly(ResolveCustomerRef annotation) |
Object |
resolveArgument(org.springframework.core.MethodParameter parameter,
org.springframework.web.method.support.ModelAndViewContainer mavContainer,
org.springframework.web.context.request.NativeWebRequest webRequest,
org.springframework.web.bind.support.WebDataBinderFactory binderFactory) |
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter) |
protected static final Class<ResolveCustomerRef> clazz
public CustomerRefHandlerMethodArgumentResolver(com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
supportsParameter
in interface org.springframework.web.method.support.HandlerMethodArgumentResolver
public Object resolveArgument(@Nullable org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, @Nullable org.springframework.web.context.request.NativeWebRequest webRequest, org.springframework.web.bind.support.WebDataBinderFactory binderFactory)
resolveArgument
in interface org.springframework.web.method.support.HandlerMethodArgumentResolver
protected Optional<ResolveCustomerRef> findAnnotation(org.springframework.core.MethodParameter param)
protected void handleRegisteredOnly(ResolveCustomerRef annotation)
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils()
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
Copyright © 2021. All rights reserved.