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.Streamsinterface makes all collection-based methods inUserAttributeFederatedStoragedefault 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 specifiednameandvalue.-
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:
getUsersByUserAttributein interfaceUserAttributeFederatedStorage
-
getUsersByUserAttributeStream
Stream<String> getUsersByUserAttributeStream(RealmModel realm, String name, String value)
Description copied from interface:UserAttributeFederatedStorageSearches for federated users that have an attribute with the specifiednameandvalue.- Specified by:
getUsersByUserAttributeStreamin interfaceUserAttributeFederatedStorage- Parameters:
realm- a reference to the realm.name- the attribute name.value- the attribute value.- Returns:
- a non-null
Streamof users that match the search criteria.
-
-