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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Stringprotected Map<Class<?>,ResourcePolicyIndex> protected final Collection<ResourcePolicy>protected Map<Class<?>,RowLevelPolicyIndex> protected final Collection<RowLevelPolicy>protected final Collection<String>
- 
Method SummaryModifier 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 RoleGrantedAuthorityofResourceRole(ResourceRole role) static RoleGrantedAuthorityofRowLevelRole(RowLevelRole role) static RoleGrantedAuthority.BuilderwithResourceRoleProvider(Function<String, ResourceRole> roleProvider) static RoleGrantedAuthority.BuilderwithRowLevelRoleProvider(Function<String, RowLevelRole> roleProvider) 
- 
Field Details- 
code
- 
scopes
- 
resourcePolicies
- 
rowLevelPolicies
- 
resourceIndexes
- 
rowLevelIndexes
 
- 
- 
Method Details- 
ofResourceRole
- 
ofRowLevelRole
- 
withResourceRoleProviderpublic static RoleGrantedAuthority.Builder withResourceRoleProvider(Function<String, ResourceRole> roleProvider) 
- 
withRowLevelRoleProviderpublic static RoleGrantedAuthority.Builder withRowLevelRoleProvider(Function<String, RowLevelRole> roleProvider) 
- 
getScopes- Specified by:
- getScopesin interface- PolicyAwareGrantedAuthority
 
- 
getResourcePolicies- Specified by:
- getResourcePoliciesin interface- PolicyAwareGrantedAuthority
 
- 
getRowLevelPolicies- Specified by:
- getRowLevelPoliciesin interface- PolicyAwareGrantedAuthority
 
- 
getResourcePoliciesByIndexpublic <I extends ResourcePolicyIndex> Stream<ResourcePolicy> getResourcePoliciesByIndex(Class<I> indexClass, Function<I, Stream<ResourcePolicy>> extractor) - Specified by:
- getResourcePoliciesByIndexin interface- PolicyAwareGrantedAuthority
 
- 
getRowLevelPoliciesByIndexpublic <I extends RowLevelPolicyIndex> Stream<RowLevelPolicy> getRowLevelPoliciesByIndex(Class<I> indexClass, Function<I, Stream<RowLevelPolicy>> extractor) - Specified by:
- getRowLevelPoliciesByIndexin interface- PolicyAwareGrantedAuthority
 
- 
getAuthority- Specified by:
- getAuthorityin interface- org.springframework.security.core.GrantedAuthority
 
 
-