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(ClientModel) 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() getRealmRoleMappingsStream} instead. |
default Stream<RoleModel> |
getRealmRoleMappingsStream()
Returns stream of realm roles that are directly set to this object.
|
Set<RoleModel> |
getRoleMappings()
Deprecated.
Use
getRoleMappingsStream() 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()
getRealmRoleMappingsStream} instead.default Stream<RoleModel> getRealmRoleMappingsStream()
RoleModel
@Deprecated Set<RoleModel> getClientRoleMappings(ClientModel app)
getClientRoleMappingsStream(ClientModel)
getClientRoleMappingsStream} instead.app
- Client to get the roles fordefault Stream<RoleModel> getClientRoleMappingsStream(ClientModel app)
app
- Client to get the roles forRoleModel
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()
getRoleMappingsStream} instead.default Stream<RoleModel> getRoleMappingsStream()
RoleModel
void deleteRoleMapping(RoleModel role)
role
- Role to removeCopyright © 2020 JBoss by Red Hat. All rights reserved.