public interface GroupModel extends RoleMapperModel
Modifier and Type | Interface and Description |
---|---|
static interface |
GroupModel.GroupRemovedEvent |
static class |
GroupModel.SearchableFields |
static interface |
GroupModel.Streams
The
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. |
Modifier and Type | Field and Description |
---|---|
static Comparator<GroupModel> |
COMPARE_BY_NAME |
Modifier and Type | Method and Description |
---|---|
void |
addChild(GroupModel subGroup)
Automatically calls setParent() on the subGroup
|
List<String> |
getAttribute(String name)
Deprecated.
Use
getAttributeStream instead. |
Map<String,List<String>> |
getAttributes() |
default Stream<String> |
getAttributeStream(String name)
Returns group attributes that match the given name as a stream.
|
String |
getFirstAttribute(String name) |
String |
getId() |
String |
getName() |
GroupModel |
getParent() |
String |
getParentId() |
Set<GroupModel> |
getSubGroups()
Deprecated.
Use
getSubGroupsStream instead. |
default Stream<GroupModel> |
getSubGroupsStream()
Returns all sub groups for the parent group as a stream.
|
void |
removeAttribute(String name) |
void |
removeChild(GroupModel subGroup)
Automatically calls setParent() on the subGroup
|
void |
setAttribute(String name,
List<String> values) |
void |
setName(String name) |
void |
setParent(GroupModel group)
You must also call addChild on the parent group, addChild on RealmModel if there is no parent group
|
void |
setSingleAttribute(String name,
String value)
Set single value of specified attribute.
|
deleteRoleMapping, getClientRoleMappings, getClientRoleMappingsStream, getRealmRoleMappings, getRealmRoleMappingsStream, getRoleMappings, getRoleMappingsStream, grantRole, hasRole
static final Comparator<GroupModel> COMPARE_BY_NAME
String getId()
String getName()
void setName(String name)
void setSingleAttribute(String name, String value)
name
- value
- void removeAttribute(String name)
String getFirstAttribute(String name)
name
- @Deprecated List<String> getAttribute(String name)
getAttributeStream
instead.name
- default Stream<String> getAttributeStream(String name)
name
- String
Name of the attribute to be used as a filter.null
.GroupModel getParent()
String getParentId()
@Deprecated Set<GroupModel> getSubGroups()
getSubGroupsStream
instead.default Stream<GroupModel> getSubGroupsStream()
GroupModel
. Never returns null
.void setParent(GroupModel group)
group
- void addChild(GroupModel subGroup)
subGroup
- void removeChild(GroupModel subGroup)
subGroup
- Copyright © 2021 JBoss by Red Hat. All rights reserved.