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, updateConsent
default List<UserConsentModel> getConsents(RealmModel realm, String userId)
getConsents
in interface UserConsentFederatedStorage
Stream<UserConsentModel> getConsentsStream(RealmModel realm, String userId)
UserConsentFederatedStorage
userId
.getConsentsStream
in interface UserConsentFederatedStorage
realm
- 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.