|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.users.AbstractGroup org.apache.catalina.users.MemoryGroup
public class MemoryGroup
Concrete implementation of Group
for the
MemoryUserDatabase
implementation of UserDatabase
.
Field Summary | |
---|---|
protected MemoryUserDatabase |
database
The MemoryUserDatabase that owns this group. |
protected ArrayList<Role> |
roles
The set of Role s 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. |
Iterator<Role> |
getRoles()
Return the set of Role s assigned specifically to this group. |
UserDatabase |
getUserDatabase()
Return the UserDatabase within which this Group is defined. |
Iterator<User> |
getUsers()
Return the set of User s 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 Role s from those assigned to this group. |
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 ArrayList<Role> roles
Role
s associated with this group.
Method Detail |
---|
public Iterator<Role> getRoles()
Role
s assigned specifically to this group.
getRoles
in interface Group
getRoles
in class AbstractGroup
public UserDatabase getUserDatabase()
UserDatabase
within which this Group is defined.
getUserDatabase
in interface Group
getUserDatabase
in class AbstractGroup
public Iterator<User> getUsers()
User
s that are members of this group.
getUsers
in interface Group
getUsers
in class AbstractGroup
public void addRole(Role role)
Role
to those assigned specifically to this group.
addRole
in interface Group
addRole
in class AbstractGroup
role
- The new rolepublic boolean isInRole(Role role)
Role
?
isInRole
in interface Group
isInRole
in class AbstractGroup
role
- The role to checkpublic void removeRole(Role role)
Role
from those assigned to this group.
removeRole
in interface Group
removeRole
in class AbstractGroup
role
- The old rolepublic void removeRoles()
Role
s from those assigned to this group.
removeRoles
in interface Group
removeRoles
in class AbstractGroup
public String toString()
Return a String representation of this group in XML format.
toString
in interface Principal
toString
in class Object
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |