Class GroupLDAPStorageMapper.LDAPGroupMappingsUserDelegate
java.lang.Object
org.keycloak.models.utils.UserModelDelegate
org.keycloak.storage.ldap.mappers.membership.group.GroupLDAPStorageMapper.LDAPGroupMappingsUserDelegate
- All Implemented Interfaces:
RoleMapperModel,UserModel
- Enclosing class:
- GroupLDAPStorageMapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.UserModel
UserModel.RequiredAction, UserModel.UserPreRemovedEvent, UserModel.UserRemovedEvent -
Field Summary
Fields inherited from class org.keycloak.models.utils.UserModelDelegate
delegateFields inherited from interface org.keycloak.models.UserModel
COMPARE_BY_USERNAME, DISABLED_REASON, EMAIL, EMAIL_PENDING, EMAIL_VERIFIED, ENABLED, EXACT, FIRST_NAME, GROUPS, IDP_ALIAS, IDP_USER_ID, INCLUDE_SERVICE_ACCOUNT, IS_TEMP_ADMIN_ATTR_NAME, LAST_NAME, LOCALE, SEARCH, USERNAME -
Constructor Summary
ConstructorsConstructorDescriptionLDAPGroupMappingsUserDelegate(RealmModel realm, UserModel user, LDAPObject ldapUser) -
Method Summary
Modifier and TypeMethodDescriptionObtains the groups associated with the user.protected Stream<GroupModel>booleanReturnstrueif this object is directly or indirectly assigned the given role,falseotherwise.booleanisMemberOf(GroupModel group) voidjoinGroup(GroupModel group) voidleaveGroup(GroupModel group) Methods inherited from class org.keycloak.models.utils.UserModelDelegate
addRequiredAction, addRequiredAction, credentialManager, deleteRoleMapping, equals, getAttributes, getAttributeStream, getClientRoleMappingsStream, getCreatedTimestamp, getDelegate, getEmail, getFederationLink, getFirstAttribute, getFirstName, getId, getLastName, getRealmRoleMappingsStream, getRequiredActionsStream, getRoleMappingsStream, getServiceAccountClientLink, getUsername, grantRole, hashCode, isEmailVerified, isEnabled, removeAttribute, removeRequiredAction, removeRequiredAction, setAttribute, setCreatedTimestamp, setEmail, setEmailVerified, setEnabled, setFederationLink, setFirstName, setLastName, setServiceAccountClientLink, setSingleAttribute, setUsernameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.RoleMapperModel
hasDirectRoleMethods inherited from interface org.keycloak.models.UserModel
getGroupsCount, getGroupsCountByNameContaining, getGroupsStream, isFederated, joinGroup
-
Constructor Details
-
LDAPGroupMappingsUserDelegate
-
-
Method Details
-
hasRole
Description copied from interface:RoleMapperModelReturnstrueif this object is directly or indirectly assigned the given role,falseotherwise.For example,
trueis returned for hasRole(R) if:- R is directly assigned to this object
- R is indirectly assigned to this object via composites
- R is not assigned to this object but this object belongs to a group G which is assigned the role R
- R is not assigned to this object but this object belongs to a group G, and G belongs to group H which is assigned the role R
- Specified by:
hasRolein interfaceRoleMapperModel- Overrides:
hasRolein classUserModelDelegate- Returns:
- see description
- See Also:
-
getGroupsStream
Description copied from interface:UserModelObtains the groups associated with the user.- Specified by:
getGroupsStreamin interfaceUserModel- Overrides:
getGroupsStreamin classUserModelDelegate- Returns:
- a non-null
Streamof groups.
-
joinGroup
- Specified by:
joinGroupin interfaceUserModel- Overrides:
joinGroupin classUserModelDelegate
-
leaveGroup
- Specified by:
leaveGroupin interfaceUserModel- Overrides:
leaveGroupin classUserModelDelegate
-
isMemberOf
- Specified by:
isMemberOfin interfaceUserModel- Overrides:
isMemberOfin classUserModelDelegate
-
getLDAPGroupMappingsConverted
-