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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName, setId, setName
public String getPassword()
UserManager.authenticate(User,String)
.getPassword
in interface User
public void setPassword(String password)
getPassword()
. See also
UserManager.changePassword(User,String,String)
.setPassword
in interface User
password
- The new password.public GroupSet getGroups()
public void setGroups(GroupSet groups)
public void removeGroup(Group group)
removeGroup
in interface BasicUser
group
- the group to removepublic void addGroup(Group group)
public <T extends Group> void setGroupsAsSet(Set<T> groups)
setGroupsAsSet
in interface BasicUser
groups
- the set of groupspublic <T extends Group> Set<T> getGroupsAsSet()
getGroupsAsSet
in interface BasicUser
public int hashCode()
hashCode
in class SecurityEntityImpl
SecurityEntityImpl.hashCode()
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.