Package org.apache.catalina.users
Class MemoryUser
java.lang.Object
org.apache.catalina.users.AbstractUser
org.apache.catalina.users.MemoryUser
Deprecated.
Concrete implementation of User for the
 MemoryUserDatabase implementation of UserDatabase.
- Since:
- 4.1
- Author:
- Craig R. McClanahan
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final MemoryUserDatabaseDeprecated.TheMemoryUserDatabasethat owns this user.protected final CopyOnWriteArrayList<Group>Deprecated.The set ofGroups that this user is a member of.protected final CopyOnWriteArrayList<Role>Deprecated.The set ofRoles associated with this user.Fields inherited from class org.apache.catalina.users.AbstractUserfullName, password, username
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeprecated.Add a newGroupto those this user belongs to.voidDeprecated.Add a newRoleto those assigned specifically to this user.Deprecated.Return the set ofGroups to which this user belongs.getRoles()Deprecated.Return the set ofRoles assigned specifically to this user.Deprecated.Return theUserDatabasewithin which this User is defined.booleanDeprecated.Is this user in the specified group?booleanDeprecated.Is this user specifically assigned the specifiedRole?voidremoveGroup(Group group) Deprecated.Remove aGroupfrom those this user belongs to.voidDeprecated.Remove allGroups from those this user belongs to.voidremoveRole(Role role) Deprecated.Remove aRolefrom those assigned to this user.voidDeprecated.Remove allRoles from those assigned to this user.toString()Deprecated.Return a String representation of this user.toXml()Deprecated.Return a String representation of this user in XML format.Methods inherited from class org.apache.catalina.users.AbstractUsergetFullName, getName, getPassword, getUsername, setFullName, setPassword, setUsername
- 
Field Details- 
databaseDeprecated.TheMemoryUserDatabasethat owns this user.
- 
groupsDeprecated.The set ofGroups that this user is a member of.
- 
rolesDeprecated.The set ofRoles associated with this user.
 
- 
- 
Method Details- 
getGroupsDeprecated.Return the set ofGroups to which this user belongs.- Specified by:
- getGroupsin interface- User
- Specified by:
- getGroupsin class- AbstractUser
- Returns:
- the set of Groups to which this user belongs.
 
- 
getRolesDeprecated.Return the set ofRoles assigned specifically to this user.- Specified by:
- getRolesin interface- User
- Specified by:
- getRolesin class- AbstractUser
- Returns:
- the set of Roles assigned specifically to this user.
 
- 
getUserDatabaseDeprecated.Return theUserDatabasewithin which this User is defined.- Returns:
- the UserDatabasewithin which this User is defined.
 
- 
addGroupDeprecated.Add a newGroupto those this user belongs to.- Specified by:
- addGroupin interface- User
- Specified by:
- addGroupin class- AbstractUser
- Parameters:
- group- The new group
 
- 
addRoleDeprecated.Add a newRoleto those assigned specifically to this user.- Specified by:
- addRolein interface- User
- Specified by:
- addRolein class- AbstractUser
- Parameters:
- role- The new role
 
- 
isInGroupDeprecated.Is this user in the specified group?- Specified by:
- isInGroupin interface- User
- Specified by:
- isInGroupin class- AbstractUser
- Parameters:
- group- The group to check
- Returns:
- trueif the user is in the specified group
 
- 
isInRoleDeprecated.Is this user specifically assigned the specifiedRole? This method does NOT check for roles inherited based onGroupmembership.- Specified by:
- isInRolein interface- User
- Specified by:
- isInRolein class- AbstractUser
- Parameters:
- role- The role to check
- Returns:
- trueif the user has the specified role
 
- 
removeGroupDeprecated.Remove aGroupfrom those this user belongs to.- Specified by:
- removeGroupin interface- User
- Specified by:
- removeGroupin class- AbstractUser
- Parameters:
- group- The old group
 
- 
removeGroupspublic void removeGroups()Deprecated.Remove allGroups from those this user belongs to.- Specified by:
- removeGroupsin interface- User
- Specified by:
- removeGroupsin class- AbstractUser
 
- 
removeRoleDeprecated.Remove aRolefrom those assigned to this user.- Specified by:
- removeRolein interface- User
- Specified by:
- removeRolein class- AbstractUser
- Parameters:
- role- The old role
 
- 
removeRolespublic void removeRoles()Deprecated.Remove allRoles from those assigned to this user.- Specified by:
- removeRolesin interface- User
- Specified by:
- removeRolesin class- AbstractUser
 
- 
toXmlDeprecated.Return a String representation of this user in XML format. IMPLEMENTATION NOTE - For backwards compatibility, the reader that processes this entry will accept either usernameornamefor the username property.- Returns:
- the XML representation
 
- 
toStringDeprecated.Return a String representation of this user. 
 
- 
AbstractUserinstead.