public class GroupLDAPStorageMapper.LDAPGroupMappingsUserDelegate extends UserModelDelegate
UserModel.RequiredAction, UserModel.UserRemovedEvent
delegate
EMAIL, FIRST_NAME, GROUPS, INCLUDE_SERVICE_ACCOUNT, LAST_NAME, LOCALE, SEARCH, USERNAME
Constructor and Description |
---|
LDAPGroupMappingsUserDelegate(RealmModel realm,
UserModel user,
LDAPObject ldapUser) |
Modifier and Type | Method and Description |
---|---|
Set<GroupModel> |
getGroups() |
protected Set<GroupModel> |
getLDAPGroupMappingsConverted() |
boolean |
hasRole(RoleModel role)
Returns
true if this object is directly or indirectly assigned the given role, false otherwise. |
boolean |
isMemberOf(GroupModel group) |
void |
joinGroup(GroupModel group) |
void |
leaveGroup(GroupModel group) |
addRequiredAction, addRequiredAction, deleteRoleMapping, equals, getAttribute, getAttributes, getClientRoleMappings, getCreatedTimestamp, getDelegate, getEmail, getFederationLink, getFirstAttribute, getFirstName, getId, getLastName, getRealmRoleMappings, getRequiredActions, getRoleMappings, getServiceAccountClientLink, getUsername, grantRole, hashCode, isEmailVerified, isEnabled, removeAttribute, removeRequiredAction, removeRequiredAction, setAttribute, setCreatedTimestamp, setEmail, setEmailVerified, setEnabled, setFederationLink, setFirstName, setLastName, setServiceAccountClientLink, setSingleAttribute, setUsername
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getGroups, getGroups, getGroupsCount, getGroupsCountByNameContaining
public LDAPGroupMappingsUserDelegate(RealmModel realm, UserModel user, LDAPObject ldapUser)
public boolean hasRole(RoleModel role)
RoleMapperModel
true
if this object is directly or indirectly assigned the given role, false
otherwise.
For example, true
is returned for hasRole(R) if:
hasRole
in interface RoleMapperModel
hasRole
in class UserModelDelegate
public Set<GroupModel> getGroups()
getGroups
in interface UserModel
getGroups
in class UserModelDelegate
public void joinGroup(GroupModel group)
joinGroup
in interface UserModel
joinGroup
in class UserModelDelegate
public void leaveGroup(GroupModel group)
leaveGroup
in interface UserModel
leaveGroup
in class UserModelDelegate
public boolean isMemberOf(GroupModel group)
isMemberOf
in interface UserModel
isMemberOf
in class UserModelDelegate
protected Set<GroupModel> getLDAPGroupMappingsConverted()
Copyright © 2020 JBoss by Red Hat. All rights reserved.