Class DefaultCockpitUserDetailsService
- java.lang.Object
-
- de.hybris.platform.spring.security.CoreUserDetailsService
-
- de.hybris.platform.cockpit.security.DefaultCockpitUserDetailsService
-
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
public class DefaultCockpitUserDetailsService extends CoreUserDetailsService
Cockpit specific implementation for providing user data access.
-
-
Constructor Summary
Constructors Constructor Description DefaultCockpitUserDetailsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionProxygetSessionProxy()booleanisActivateCatalogVersions()CoreUserDetailsloadUserByUsername(java.lang.String username)Locates the user based on the username andvoidsetActivateCatalogVersions(boolean activateCatalogVersions)voidsetCatalogVersionService(CatalogVersionService catalogVersionService)voidsetSessionProxy(SessionProxy sessionProxy)voidsetSessionService(SessionService sessionService)voidsetUserService(UserService userService)-
Methods inherited from class de.hybris.platform.spring.security.CoreUserDetailsService
isNotAnonymousOrAnonymousLoginIsAllowed, setRolePrefix
-
-
-
-
Method Detail
-
getSessionProxy
public SessionProxy getSessionProxy()
-
setSessionProxy
public void setSessionProxy(SessionProxy sessionProxy)
-
loadUserByUsername
public CoreUserDetails loadUserByUsername(java.lang.String username)
Locates the user based on the username and- calls getSessionProxy().getSession().setUserByUID( ... )
- sets all available catalog versions as sessions catalogs
after that
- Specified by:
loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Overrides:
loadUserByUsernamein classCoreUserDetailsService- Parameters:
username- the username presented to theAuthenticationProvider- Returns:
- a fully populated user record (could be
null) - Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException- if the user could not be found or the user has no GrantedAuthority
-
isActivateCatalogVersions
public boolean isActivateCatalogVersions()
- Returns:
- the activateCatalogVersions
-
setActivateCatalogVersions
public void setActivateCatalogVersions(boolean activateCatalogVersions)
- Parameters:
activateCatalogVersions- the activateCatalogVersions to set
-
setUserService
public void setUserService(UserService userService)
-
setSessionService
public void setSessionService(SessionService sessionService)
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
-