Package org.apache.catalina.users
Class MemoryGroup
java.lang.Object
org.apache.catalina.users.AbstractGroup
org.apache.catalina.users.MemoryGroup
Deprecated.
Concrete implementation of Group for the
 MemoryUserDatabase implementation of UserDatabase.
- Since:
- 4.1
- Author:
- Craig R. McClanahan
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final MemoryUserDatabaseDeprecated.TheMemoryUserDatabasethat owns this group.protected final CopyOnWriteArrayList<Role>Deprecated.The set ofRoles associated with this group.Fields inherited from class org.apache.catalina.users.AbstractGroupdescription, groupname
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeprecated.Add a newRoleto those assigned specifically to this group.getRoles()Deprecated.Return the set ofRoles assigned specifically to this group.Deprecated.Return theUserDatabasewithin which this Group is defined.getUsers()Deprecated.Return the set ofUsers that are members of this group.booleanDeprecated.Is this group specifically assigned the specifiedRole?voidremoveRole(Role role) Deprecated.Remove aRolefrom those assigned to this group.voidDeprecated.Remove allRoles from those assigned to this group.toString()Deprecated.Return a String representation of this group in XML format.Methods inherited from class org.apache.catalina.users.AbstractGroupgetDescription, getGroupname, getName, setDescription, setGroupname
- 
Field Details- 
databaseDeprecated.TheMemoryUserDatabasethat owns this group.
- 
rolesDeprecated.The set ofRoles associated with this group.
 
- 
- 
Method Details- 
getRolesDeprecated.Return the set ofRoles assigned specifically to this group.- Specified by:
- getRolesin interface- Group
- Specified by:
- getRolesin class- AbstractGroup
- Returns:
- the set of Roles assigned specifically to this group.
 
- 
getUserDatabaseDeprecated.Return theUserDatabasewithin which this Group is defined.- Specified by:
- getUserDatabasein interface- Group
- Specified by:
- getUserDatabasein class- AbstractGroup
- Returns:
- the UserDatabasewithin which this Group is defined.
 
- 
getUsersDeprecated.Return the set ofUsers that are members of this group.- Specified by:
- getUsersin interface- Group
- Specified by:
- getUsersin class- AbstractGroup
- Returns:
- the set of Users that are members of this group.
 
- 
addRoleDeprecated.Add a newRoleto those assigned specifically to this group.- Specified by:
- addRolein interface- Group
- Specified by:
- addRolein class- AbstractGroup
- Parameters:
- role- The new role
 
- 
isInRoleDeprecated.Is this group specifically assigned the specifiedRole?- Specified by:
- isInRolein interface- Group
- Specified by:
- isInRolein class- AbstractGroup
- Parameters:
- role- The role to check
- Returns:
- trueif the group is assigned to the specified role otherwise- false
 
- 
removeRoleDeprecated.Remove aRolefrom those assigned to this group.- Specified by:
- removeRolein interface- Group
- Specified by:
- removeRolein class- AbstractGroup
- Parameters:
- role- The old role
 
- 
removeRolespublic void removeRoles()Deprecated.Remove allRoles from those assigned to this group.- Specified by:
- removeRolesin interface- Group
- Specified by:
- removeRolesin class- AbstractGroup
 
- 
toStringDeprecated.Return a String representation of this group in XML format. 
 
- 
AbstractGroupinstead.