public class BasicUserImpl extends SecurityEntityImpl implements BasicUser
| Constructor and Description |
|---|
BasicUserImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(Group group)
Add the group to the list of groups
|
GroupSet |
getGroups()
Get the groups this user is part of
|
<T extends Group> |
getGroupsAsSet()
Get the groups this user is part of as a Set
|
String |
getPassword()
Returns the user's password.
|
int |
hashCode()
Calculate a hash code for this object
|
void |
removeGroup(Group group)
Remove the group from the list of groups
|
void |
setGroups(GroupSet groups)
Set the groups this user is part of
|
<T extends Group> |
setGroupsAsSet(Set<T> groups)
Set the groups this user is part of as a Set
|
void |
setPassword(String password)
Set password.
|
equals, getId, getName, setId, setName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, setId, setNamepublic String getPassword()
UserManager.authenticate(User,String)
.getPassword in interface Userpublic void setPassword(String password)
getPassword(). See also
UserManager.changePassword(User,String,String)
.setPassword in interface Userpassword - The new password.public GroupSet getGroups()
public void setGroups(GroupSet groups)
public void removeGroup(Group group)
removeGroup in interface BasicUsergroup - the group to removepublic void addGroup(Group group)
public <T extends Group> void setGroupsAsSet(Set<T> groups)
setGroupsAsSet in interface BasicUsergroups - the set of groupspublic <T extends Group> Set<T> getGroupsAsSet()
getGroupsAsSet in interface BasicUserpublic int hashCode()
hashCode in class SecurityEntityImplSecurityEntityImpl.hashCode()Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.