|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Group
Abstract representation of a group of User
s in a
UserDatabase
. Each user that is a member of this group
inherits the Role
s assigned to the group.
Method Summary | |
---|---|
void |
addRole(Role role)
Add a new Role to those assigned specifically to this group. |
String |
getDescription()
Return the description of this group. |
String |
getGroupname()
Return the group name of this group, which must be unique within the scope of a UserDatabase . |
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. |
void |
setDescription(String description)
Set the description of this group. |
void |
setGroupname(String groupname)
Set the group name of this group, which must be unique within the scope of a UserDatabase . |
Methods inherited from interface java.security.Principal |
---|
equals, getName, hashCode, toString |
Method Detail |
---|
String getDescription()
void setDescription(String description)
description
- The new descriptionString getGroupname()
UserDatabase
.
void setGroupname(String groupname)
UserDatabase
.
groupname
- The new group nameIterator<Role> getRoles()
Role
s assigned specifically to this group.
UserDatabase getUserDatabase()
UserDatabase
within which this Group is defined.
Iterator<User> getUsers()
User
s that are members of this group.
void addRole(Role role)
Role
to those assigned specifically to this group.
role
- The new roleboolean isInRole(Role role)
Role
?
role
- The role to checkvoid removeRole(Role role)
Role
from those assigned to this group.
role
- The old rolevoid removeRoles()
Role
s from those assigned to this group.
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |