| Modifier and Type | Method and Description |
|---|---|
boolean |
addMember(Principal user)
Adds a member to this group.
|
boolean |
isMember(Principal member)
Returns whether the specified principal is a member of this group.
|
Enumeration<? extends Principal> |
members()
Returns the members of this group.
|
boolean |
removeMember(Principal user)
Removes a member from this group.
|
boolean addMember(Principal user)
user - the member to add.true if the member was added, false if it was already a member.boolean removeMember(Principal user)
user - the member to remove.true if the member was removed, false if it was not a member.boolean isMember(Principal member)
member - the principal to check.true if the principal is a member, otherwise false.Enumeration<? extends Principal> members()