public static interface UserRoleMappingsFederatedStorage.Streams extends UserRoleMappingsFederatedStorage
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.
It allows for implementations to focus on the Stream-based approach for processing sets of data and benefit
from the potential memory and performance optimizations of that approach.UserRoleMappingsFederatedStorage.Streams| Modifier and Type | Method and Description |
|---|---|
default Set<RoleModel> |
getRoleMappings(RealmModel realm,
String userId) |
Stream<RoleModel> |
getRoleMappingsStream(RealmModel realm,
String userId)
Obtains the roles associated with the federated user identified by
userId. |
deleteRoleMapping, grantRoledefault Set<RoleModel> getRoleMappings(RealmModel realm, String userId)
getRoleMappings in interface UserRoleMappingsFederatedStorageStream<RoleModel> getRoleMappingsStream(RealmModel realm, String userId)
UserRoleMappingsFederatedStorageuserId.getRoleMappingsStream in interface UserRoleMappingsFederatedStoragerealm - a reference to the realm.userId - the user identifier.Stream of roles.Copyright © 2021 JBoss by Red Hat. All rights reserved.