Package io.jmix.core.security
Class CompositeUserRepository
java.lang.Object
io.jmix.core.security.CompositeUserRepository
- All Implemented Interfaces:
 UserRepository,org.springframework.security.core.userdetails.UserDetailsService
An implementation of 
UserRepository that compose all UserRepositorys
 registered in an application and delegates operations to them.
 For methods that return a single result, it returns the result of the first successful method execution by the delegates (the first one that hasn't ended up with an exception). Method returning a collection includes the results obtained from all the delegates.
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetailsReturns the built-in 'anonymous' user.List<? extends org.springframework.security.core.userdetails.UserDetails>getByUsernameLike(String substring) Returns the list of users whose username contains the given substring.org.springframework.security.core.userdetails.UserDetailsReturns the built-in 'system' user.org.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String username)  
- 
Field Details
- 
userRepositories
 
 - 
 - 
Constructor Details
- 
CompositeUserRepository
public CompositeUserRepository() 
 - 
 - 
Method Details
- 
getSystemUser
public org.springframework.security.core.userdetails.UserDetails getSystemUser()Description copied from interface:UserRepositoryReturns the built-in 'system' user.- Specified by:
 getSystemUserin interfaceUserRepository
 - 
getAnonymousUser
public org.springframework.security.core.userdetails.UserDetails getAnonymousUser()Description copied from interface:UserRepositoryReturns the built-in 'anonymous' user.- Specified by:
 getAnonymousUserin interfaceUserRepository
 - 
getByUsernameLike
public List<? extends org.springframework.security.core.userdetails.UserDetails> getByUsernameLike(String substring) Description copied from interface:UserRepositoryReturns the list of users whose username contains the given substring.- Specified by:
 getByUsernameLikein interfaceUserRepository
 - 
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException - Specified by:
 loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Throws:
 org.springframework.security.core.userdetails.UsernameNotFoundException
 
 -