Class GroupAdapter
java.lang.Object
org.keycloak.models.cache.infinispan.GroupAdapter
- All Implemented Interfaces:
GroupModel,RoleMapperModel
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.GroupModel
GroupModel.GroupPathChangeEvent, GroupModel.GroupRemovedEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CachedGroupprotected final RealmCacheSessionprotected booleanprotected final KeycloakSessionprotected final RealmModelprotected GroupModelFields inherited from interface org.keycloak.models.GroupModel
COMPARE_BY_NAME -
Constructor Summary
ConstructorsConstructorDescriptionGroupAdapter(CachedGroup cached, RealmCacheSession cacheSession, KeycloakSession keycloakSession, RealmModel realm) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(GroupModel subGroup) voiddeleteRoleMapping(RoleModel role) booleangetAttributeStream(String name) protected voidgetFirstAttribute(String name) getId()getName()getSubGroupsStream(Integer firstResult, Integer maxResults) getSubGroupsStream(String search, Boolean exact, Integer firstResult, Integer maxResults) getSubGroupsStream(String search, Integer firstResult, Integer maxResults) voidbooleanhasDirectRole(RoleModel role) inthashCode()booleanvoidprotected booleanvoidremoveAttribute(String name) voidremoveChild(GroupModel subGroup) voidsetAttribute(String name, List<String> values) voidvoidsetParent(GroupModel group) voidsetSingleAttribute(String name, String value)
-
Field Details
-
cached
-
cacheSession
-
keycloakSession
-
realm
-
updated
-
invalidated
protected volatile boolean invalidated
-
-
Constructor Details
-
GroupAdapter
public GroupAdapter(CachedGroup cached, RealmCacheSession cacheSession, KeycloakSession keycloakSession, RealmModel realm)
-
-
Method Details
-
getDelegateForUpdate
protected void getDelegateForUpdate() -
invalidate
public void invalidate() -
isUpdated
protected boolean isUpdated() -
equals
-
hashCode
public int hashCode() -
getId
- Specified by:
getIdin interfaceGroupModel
-
getName
- Specified by:
getNamein interfaceGroupModel
-
setName
- Specified by:
setNamein interfaceGroupModel
-
setSingleAttribute
- Specified by:
setSingleAttributein interfaceGroupModel
-
setAttribute
- Specified by:
setAttributein interfaceGroupModel
-
removeAttribute
- Specified by:
removeAttributein interfaceGroupModel
-
getFirstAttribute
- Specified by:
getFirstAttributein interfaceGroupModel
-
getAttributeStream
- Specified by:
getAttributeStreamin interfaceGroupModel
-
getAttributes
- Specified by:
getAttributesin interfaceGroupModel
-
getRealmRoleMappingsStream
- Specified by:
getRealmRoleMappingsStreamin interfaceRoleMapperModel
-
getClientRoleMappingsStream
- Specified by:
getClientRoleMappingsStreamin interfaceRoleMapperModel
-
hasDirectRole
- Specified by:
hasDirectRolein interfaceRoleMapperModel
-
hasRole
- Specified by:
hasRolein interfaceRoleMapperModel
-
grantRole
- Specified by:
grantRolein interfaceRoleMapperModel
-
getRoleMappingsStream
- Specified by:
getRoleMappingsStreamin interfaceRoleMapperModel
-
deleteRoleMapping
- Specified by:
deleteRoleMappingin interfaceRoleMapperModel
-
getParent
- Specified by:
getParentin interfaceGroupModel
-
getParentId
- Specified by:
getParentIdin interfaceGroupModel
-
getSubGroupsStream
- Specified by:
getSubGroupsStreamin interfaceGroupModel
-
getSubGroupsStream
public Stream<GroupModel> getSubGroupsStream(String search, Integer firstResult, Integer maxResults) - Specified by:
getSubGroupsStreamin interfaceGroupModel
-
getSubGroupsStream
- Specified by:
getSubGroupsStreamin interfaceGroupModel
-
getSubGroupsStream
public Stream<GroupModel> getSubGroupsStream(String search, Boolean exact, Integer firstResult, Integer maxResults) - Specified by:
getSubGroupsStreamin interfaceGroupModel
-
getSubGroupsCount
- Specified by:
getSubGroupsCountin interfaceGroupModel
-
setParent
- Specified by:
setParentin interfaceGroupModel
-
addChild
- Specified by:
addChildin interfaceGroupModel
-
removeChild
- Specified by:
removeChildin interfaceGroupModel
-