public class GroupAdapter extends Object implements GroupModel
| Modifier and Type | Field and Description |
|---|---|
protected CachedGroup |
cached |
protected RealmCacheSession |
cacheSession |
protected boolean |
invalidated |
protected KeycloakSession |
keycloakSession |
protected RealmModel |
realm |
protected GroupModel |
updated |
| Constructor and Description |
|---|
GroupAdapter(CachedGroup cached,
RealmCacheSession cacheSession,
KeycloakSession keycloakSession,
RealmModel realm) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(GroupModel subGroup)
Automatically calls setParent() on the subGroup
|
void |
deleteRoleMapping(RoleModel role) |
boolean |
equals(Object o) |
List<String> |
getAttribute(String name) |
Map<String,List<String>> |
getAttributes() |
Set<RoleModel> |
getClientRoleMappings(ClientModel app) |
protected void |
getDelegateForUpdate() |
String |
getFirstAttribute(String name) |
String |
getId() |
String |
getName() |
GroupModel |
getParent() |
String |
getParentId() |
Set<RoleModel> |
getRealmRoleMappings() |
Set<RoleModel> |
getRoleMappings() |
Set<GroupModel> |
getSubGroups() |
void |
grantRole(RoleModel role) |
int |
hashCode() |
boolean |
hasRole(RoleModel role) |
void |
invalidate() |
protected boolean |
isUpdated() |
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.
|
protected GroupModel updated
protected CachedGroup cached
protected RealmCacheSession cacheSession
protected KeycloakSession keycloakSession
protected RealmModel realm
protected 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)
GroupModelsetSingleAttribute 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 List<String> getAttribute(String name)
getAttribute in interface GroupModelpublic Map<String,List<String>> getAttributes()
getAttributes in interface GroupModelpublic Set<RoleModel> getRealmRoleMappings()
getRealmRoleMappings in interface RoleMapperModelpublic Set<RoleModel> getClientRoleMappings(ClientModel app)
getClientRoleMappings in interface RoleMapperModelpublic boolean hasRole(RoleModel role)
hasRole in interface RoleMapperModelpublic void grantRole(RoleModel role)
grantRole in interface RoleMapperModelpublic Set<RoleModel> getRoleMappings()
getRoleMappings in interface RoleMapperModelpublic void deleteRoleMapping(RoleModel role)
deleteRoleMapping in interface RoleMapperModelpublic GroupModel getParent()
getParent in interface GroupModelpublic String getParentId()
getParentId in interface GroupModelpublic Set<GroupModel> getSubGroups()
getSubGroups in interface GroupModelpublic void setParent(GroupModel group)
GroupModelsetParent in interface GroupModelpublic void addChild(GroupModel subGroup)
GroupModeladdChild in interface GroupModelpublic void removeChild(GroupModel subGroup)
GroupModelremoveChild in interface GroupModelCopyright © 2016 JBoss by Red Hat. All rights reserved.