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, hashCode
public 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 Group
user
- the principal to remove from this group.public String toString()
toString
in interface Principal
toString
in class SimplePrincipal
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2016 JBoss by Red Hat. All rights reserved.