public static interface UserModel.Streams extends UserModel, RoleMapperModel.Streams
UserModel.Streams
interface makes all collection-based methods in UserModel
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.UserModel.RequiredAction, UserModel.SearchableFields, UserModel.Streams, UserModel.UserRemovedEvent
COMPARE_BY_USERNAME, DISABLED_REASON, EMAIL, EMAIL_VERIFIED, ENABLED, EXACT, FIRST_NAME, GROUPS, IDP_ALIAS, IDP_USER_ID, INCLUDE_SERVICE_ACCOUNT, LAST_NAME, LOCALE, SEARCH, USERNAME
Modifier and Type | Method and Description |
---|---|
default List<String> |
getAttribute(String name) |
Stream<String> |
getAttributeStream(String name)
Obtains all values associated with the specified attribute name.
|
default Set<GroupModel> |
getGroups() |
Stream<GroupModel> |
getGroupsStream()
Obtains the groups associated with the user.
|
default Set<String> |
getRequiredActions() |
Stream<String> |
getRequiredActionsStream()
Obtains the names of required actions associated with the user.
|
addRequiredAction, addRequiredAction, getAttributes, getCreatedTimestamp, getEmail, getFederationLink, getFirstAttribute, getFirstName, getGroups, getGroups, getGroupsCount, getGroupsCountByNameContaining, getGroupsStream, getId, getLastName, getServiceAccountClientLink, getUsername, isEmailVerified, isEnabled, isMemberOf, joinGroup, leaveGroup, removeAttribute, removeRequiredAction, removeRequiredAction, setAttribute, setCreatedTimestamp, setEmail, setEmailVerified, setEnabled, setFederationLink, setFirstName, setLastName, setServiceAccountClientLink, setSingleAttribute, setUsername
getClientRoleMappings, getClientRoleMappingsStream, getRealmRoleMappings, getRealmRoleMappingsStream, getRoleMappings, getRoleMappingsStream
deleteRoleMapping, grantRole, hasRole
default List<String> getAttribute(String name)
getAttribute
in interface UserModel
Stream<String> getAttributeStream(String name)
UserModel
getAttributeStream
in interface UserModel
name
- the name of the attribute.Stream
of attribute values.default Set<String> getRequiredActions()
getRequiredActions
in interface UserModel
Stream<String> getRequiredActionsStream()
UserModel
getRequiredActionsStream
in interface UserModel
Stream
of required action names.default Set<GroupModel> getGroups()
Stream<GroupModel> getGroupsStream()
UserModel
getGroupsStream
in interface UserModel
Stream
of groups.Copyright © 2021 JBoss by Red Hat. All rights reserved.