Class AnnotationBasedCustomerManagerIdentificationStrategy
java.lang.Object
de.hybris.platform.b2b.occ.strategy.impl.AnnotationBasedCustomerManagerIdentificationStrategy
- All Implemented Interfaces:
CustomerManagerIdentificationStrategy
public class AnnotationBasedCustomerManagerIdentificationStrategy
extends Object
implements CustomerManagerIdentificationStrategy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.security.core.AuthenticationgetAuth()protected booleanvoidHelps the endpoint to return the correct data to a customer manager.voidsetASMSessionForAnnotation(org.springframework.security.access.annotation.Secured securedAnnotation) Helps the endpoint to return the correct data if access is allowed to a customer manager.voidsetSessionService(SessionService sessionService) voidsetUserService(UserService userService)
-
Field Details
-
userService
-
sessionService
-
-
Constructor Details
-
AnnotationBasedCustomerManagerIdentificationStrategy
public AnnotationBasedCustomerManagerIdentificationStrategy()
-
-
Method Details
-
setASMSessionForAnnotation
public void setASMSessionForAnnotation(org.springframework.security.access.annotation.Secured securedAnnotation) Description copied from interface:CustomerManagerIdentificationStrategyHelps the endpoint to return the correct data if access is allowed to a customer manager.- Specified by:
setASMSessionForAnnotationin interfaceCustomerManagerIdentificationStrategy
-
setASMSessionAfterLogin
public void setASMSessionAfterLogin()Description copied from interface:CustomerManagerIdentificationStrategyHelps the endpoint to return the correct data to a customer manager.- Specified by:
setASMSessionAfterLoginin interfaceCustomerManagerIdentificationStrategy
-
setUserService
-
setSessionService
-
getAuth
protected org.springframework.security.core.Authentication getAuth() -
hasRole
-
getUserService
-
getSessionService
-