public class SimpleGroup extends SimplePrincipal implements Group
| Constructor and Description |
|---|
SimpleGroup(String name)
Creates a new group with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMember(Principal user) |
boolean |
isMember(Principal member) |
Enumeration<? extends Principal> |
members() |
boolean |
removeMember(Principal user) |
String |
toString() |
equals, getName, hashCodepublic SimpleGroup(String name)
name - Group name.public Enumeration<? extends Principal> members()
public boolean removeMember(Principal user)
removeMember in interface Grouppublic String toString()
toString in interface PrincipaltoString in class SimplePrincipalCopyright © 2014. All Rights Reserved.