Package org.keycloak.storage.federated
Interface UserAttributeFederatedStorage
-
- All Known Subinterfaces:
UserAttributeFederatedStorage.Streams,UserFederatedStorageProvider,UserFederatedStorageProvider.Streams
- All Known Implementing Classes:
JpaUserFederatedStorageProvider
public interface UserAttributeFederatedStorage- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUserAttributeFederatedStorage.StreamsTheUserAttributeFederatedStorage.Streamsinterface makes all collection-based methods inUserAttributeFederatedStoragedefault by providing implementations that delegate to theStream-based variants instead of the other way around.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description MultivaluedHashMap<String,String>getAttributes(RealmModel realm, String userId)List<String>getUsersByUserAttribute(RealmModel realm, String name, String value)Deprecated.UsegetUsersByUserAttributeStreaminstead.default Stream<String>getUsersByUserAttributeStream(RealmModel realm, String name, String value)Searches for federated users that have an attribute with the specifiednameandvalue.voidremoveAttribute(RealmModel realm, String userId, String name)voidsetAttribute(RealmModel realm, String userId, String name, List<String> values)voidsetSingleAttribute(RealmModel realm, String userId, String name, String value)
-
-
-
Method Detail
-
setSingleAttribute
void setSingleAttribute(RealmModel realm, String userId, String name, String value)
-
setAttribute
void setAttribute(RealmModel realm, String userId, String name, List<String> values)
-
removeAttribute
void removeAttribute(RealmModel realm, String userId, String name)
-
getAttributes
MultivaluedHashMap<String,String> getAttributes(RealmModel realm, String userId)
-
getUsersByUserAttribute
@Deprecated List<String> getUsersByUserAttribute(RealmModel realm, String name, String value)
Deprecated.UsegetUsersByUserAttributeStreaminstead.
-
getUsersByUserAttributeStream
default Stream<String> getUsersByUserAttributeStream(RealmModel realm, String name, String value)
Searches for federated users that have an attribute with the specifiednameandvalue.- 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.
-
-