public interface UserRoleMappingsFederatedStorage
Modifier and Type | Interface and Description |
---|---|
static interface |
UserRoleMappingsFederatedStorage.Streams
The
UserRoleMappingsFederatedStorage.Streams interface makes all collection-based methods in UserRoleMappingsFederatedStorage
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(RealmModel realm,
String userId,
RoleModel role) |
Set<RoleModel> |
getRoleMappings(RealmModel realm,
String userId)
Deprecated.
Use
getRoleMappingsStream instead. |
default Stream<RoleModel> |
getRoleMappingsStream(RealmModel realm,
String userId)
Obtains the roles associated with the federated user identified by
userId . |
void |
grantRole(RealmModel realm,
String userId,
RoleModel role) |
@Deprecated Set<RoleModel> getRoleMappings(RealmModel realm, String userId)
getRoleMappingsStream
instead.void grantRole(RealmModel realm, String userId, RoleModel role)
default Stream<RoleModel> getRoleMappingsStream(RealmModel realm, String userId)
userId
.realm
- a reference to the realm.userId
- the user identifier.Stream
of roles.void deleteRoleMapping(RealmModel realm, String userId, RoleModel role)
Copyright © 2021 JBoss by Red Hat. All rights reserved.