Class BackofficeUserDetailsService
- java.lang.Object
-
- de.hybris.platform.spring.security.CoreUserDetailsService
-
- com.hybris.backoffice.spring.security.BackofficeUserDetailsService
-
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
public class BackofficeUserDetailsService extends CoreUserDetailsService
Backoffice specific implementation for providing user data access.
-
-
Constructor Summary
Constructors Constructor Description BackofficeUserDetailsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AvailableCatalogVersionsTag
getAvailableCatalogVersionsTag()
protected CatalogVersionService
getCatalogVersionService()
protected SessionService
getSessionService()
protected UserService
getUserService()
boolean
isActivateCatalogVersions()
CoreUserDetails
loadUserByUsername(java.lang.String username)
Locates the user based on the username andvoid
setActivateCatalogVersions(boolean activateCatalogVersions)
void
setAvailableCatalogVersionsTag(AvailableCatalogVersionsTag availableCatalogVersionsTag)
void
setCatalogVersionService(CatalogVersionService catalogVersionService)
void
setSessionService(SessionService sessionService)
void
setUserService(UserService userService)
-
Methods inherited from class de.hybris.platform.spring.security.CoreUserDetailsService
isNotAnonymousOrAnonymousLoginIsAllowed, setRolePrefix
-
-
-
-
Method Detail
-
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:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Overrides:
loadUserByUsername
in 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()
-
setActivateCatalogVersions
public void setActivateCatalogVersions(boolean activateCatalogVersions)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getSessionService
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getCatalogVersionService
protected CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
getAvailableCatalogVersionsTag
protected AvailableCatalogVersionsTag getAvailableCatalogVersionsTag()
-
setAvailableCatalogVersionsTag
public void setAvailableCatalogVersionsTag(AvailableCatalogVersionsTag availableCatalogVersionsTag)
-
-