Package io.jmix.restds.auth
Class AbstractRestUserRepository.GrantedAuthoritiesBuilder
java.lang.Object
io.jmix.restds.auth.AbstractRestUserRepository.GrantedAuthoritiesBuilder
- Enclosing class:
- AbstractRestUserRepository<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.
-