public static interface UserAttributeFederatedStorage.Streams extends UserAttributeFederatedStorage
UserAttributeFederatedStorage.Streams
interface makes all collection-based methods in UserAttributeFederatedStorage
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.UserAttributeFederatedStorage.Streams
Modifier and Type | Method and Description |
---|---|
default List<String> |
getUsersByUserAttribute(RealmModel realm,
String name,
String value) |
Stream<String> |
getUsersByUserAttributeStream(RealmModel realm,
String name,
String value)
Searches for federated users that have an attribute with the specified
name and value . |
getAttributes, removeAttribute, setAttribute, setSingleAttribute
default List<String> getUsersByUserAttribute(RealmModel realm, String name, String value)
getUsersByUserAttribute
in interface UserAttributeFederatedStorage
Stream<String> getUsersByUserAttributeStream(RealmModel realm, String name, String value)
UserAttributeFederatedStorage
name
and value
.getUsersByUserAttributeStream
in interface UserAttributeFederatedStorage
realm
- a reference to the realm.name
- the attribute name.value
- the attribute value.Stream
of users that match the search criteria.Copyright © 2021 JBoss by Red Hat. All rights reserved.