Package org.keycloak.models
Interface ScopeContainerModel
- 
- All Known Subinterfaces:
- ClientModel,- ClientScopeModel
 - All Known Implementing Classes:
- AbstractClientModel,- AbstractClientScopeModel,- AbstractClientStorageAdapter,- AbstractReadOnlyClientScopeAdapter,- AbstractReadOnlyClientStorageAdapter,- ClientAdapter,- ClientAdapter,- ClientModelLazyDelegate,- ClientModelLazyDelegate.WithId,- ClientScopeAdapter,- ClientScopeAdapter,- MapClientAdapter,- MapClientScopeAdapter,- OIDCClientSecretConfigWrapper.ReadOnlyRotatedSecretClientModel,- OpenshiftSAClientAdapter,- UnsupportedOperationsClientStorageAdapter
 
 public interface ScopeContainerModel- Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddScopeMapping(RoleModel role)voiddeleteScopeMapping(RoleModel role)Stream<RoleModel>getRealmScopeMappingsStream()From the scope mappings returned bygetScopeMappingsStream()returns only those that belong to the realm that owns this scope container.Stream<RoleModel>getScopeMappingsStream()Returns scope mappings for this scope container as a stream.default booleanhasDirectScope(RoleModel role)Returnstrue, if this object has the given role directly in its scope.booleanhasScope(RoleModel role)Returnstrue, if this object has the given role directly or indirectly in its scope,falseotherwise.
 
- 
- 
- 
Method Detail- 
getScopeMappingsStreamStream<RoleModel> getScopeMappingsStream() Returns scope mappings for this scope container as a stream.- Returns:
- Stream of RoleModel. Never returnsnull.
 
 - 
getRealmScopeMappingsStreamStream<RoleModel> getRealmScopeMappingsStream() From the scope mappings returned bygetScopeMappingsStream()returns only those that belong to the realm that owns this scope container.- Returns:
- stream of RoleModel. Never returnsnull.
 
 - 
addScopeMappingvoid addScopeMapping(RoleModel role) 
 - 
deleteScopeMappingvoid deleteScopeMapping(RoleModel role) 
 - 
hasDirectScopedefault boolean hasDirectScope(RoleModel role) Returnstrue, if this object has the given role directly in its scope.- Parameters:
- role- the role
- Returns:
- see description
- See Also:
- if you want to check whether this object has the given role directly or indirectly in its scope
 
 - 
hasScopeboolean hasScope(RoleModel role) Returnstrue, if this object has the given role directly or indirectly in its scope,falseotherwise.- Parameters:
- role- the role
- Returns:
- see description
- See Also:
- if you want to check if this object has the given role directly in its scope
 
 
- 
 
-