public static interface GroupModel.Streams extends GroupModel, RoleMapperModel.Streams
GroupModel.Streams
interface makes all collection-based methods in GroupModel
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.GroupModel.GroupRemovedEvent, GroupModel.SearchableFields, GroupModel.Streams
COMPARE_BY_NAME
Modifier and Type | Method and Description |
---|---|
default List<String> |
getAttribute(String name) |
Stream<String> |
getAttributeStream(String name)
Returns group attributes that match the given name as a stream.
|
default Set<GroupModel> |
getSubGroups() |
Stream<GroupModel> |
getSubGroupsStream()
Returns all sub groups for the parent group as a stream.
|
addChild, getAttributes, getFirstAttribute, getId, getName, getParent, getParentId, removeAttribute, removeChild, setAttribute, setName, setParent, setSingleAttribute
getClientRoleMappings, getClientRoleMappingsStream, getRealmRoleMappings, getRealmRoleMappingsStream, getRoleMappings, getRoleMappingsStream
deleteRoleMapping, grantRole, hasRole
default List<String> getAttribute(String name)
getAttribute
in interface GroupModel
Stream<String> getAttributeStream(String name)
GroupModel
getAttributeStream
in interface GroupModel
name
- String
Name of the attribute to be used as a filter.null
.default Set<GroupModel> getSubGroups()
getSubGroups
in interface GroupModel
Stream<GroupModel> getSubGroupsStream()
GroupModel
getSubGroupsStream
in interface GroupModel
GroupModel
. Never returns null
.Copyright © 2021 JBoss by Red Hat. All rights reserved.