Class AnnotationBasedCustomerManagerIdentificationStrategy
- java.lang.Object
-
- de.hybris.platform.b2b.occ.strategy.impl.AnnotationBasedCustomerManagerIdentificationStrategy
-
- All Implemented Interfaces:
CustomerManagerIdentificationStrategy
public class AnnotationBasedCustomerManagerIdentificationStrategy extends java.lang.Object implements CustomerManagerIdentificationStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected SessionServicesessionServiceprotected UserServiceuserService
-
Constructor Summary
Constructors Constructor Description AnnotationBasedCustomerManagerIdentificationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.security.core.AuthenticationgetAuth()SessionServicegetSessionService()UserServicegetUserService()protected booleanhasRole(java.lang.String role, org.springframework.security.core.Authentication auth)voidsetASMSessionAfterLogin()Helps 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 Detail
-
userService
protected UserService userService
-
sessionService
protected SessionService sessionService
-
-
Method Detail
-
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
public void setUserService(UserService userService)
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getAuth
protected org.springframework.security.core.Authentication getAuth()
-
hasRole
protected boolean hasRole(java.lang.String role, org.springframework.security.core.Authentication auth)
-
getUserService
public UserService getUserService()
-
getSessionService
public SessionService getSessionService()
-
-