public class SimpleGroup extends SimplePrincipal implements Group, Cloneable
| Constructor and Description |
|---|
SimpleGroup(String groupName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMember(Principal user)
Adds the specified member to the group.
|
Object |
clone() |
boolean |
isMember(Principal member)
Returns true if the passed principal is a member of the group.
|
Enumeration<Principal> |
members()
Returns an enumeration of the members in the group.
|
boolean |
removeMember(Principal user)
Removes the specified member from the group.
|
String |
toString() |
equals, getName, hashCodepublic SimpleGroup(String groupName)
public boolean addMember(Principal user)
public boolean isMember(Principal member)
public Enumeration<Principal> members()
public boolean removeMember(Principal user)
removeMember in interface Groupuser - the principal to remove from this group.public String toString()
toString in interface PrincipaltoString in class SimplePrincipalpublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.