Methods Summary |
---|
public void | addGroup(Group group)Add a new {@link Group} to those this user belongs to.
|
public void | addRole(Role role)Add a {@link Role} to those assigned specifically to this user.
|
public java.lang.String | getFullName()Return the full name of this user.
|
public java.util.Iterator | getGroups()Return the set of {@link Group}s to which this user belongs.
|
public java.lang.String | getPassword()Return the logon password of this user, optionally prefixed with the
identifier of an encoding scheme surrounded by curly braces, such as
{md5}xxxxx .
|
public java.util.Iterator | getRoles()Return the set of {@link Role}s assigned specifically to this user.
|
public UserDatabase | getUserDatabase()Return the {@link UserDatabase} within which this User is defined.
|
public java.lang.String | getUsername()Return the logon username of this user, which must be unique
within the scope of a {@link UserDatabase}.
|
public boolean | isInGroup(Group group)Is this user in the specified {@link Group}?
|
public boolean | isInRole(Role role)Is this user specifically assigned the specified {@link Role}? This
method does NOT check for roles inherited based on
{@link Group} membership.
|
public void | removeGroup(Group group)Remove a {@link Group} from those this user belongs to.
|
public void | removeGroups()Remove all {@link Group}s from those this user belongs to.
|
public void | removeRole(Role role)Remove a {@link Role} from those assigned to this user.
|
public void | removeRoles()Remove all {@link Role}s from those assigned to this user.
|
public void | setFullName(java.lang.String fullName)Set the full name of this user.
|
public void | setPassword(java.lang.String password)Set the logon password of this user, optionally prefixed with the
identifier of an encoding scheme surrounded by curly braces, such as
{md5}xxxxx .
|
public void | setUsername(java.lang.String username)Set the logon username of this user, which must be unique within
the scope of a {@link UserDatabase}.
|