public interface RoleMapperModel
Modifier and Type | Interface and Description |
---|---|
static interface |
RoleMapperModel.Streams
The
RoleMapperModel.Streams interface makes all collection-based methods in RoleMapperModel default by providing
implementations that delegate to the Stream -based variants instead of the other way around. |
Modifier and Type | Method and Description |
---|---|
void |
deleteRoleMapping(RoleModel role)
Removes the given role mapping from this object.
|
Set<RoleModel> |
getClientRoleMappings(ClientModel app)
Deprecated.
Use
getClientRoleMappingsStream instead. |
default Stream<RoleModel> |
getClientRoleMappingsStream(ClientModel app)
Returns stream of client roles that are directly set to this object for the given client.
|
Set<RoleModel> |
getRealmRoleMappings()
Deprecated.
Use
getRealmRoleMappingsStream instead. |
default Stream<RoleModel> |
getRealmRoleMappingsStream()
Returns stream of realm roles that are directly set to this object.
|
Set<RoleModel> |
getRoleMappings()
Deprecated.
Use
getRoleMappingsStream instead. |
default Stream<RoleModel> |
getRoleMappingsStream()
Returns stream of all role (both realm all client) that are directly set to this object.
|
void |
grantRole(RoleModel role)
Grants the given role to this object.
|
boolean |
hasRole(RoleModel role)
Returns
true if this object is directly or indirectly assigned the given role, false otherwise. |
@Deprecated Set<RoleModel> getRealmRoleMappings()
getRealmRoleMappingsStream
instead.default Stream<RoleModel> getRealmRoleMappingsStream()
RoleModel
. Never returns null
.@Deprecated Set<RoleModel> getClientRoleMappings(ClientModel app)
getClientRoleMappingsStream
instead.app
- Client to get the roles fordefault Stream<RoleModel> getClientRoleMappingsStream(ClientModel app)
app
- ClientModel
Client to get the roles for.RoleModel
. Never returns null
.boolean hasRole(RoleModel role)
true
if this object is directly or indirectly assigned the given role, false
otherwise.
For example, true
is returned for hasRole(R) if:
role
- void grantRole(RoleModel role)
role
- @Deprecated Set<RoleModel> getRoleMappings()
getRoleMappingsStream
instead.default Stream<RoleModel> getRoleMappingsStream()
RoleModel
. Never returns null
.void deleteRoleMapping(RoleModel role)
role
- Role to removeCopyright © 2021 JBoss by Red Hat. All rights reserved.