UD - The specific type of UserDase with which this group is associatedpublic class GenericGroup<UD extends UserDatabase> extends AbstractGroup
Concrete implementation of Group for a
UserDatabase.
| Modifier and Type | Field and Description |
|---|---|
protected UD |
database
The
UserDatabase that owns this group. |
protected java.util.concurrent.CopyOnWriteArrayList<Role> |
roles
The set of
Roles associated with this group. |
description, groupname| Modifier and Type | Method and Description |
|---|---|
void |
addRole(Role role)
Add a new
Role to those assigned specifically to this group. |
boolean |
equals(java.lang.Object obj) |
java.util.Iterator<Role> |
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<User> |
getUsers()
Return the set of
Users that are members of this group. |
int |
hashCode() |
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. |
getDescription, getGroupname, getName, setDescription, setGroupnameprotected final UD extends UserDatabase database
UserDatabase that owns this group.public java.util.Iterator<Role> getRoles()
Roles assigned specifically to this group.getRoles in interface GroupgetRoles in class AbstractGroupRoles assigned specifically to this group.public UserDatabase getUserDatabase()
UserDatabase within which this Group is defined.getUserDatabase in interface GroupgetUserDatabase in class AbstractGroupUserDatabase within which this Group is defined.public java.util.Iterator<User> getUsers()
Users that are members of this group.getUsers in interface GroupgetUsers in class AbstractGroupUsers that are members of this group.public 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 checktrue if the group is assigned to the specified role
otherwise falsepublic 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 boolean equals(java.lang.Object obj)
equals in interface java.security.Principalequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.ObjectCopyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.