|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Abstract representation of a group of Users in a
UserDatabase. Each user that is a member of this group
inherits the Roles assigned to the group.
| Method Summary | |
void |
addRole(Role role)
Add a new Role to those assigned specifically to this group. |
java.lang.String |
getDescription()
Return the description of this group. |
java.lang.String |
getGroupname()
Return the group name of this group, which must be unique within the scope of a UserDatabase. |
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. |
void |
setDescription(java.lang.String description)
Set the description of this group. |
void |
setGroupname(java.lang.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 |
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The new descriptionpublic java.lang.String getGroupname()
UserDatabase.
public void setGroupname(java.lang.String groupname)
UserDatabase.
groupname - The new group namepublic java.util.Iterator getRoles()
Roles assigned specifically to this group.
public UserDatabase getUserDatabase()
UserDatabase within which this Group is defined.
public java.util.Iterator getUsers()
Users that are members of this group.
public void addRole(Role role)
Role to those assigned specifically to this group.
role - The new rolepublic boolean isInRole(Role role)
Role?
role - The role to checkpublic void removeRole(Role role)
Role from those assigned to this group.
role - The old rolepublic void removeRoles()
Roles from those assigned to this group.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||