Package io.jmix.securitydata.user
Class AbstractDatabaseUserRepository.GrantedAuthoritiesBuilder
java.lang.Object
io.jmix.securitydata.user.AbstractDatabaseUserRepository.GrantedAuthoritiesBuilder
- Enclosing class:
- AbstractDatabaseUserRepository<T extends org.springframework.security.core.userdetails.UserDetails>
Helps create authorities from roles.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddResourceRole
(String code) Adds a resource role by its code.addRowLevelRole
(String code) Adds a row-level role by its code.Collection<org.springframework.security.core.GrantedAuthority>
build()
Builds a collection of authorities.
-
Constructor Details
-
GrantedAuthoritiesBuilder
public GrantedAuthoritiesBuilder()
-
-
Method Details
-
addResourceRole
Adds a resource role by its code. -
addRowLevelRole
Adds a row-level role by its code. -
build
Builds a collection of authorities.
-