public interface ScopeContainerModel
| Modifier and Type | Method and Description |
|---|---|
void |
addScopeMapping(RoleModel role) |
void |
deleteScopeMapping(RoleModel role) |
default Set<RoleModel> |
getRealmScopeMappings()
Deprecated.
Use
getRealmScopeMappingsStream instead. |
Stream<RoleModel> |
getRealmScopeMappingsStream()
From the scope mappings returned by
getScopeMappingsStream() returns only those
that belong to the realm that owns this scope container. |
default Set<RoleModel> |
getScopeMappings()
Deprecated.
Use
getScopeMappingsStream instead. |
Stream<RoleModel> |
getScopeMappingsStream()
Returns scope mappings for this scope container as a stream.
|
default boolean |
hasDirectScope(RoleModel role)
Returns
true, if this object has the given role directly in its scope. |
boolean |
hasScope(RoleModel role)
Returns
true, if this object has the given role directly or indirectly in its scope, false
otherwise. |
@Deprecated default Set<RoleModel> getScopeMappings()
getScopeMappingsStream instead.Stream<RoleModel> getScopeMappingsStream()
RoleModel. Never returns null.@Deprecated default Set<RoleModel> getRealmScopeMappings()
getRealmScopeMappingsStream instead.getScopeMappings() returns only those
that belong to the realm that owns this scope container.RealmModelStream<RoleModel> getRealmScopeMappingsStream()
getScopeMappingsStream() returns only those
that belong to the realm that owns this scope container.RoleModel. Never returns null.void addScopeMapping(RoleModel role)
void deleteScopeMapping(RoleModel role)
default boolean hasDirectScope(RoleModel role)
true, if this object has the given role directly in its scope.role - the roleif you want to check whether this object has the given role directly or indirectly in
its scopeboolean hasScope(RoleModel role)
true, if this object has the given role directly or indirectly in its scope, false
otherwise.role - the roleif you want to check if this object has the given role directly in its scopeCopyright © 2025 JBoss by Red Hat. All rights reserved.