Package io.jmix.oidc.claimsmapper
Class BaseClaimsRolesMapper
java.lang.Object
io.jmix.oidc.claimsmapper.BaseClaimsRolesMapper
- All Implemented Interfaces:
ClaimsRolesMapper
- Direct Known Subclasses:
DefaultClaimsRolesMapper
ClaimsRolesMapper
that can be used as super-class for your own ClaimsRolesMapper
implementations. The
child classes must override the getResourceRolesCodes(Map)
or/and getRowLevelRoleCodes(Map)
methods. The behavior for finding roles with given codes and transforming them into a collection of GrantedAuthority
is already implemented in the current class.-
Field Summary
Modifier and TypeFieldDescriptionprotected ResourceRoleRepository
protected RowLevelRoleRepository
-
Constructor Summary
ConstructorDescriptionBaseClaimsRolesMapper
(ResourceRoleRepository resourceRoleRepository, RowLevelRoleRepository rowLevelRoleRepository) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String>
getResourceRolesCodes
(Map<String, Object> claims) protected Collection<String>
getRowLevelRoleCodes
(Map<String, Object> claims) toResourceRoles
(Map<String, Object> claims) toRowLevelRoles
(Map<String, Object> claims) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.oidc.claimsmapper.ClaimsRolesMapper
toGrantedAuthorities
-
Field Details
-
rowLevelRoleRepository
-
resourceRoleRepository
-
-
Constructor Details
-
BaseClaimsRolesMapper
public BaseClaimsRolesMapper(ResourceRoleRepository resourceRoleRepository, RowLevelRoleRepository rowLevelRoleRepository)
-
-
Method Details
-
toResourceRoles
- Specified by:
toResourceRoles
in interfaceClaimsRolesMapper
-
toRowLevelRoles
- Specified by:
toRowLevelRoles
in interfaceClaimsRolesMapper
-
getResourceRolesCodes
-
getRowLevelRoleCodes
-