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
Backoffice specific implementation for providing user data access.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected AvailableCatalogVersionsTagprotected CatalogVersionServiceprotected SessionServiceprotected UserServicebooleanloadUserByUsername(String username) Locates the user based on the username andvoidsetActivateCatalogVersions(boolean activateCatalogVersions) voidsetAvailableCatalogVersionsTag(AvailableCatalogVersionsTag availableCatalogVersionsTag) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetSessionService(SessionService sessionService) voidsetUserService(UserService userService) Methods inherited from class de.hybris.platform.spring.security.CoreUserDetailsService
isNotAnonymousOrAnonymousLoginIsAllowed, setRolePrefix
-
Constructor Details
-
BackofficeUserDetailsService
public BackofficeUserDetailsService()
-
-
Method Details
-
loadUserByUsername
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
-
activateCatalogVersions
-
isActivateCatalogVersions
public boolean isActivateCatalogVersions() -
setActivateCatalogVersions
public void setActivateCatalogVersions(boolean activateCatalogVersions) -
getUserService
-
setUserService
-
getSessionService
-
setSessionService
-
getCatalogVersionService
-
setCatalogVersionService
-
getAvailableCatalogVersionsTag
-
setAvailableCatalogVersionsTag
-