public static interface UserRequiredActionsFederatedStorage.Streams extends UserRequiredActionsFederatedStorage
UserRequiredActionsFederatedStorage.Streams
interface makes all collection-based methods in UserRequiredActionsFederatedStorage
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.UserRequiredActionsFederatedStorage.Streams
Modifier and Type | Method and Description |
---|---|
default Set<String> |
getRequiredActions(RealmModel realm,
String userId) |
Stream<String> |
getRequiredActionsStream(RealmModel realm,
String userId)
Obtains the names of required actions associated with the federated user identified by
userId . |
addRequiredAction, removeRequiredAction
default Set<String> getRequiredActions(RealmModel realm, String userId)
getRequiredActions
in interface UserRequiredActionsFederatedStorage
Stream<String> getRequiredActionsStream(RealmModel realm, String userId)
UserRequiredActionsFederatedStorage
userId
.getRequiredActionsStream
in interface UserRequiredActionsFederatedStorage
realm
- a reference to the realm.userId
- the user identifier.Stream
of required action names.Copyright © 2021 JBoss by Red Hat. All rights reserved.