|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.users.AbstractGroup
org.apache.catalina.users.MemoryGroup
Concrete implementation of Group for the
MemoryUserDatabase implementation of UserDatabase.
| Field Summary | |
protected MemoryUserDatabase |
database
The MemoryUserDatabase that owns this group. |
protected java.util.ArrayList |
roles
The set of Roles associated with this group. |
| Fields inherited from class org.apache.catalina.users.AbstractGroup |
description, groupname |
| Method Summary | |
void |
addRole(Role role)
Add a new Role to those assigned specifically to this group. |
java.util.Iterator |
getRoles()
Return the set of Roles assigned specifically to this group. |
UserDatabase |
getUserDatabase()
Return the UserDatabase within which this Group is defined. |
java.util.Iterator |
getUsers()
Return the set of Users that are members of this group. |
boolean |
isInRole(Role role)
Is this group specifically assigned the specified Role? |
void |
removeRole(Role role)
Remove a Role from those assigned to this group. |
void |
removeRoles()
Remove all Roles from those assigned to this group. |
java.lang.String |
toString()
Return a String representation of this group in XML format. |
| Methods inherited from class org.apache.catalina.users.AbstractGroup |
getDescription, getGroupname, getName, setDescription, setGroupname |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
equals, hashCode |
| Field Detail |
protected MemoryUserDatabase database
MemoryUserDatabase that owns this group.
protected java.util.ArrayList roles
Roles associated with this group.
| Method Detail |
public java.util.Iterator getRoles()
Roles assigned specifically to this group.
getRoles in interface GroupgetRoles in class AbstractGrouppublic UserDatabase getUserDatabase()
UserDatabase within which this Group is defined.
getUserDatabase in interface GroupgetUserDatabase in class AbstractGrouppublic java.util.Iterator getUsers()
Users that are members of this group.
getUsers in interface GroupgetUsers in class AbstractGrouppublic void addRole(Role role)
Role to those assigned specifically to this group.
addRole in interface GroupaddRole in class AbstractGrouprole - The new rolepublic boolean isInRole(Role role)
Role?
isInRole in interface GroupisInRole in class AbstractGrouprole - The role to checkpublic void removeRole(Role role)
Role from those assigned to this group.
removeRole in interface GroupremoveRole in class AbstractGrouprole - The old rolepublic void removeRoles()
Roles from those assigned to this group.
removeRoles in interface GroupremoveRoles in class AbstractGrouppublic java.lang.String toString()
Return a String representation of this group in XML format.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||