| |
|
| java.lang.Object org.apache.catalina.users.AbstractUser org.apache.catalina.users.MemoryUser
MemoryUser | MemoryUser(MemoryUserDatabase database, String username, String password, String fullName)(Code) | | Package-private constructor used by the factory method in
MemoryUserDatabase .
Parameters: database - The MemoryUserDatabase that owns this user Parameters: username - Logon username of the new user Parameters: password - Logon password of the new user Parameters: fullName - Full name of the new user |
addGroup | public void addGroup(Group group)(Code) | | Add a new
Group to those this user belongs to.
Parameters: group - The new group |
addRole | public void addRole(Role role)(Code) | | Add a new
Role to those assigned specifically to this user.
Parameters: role - The new role |
getGroups | public Iterator getGroups()(Code) | | Return the set of
Group s to which this user belongs.
|
getRoles | public Iterator getRoles()(Code) | | Return the set of
Role s assigned specifically to this user.
|
isInGroup | public boolean isInGroup(Group group)(Code) | | Is this user in the specified group?
Parameters: group - The group to check |
isInRole | public boolean isInRole(Role role)(Code) | | Is this user specifically assigned the specified
Role ? This
method does NOT check for roles inherited based on
Group membership.
Parameters: role - The role to check |
removeGroup | public void removeGroup(Group group)(Code) | | Remove a
Group from those this user belongs to.
Parameters: group - The old group |
removeGroups | public void removeGroups()(Code) | | Remove all
Group s from those this user belongs to.
|
removeRole | public void removeRole(Role role)(Code) | | Remove a
Role from those assigned to this user.
Parameters: role - The old role |
removeRoles | public void removeRoles()(Code) | | Remove all
Role s from those assigned to this user.
|
toString | public String toString()(Code) | | Return a String representation of this user in XML format.
IMPLEMENTATION NOTE - For backwards compatibility,
the reader that processes this entry will accept either
username or name for the username
property.
|
|
|
|