Package org.keycloak.models.map.group
Class MapGroupAdapter
- java.lang.Object
-
- org.keycloak.models.map.group.AbstractGroupModel<MapGroupEntity>
-
- org.keycloak.models.map.group.MapGroupAdapter
-
- All Implemented Interfaces:
GroupModel,RoleMapperModel
public abstract class MapGroupAdapter extends AbstractGroupModel<MapGroupEntity>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.GroupModel
GroupModel.GroupPathChangeEvent, GroupModel.GroupRemovedEvent, GroupModel.SearchableFields, GroupModel.Streams
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.group.AbstractGroupModel
entity, realm, session
-
Fields inherited from interface org.keycloak.models.GroupModel
COMPARE_BY_NAME
-
-
Constructor Summary
Constructors Constructor Description MapGroupAdapter(KeycloakSession session, RealmModel realm, MapGroupEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(GroupModel subGroup)voiddeleteRoleMapping(RoleModel role)Map<String,List<String>>getAttributes()Stream<String>getAttributeStream(String name)Stream<RoleModel>getClientRoleMappingsStream(ClientModel app)StringgetFirstAttribute(String name)StringgetId()StringgetName()GroupModelgetParent()StringgetParentId()Stream<RoleModel>getRealmRoleMappingsStream()Stream<RoleModel>getRoleMappingsStream()voidgrantRole(RoleModel role)booleanhasDirectRole(RoleModel role)booleanhasRole(RoleModel role)voidremoveAttribute(String name)voidremoveChild(GroupModel subGroup)voidsetAttribute(String name, List<String> values)voidsetName(String name)voidsetParent(GroupModel group)voidsetSingleAttribute(String name, String value)-
Methods inherited from class org.keycloak.models.map.group.AbstractGroupModel
equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.GroupModel
getSubGroupsStream
-
-
-
-
Constructor Detail
-
MapGroupAdapter
public MapGroupAdapter(KeycloakSession session, RealmModel realm, MapGroupEntity entity)
-
-
Method Detail
-
getId
public String getId()
-
getName
public String getName()
-
setName
public void setName(String name)
-
removeAttribute
public void removeAttribute(String name)
-
getParent
public GroupModel getParent()
-
getParentId
public String getParentId()
-
setParent
public void setParent(GroupModel group)
-
addChild
public void addChild(GroupModel subGroup)
-
removeChild
public void removeChild(GroupModel subGroup)
-
getClientRoleMappingsStream
public Stream<RoleModel> getClientRoleMappingsStream(ClientModel app)
-
hasDirectRole
public boolean hasDirectRole(RoleModel role)
-
hasRole
public boolean hasRole(RoleModel role)
-
grantRole
public void grantRole(RoleModel role)
-
deleteRoleMapping
public void deleteRoleMapping(RoleModel role)
-
-