public final class OneUserDetailsService extends Object implements org.springframework.security.core.userdetails.UserDetailsService
UserDetailsService which locates the given username in the user work objects and returns a extended OneUserDetails instance as UserDetails.OneUserDetails| Constructor and Description |
|---|
OneUserDetailsService(UserManager userManager) |
| Modifier and Type | Method and Description |
|---|---|
OneUserDetails |
loadUserByUsername(String username) |
OneUserDetails |
loadUserByUsername(String username,
com.google.common.base.Optional<com.edorasware.commons.core.entity.State> stateOptional)
Loads system users with a given state.
|
public OneUserDetailsService(UserManager userManager)
public OneUserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsServiceorg.springframework.security.core.userdetails.UsernameNotFoundExceptionpublic OneUserDetails loadUserByUsername(String username, com.google.common.base.Optional<com.edorasware.commons.core.entity.State> stateOptional)
username - the username identifying the user whose data is required.stateOptional - the state optional to add to the predicate for searching the usersnull)org.springframework.security.core.userdetails.UsernameNotFoundException - if the user could not be found or the user has no GrantedAuthorityCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.