Package org.keycloak.storage.federated
Interface UserAttributeFederatedStorage.Streams
-
- All Superinterfaces:
UserAttributeFederatedStorage
- All Known Subinterfaces:
UserFederatedStorageProvider.Streams
- All Known Implementing Classes:
JpaUserFederatedStorageProvider
- Enclosing interface:
- UserAttributeFederatedStorage
public static interface UserAttributeFederatedStorage.Streams extends UserAttributeFederatedStorage
TheUserAttributeFederatedStorage.Streams
interface makes all collection-based methods inUserAttributeFederatedStorage
default by providing implementations that delegate to theStream
-based variants instead of the other way around. It allows for implementations to focus on theStream
-based approach for processing sets of data and benefit from the potential memory and performance optimizations of that approach.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.storage.federated.UserAttributeFederatedStorage
UserAttributeFederatedStorage.Streams
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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 specifiedname
andvalue
.-
Methods inherited from interface org.keycloak.storage.federated.UserAttributeFederatedStorage
getAttributes, removeAttribute, setAttribute, setSingleAttribute
-
-
-
-
Method Detail
-
getUsersByUserAttribute
default List<String> getUsersByUserAttribute(RealmModel realm, String name, String value)
- Specified by:
getUsersByUserAttribute
in interfaceUserAttributeFederatedStorage
-
getUsersByUserAttributeStream
Stream<String> getUsersByUserAttributeStream(RealmModel realm, String name, String value)
Description copied from interface:UserAttributeFederatedStorage
Searches for federated users that have an attribute with the specifiedname
andvalue
.- Specified by:
getUsersByUserAttributeStream
in interfaceUserAttributeFederatedStorage
- Parameters:
realm
- a reference to the realm.name
- the attribute name.value
- the attribute value.- Returns:
- a non-null
Stream
of users that match the search criteria.
-
-