public class GroupAdapter extends Object implements GroupModel.Streams
GroupModel.GroupRemovedEvent, GroupModel.SearchableFields, GroupModel.Streams
Modifier and Type | Field and Description |
---|---|
protected CachedGroup |
cached |
protected RealmCacheSession |
cacheSession |
protected boolean |
invalidated |
protected KeycloakSession |
keycloakSession |
protected RealmModel |
realm |
protected GroupModel |
updated |
COMPARE_BY_NAME
Constructor and Description |
---|
GroupAdapter(CachedGroup cached,
RealmCacheSession cacheSession,
KeycloakSession keycloakSession,
RealmModel realm) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(GroupModel subGroup) |
void |
deleteRoleMapping(RoleModel role) |
boolean |
equals(Object o) |
Map<String,List<String>> |
getAttributes() |
Stream<String> |
getAttributeStream(String name) |
Stream<RoleModel> |
getClientRoleMappingsStream(ClientModel app) |
protected void |
getDelegateForUpdate() |
String |
getFirstAttribute(String name) |
String |
getId() |
String |
getName() |
GroupModel |
getParent() |
String |
getParentId() |
Stream<RoleModel> |
getRealmRoleMappingsStream() |
Stream<RoleModel> |
getRoleMappingsStream() |
Stream<GroupModel> |
getSubGroupsStream() |
void |
grantRole(RoleModel role) |
int |
hashCode() |
boolean |
hasRole(RoleModel role) |
void |
invalidate() |
protected boolean |
isUpdated() |
void |
removeAttribute(String name) |
void |
removeChild(GroupModel subGroup) |
void |
setAttribute(String name,
List<String> values) |
void |
setName(String name) |
void |
setParent(GroupModel group) |
void |
setSingleAttribute(String name,
String value) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAttribute, getSubGroups
getClientRoleMappings, getRealmRoleMappings, getRoleMappings
protected final CachedGroup cached
protected final RealmCacheSession cacheSession
protected final KeycloakSession keycloakSession
protected final RealmModel realm
protected volatile GroupModel updated
protected volatile boolean invalidated
public GroupAdapter(CachedGroup cached, RealmCacheSession cacheSession, KeycloakSession keycloakSession, RealmModel realm)
protected void getDelegateForUpdate()
public void invalidate()
protected boolean isUpdated()
public String getId()
getId
in interface GroupModel
public String getName()
getName
in interface GroupModel
public void setName(String name)
setName
in interface GroupModel
public void setSingleAttribute(String name, String value)
setSingleAttribute
in interface GroupModel
public void setAttribute(String name, List<String> values)
setAttribute
in interface GroupModel
public void removeAttribute(String name)
removeAttribute
in interface GroupModel
public String getFirstAttribute(String name)
getFirstAttribute
in interface GroupModel
public Stream<String> getAttributeStream(String name)
getAttributeStream
in interface GroupModel
getAttributeStream
in interface GroupModel.Streams
public Map<String,List<String>> getAttributes()
getAttributes
in interface GroupModel
public Stream<RoleModel> getRealmRoleMappingsStream()
getRealmRoleMappingsStream
in interface RoleMapperModel
getRealmRoleMappingsStream
in interface RoleMapperModel.Streams
public Stream<RoleModel> getClientRoleMappingsStream(ClientModel app)
getClientRoleMappingsStream
in interface RoleMapperModel
getClientRoleMappingsStream
in interface RoleMapperModel.Streams
public boolean hasRole(RoleModel role)
hasRole
in interface RoleMapperModel
public void grantRole(RoleModel role)
grantRole
in interface RoleMapperModel
public Stream<RoleModel> getRoleMappingsStream()
getRoleMappingsStream
in interface RoleMapperModel
getRoleMappingsStream
in interface RoleMapperModel.Streams
public void deleteRoleMapping(RoleModel role)
deleteRoleMapping
in interface RoleMapperModel
public GroupModel getParent()
getParent
in interface GroupModel
public String getParentId()
getParentId
in interface GroupModel
public Stream<GroupModel> getSubGroupsStream()
getSubGroupsStream
in interface GroupModel
getSubGroupsStream
in interface GroupModel.Streams
public void setParent(GroupModel group)
setParent
in interface GroupModel
public void addChild(GroupModel subGroup)
addChild
in interface GroupModel
public void removeChild(GroupModel subGroup)
removeChild
in interface GroupModel
Copyright © 2021 JBoss by Red Hat. All rights reserved.