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
,UnsupportedOperationsClientStorageAdapter
public interface ScopeContainerModel
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addScopeMapping
(RoleModel role) void
deleteScopeMapping
(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 boolean
hasDirectScope
(RoleModel role) Returnstrue
, if this object has the given role directly in its scope.boolean
Returnstrue
, if this object has the given role directly or indirectly in its scope,false
otherwise.
-
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,false
otherwise.- Parameters:
role
- the role- Returns:
- see description
- See Also:
-