Package org.keycloak.models
Interface ScopeContainerModel
- All Known Subinterfaces:
ClientModel,ClientScopeModel
- All Known Implementing Classes:
AbstractClientStorageAdapter,AbstractReadOnlyClientScopeAdapter,AbstractReadOnlyClientStorageAdapter,ClientAdapter,ClientAdapter,ClientModelLazyDelegate,ClientModelLazyDelegate.WithId,ClientScopeAdapter,ClientScopeAdapter,ClientScopeDecorator,CredentialScopeModel,OIDCClientSecretConfigWrapper.ReadOnlyRotatedSecretClientModel,TypeAwareClientModelDelegate,UnsupportedOperationsClientStorageAdapter
public interface ScopeContainerModel
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddScopeMapping(RoleModel role) voiddeleteScopeMapping(RoleModel role) From the scope mappings returned bygetScopeMappingsStream()returns only those that belong to the realm that owns this scope container.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.booleanReturnstrue, if this object has the given role directly or indirectly in its scope,falseotherwise.
-
Method Details
-
getScopeMappingsStream
Returns scope mappings for this scope container as a stream.- Returns:
- Stream of
RoleModel. Never returnsnull.
-
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.
-
addScopeMapping
-
deleteScopeMapping
-
hasDirectScope
Returnstrue, if this object has the given role directly in its scope.- Parameters:
role- the role- Returns:
- see description
- See Also:
-
hasScope
Returnstrue, if this object has the given role directly or indirectly in its scope,falseotherwise.- Parameters:
role- the role- Returns:
- see description
- See Also:
-