public static interface UserConsentFederatedStorage.Streams extends UserConsentFederatedStorage
UserConsentFederatedStorage.Streams interface makes all collection-based methods in UserConsentFederatedStorage
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.UserConsentFederatedStorage.Streams| Modifier and Type | Method and Description |
|---|---|
default List<UserConsentModel> |
getConsents(RealmModel realm,
String userId) |
Stream<UserConsentModel> |
getConsentsStream(RealmModel realm,
String userId)
Obtains the consents associated with the federated user identified by
userId. |
addConsent, getConsentByClient, revokeConsentForClient, updateConsentdefault List<UserConsentModel> getConsents(RealmModel realm, String userId)
getConsents in interface UserConsentFederatedStorageStream<UserConsentModel> getConsentsStream(RealmModel realm, String userId)
UserConsentFederatedStorageuserId.getConsentsStream in interface UserConsentFederatedStoragerealm - a reference to the realm.userId - the user identifier.Stream of consents associated with the user.Copyright © 2021 JBoss by Red Hat. All rights reserved.