public class GroupAdapter extends Object implements GroupModel.Streams
GroupModel.GroupRemovedEvent, 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, waitgetAttribute, getSubGroupsgetClientRoleMappings, getRealmRoleMappings, getRoleMappingsprotected 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 GroupModelpublic String getName()
getName in interface GroupModelpublic void setName(String name)
setName in interface GroupModelpublic void setSingleAttribute(String name, String value)
setSingleAttribute in interface GroupModelpublic void setAttribute(String name, List<String> values)
setAttribute in interface GroupModelpublic void removeAttribute(String name)
removeAttribute in interface GroupModelpublic String getFirstAttribute(String name)
getFirstAttribute in interface GroupModelpublic Stream<String> getAttributeStream(String name)
getAttributeStream in interface GroupModelgetAttributeStream in interface GroupModel.Streamspublic Map<String,List<String>> getAttributes()
getAttributes in interface GroupModelpublic Stream<RoleModel> getRealmRoleMappingsStream()
getRealmRoleMappingsStream in interface RoleMapperModelgetRealmRoleMappingsStream in interface RoleMapperModel.Streamspublic Stream<RoleModel> getClientRoleMappingsStream(ClientModel app)
getClientRoleMappingsStream in interface RoleMapperModelgetClientRoleMappingsStream in interface RoleMapperModel.Streamspublic boolean hasRole(RoleModel role)
hasRole in interface RoleMapperModelpublic void grantRole(RoleModel role)
grantRole in interface RoleMapperModelpublic Stream<RoleModel> getRoleMappingsStream()
getRoleMappingsStream in interface RoleMapperModelgetRoleMappingsStream in interface RoleMapperModel.Streamspublic void deleteRoleMapping(RoleModel role)
deleteRoleMapping in interface RoleMapperModelpublic GroupModel getParent()
getParent in interface GroupModelpublic String getParentId()
getParentId in interface GroupModelpublic Stream<GroupModel> getSubGroupsStream()
getSubGroupsStream in interface GroupModelgetSubGroupsStream in interface GroupModel.Streamspublic void setParent(GroupModel group)
setParent in interface GroupModelpublic void addChild(GroupModel subGroup)
addChild in interface GroupModelpublic void removeChild(GroupModel subGroup)
removeChild in interface GroupModelCopyright © 2020 JBoss by Red Hat. All rights reserved.