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 Summary
FieldsModifier 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.AbstractGroup
description, groupname -
Method Summary
Modifier 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.AbstractGroup
getDescription, getGroupname, getName, setDescription, setGroupname
-
Field Details
-
database
Deprecated.TheMemoryUserDatabasethat owns this group. -
roles
Deprecated.The set ofRoles associated with this group.
-
-
Method Details
-
getRoles
Deprecated.Return the set ofRoles assigned specifically to this group.- Specified by:
getRolesin interfaceGroup- Specified by:
getRolesin classAbstractGroup- Returns:
- the set of
Roles assigned specifically to this group.
-
getUserDatabase
Deprecated.Return theUserDatabasewithin which this Group is defined.- Specified by:
getUserDatabasein interfaceGroup- Specified by:
getUserDatabasein classAbstractGroup- Returns:
- the
UserDatabasewithin which this Group is defined.
-
getUsers
Deprecated.Return the set ofUsers that are members of this group.- Specified by:
getUsersin interfaceGroup- Specified by:
getUsersin classAbstractGroup- Returns:
- the set of
Users that are members of this group.
-
addRole
Deprecated.Add a newRoleto those assigned specifically to this group.- Specified by:
addRolein interfaceGroup- Specified by:
addRolein classAbstractGroup- Parameters:
role- The new role
-
isInRole
Deprecated.Is this group specifically assigned the specifiedRole?- Specified by:
isInRolein interfaceGroup- Specified by:
isInRolein classAbstractGroup- Parameters:
role- The role to check- Returns:
trueif the group is assigned to the specified role otherwisefalse
-
removeRole
Deprecated.Remove aRolefrom those assigned to this group.- Specified by:
removeRolein interfaceGroup- Specified by:
removeRolein classAbstractGroup- Parameters:
role- The old role
-
removeRoles
public void removeRoles()Deprecated.Remove allRoles from those assigned to this group.- Specified by:
removeRolesin interfaceGroup- Specified by:
removeRolesin classAbstractGroup
-
toString
Deprecated.Return a String representation of this group in XML format.
-
AbstractGroupinstead.