Class DatabaseUserRepository
java.lang.Object
io.jmix.securitydata.user.AbstractDatabaseUserRepository<User>
io.jmix.samples.restservice.security.DatabaseUserRepository
- All Implemented Interfaces:
UserManager
,UserRepository
,org.springframework.security.core.userdetails.UserDetailsService
@Primary
@Component("UserRepository")
public class DatabaseUserRepository
extends AbstractDatabaseUserRepository<User>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.securitydata.user.AbstractDatabaseUserRepository
AbstractDatabaseUserRepository.GrantedAuthoritiesBuilder
-
Field Summary
Fields inherited from class io.jmix.securitydata.user.AbstractDatabaseUserRepository
dataManager, eventPublisher, metadata, passwordEncoder, roleAssignmentRepository, roleGrantedAuthorityUtils, tokenRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the class of a JPA entity representing users in the application.protected void
initAnonymousUser
(User anonymousUser) Initializes the built-in 'anonymous' user.protected void
initSystemUser
(User systemUser) Initializes the built-in 'system' user.Methods inherited from class io.jmix.securitydata.user.AbstractDatabaseUserRepository
changePassword, createAnonymousUser, createAuthorities, createAuthority, createSystemUser, getAnonymousUser, getByUsernameLike, getGrantedAuthoritiesBuilder, getSystemUser, isUserDisabled, loadUserByUsername, loadUsersByUsernameFromDatabase, resetPasswords, resetRememberMe
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.core.security.UserManager
changePassword, resetPasswords
-
Constructor Details
-
DatabaseUserRepository
public DatabaseUserRepository()
-
-
Method Details
-
getUserClass
Description copied from class:AbstractDatabaseUserRepository
Returns the class of a JPA entity representing users in the application.- Specified by:
getUserClass
in classAbstractDatabaseUserRepository<User>
-
initSystemUser
Description copied from class:AbstractDatabaseUserRepository
Initializes the built-in 'system' user. Override in the application to grant authorities or initialize attributes.- Overrides:
initSystemUser
in classAbstractDatabaseUserRepository<User>
-
initAnonymousUser
Description copied from class:AbstractDatabaseUserRepository
Initializes the built-in 'anonymous' user. Override in the application to grant authorities or initialize attributes.- Overrides:
initAnonymousUser
in classAbstractDatabaseUserRepository<User>
-