Package io.jmix.security.authentication
Class RoleGrantedAuthority
java.lang.Object
io.jmix.security.authentication.RoleGrantedAuthority
- All Implemented Interfaces:
PolicyAwareGrantedAuthority
,Serializable
,org.springframework.security.core.GrantedAuthority
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected Map<Class<?>,
ResourcePolicyIndex> protected final Collection<ResourcePolicy>
protected Map<Class<?>,
RowLevelPolicyIndex> protected final Collection<RowLevelPolicy>
protected final Collection<String>
-
Method Summary
Modifier and TypeMethodDescription<I extends ResourcePolicyIndex>
Stream<ResourcePolicy>getResourcePoliciesByIndex
(Class<I> indexClass, Function<I, Stream<ResourcePolicy>> extractor) <I extends RowLevelPolicyIndex>
Stream<RowLevelPolicy>getRowLevelPoliciesByIndex
(Class<I> indexClass, Function<I, Stream<RowLevelPolicy>> extractor) static RoleGrantedAuthority
ofResourceRole
(ResourceRole role) static RoleGrantedAuthority
ofRowLevelRole
(RowLevelRole role) static RoleGrantedAuthority.Builder
withResourceRoleProvider
(Function<String, ResourceRole> roleProvider) static RoleGrantedAuthority.Builder
withRowLevelRoleProvider
(Function<String, RowLevelRole> roleProvider)
-
Field Details
-
code
-
scopes
-
resourcePolicies
-
rowLevelPolicies
-
resourceIndexes
-
rowLevelIndexes
-
-
Method Details
-
ofResourceRole
-
ofRowLevelRole
-
withResourceRoleProvider
public static RoleGrantedAuthority.Builder withResourceRoleProvider(Function<String, ResourceRole> roleProvider) -
withRowLevelRoleProvider
public static RoleGrantedAuthority.Builder withRowLevelRoleProvider(Function<String, RowLevelRole> roleProvider) -
getScopes
- Specified by:
getScopes
in interfacePolicyAwareGrantedAuthority
-
getResourcePolicies
- Specified by:
getResourcePolicies
in interfacePolicyAwareGrantedAuthority
-
getRowLevelPolicies
- Specified by:
getRowLevelPolicies
in interfacePolicyAwareGrantedAuthority
-
getResourcePoliciesByIndex
public <I extends ResourcePolicyIndex> Stream<ResourcePolicy> getResourcePoliciesByIndex(Class<I> indexClass, Function<I, Stream<ResourcePolicy>> extractor) - Specified by:
getResourcePoliciesByIndex
in interfacePolicyAwareGrantedAuthority
-
getRowLevelPoliciesByIndex
public <I extends RowLevelPolicyIndex> Stream<RowLevelPolicy> getRowLevelPoliciesByIndex(Class<I> indexClass, Function<I, Stream<RowLevelPolicy>> extractor) - Specified by:
getRowLevelPoliciesByIndex
in interfacePolicyAwareGrantedAuthority
-
getAuthority
- Specified by:
getAuthority
in interfaceorg.springframework.security.core.GrantedAuthority
-