Constructor and Description |
---|
GroupImpl(String groupName)
Constructs a Group object with no members.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addMember(Principal user)
adds the specified member to the group.
|
boolean |
equals(Group other) |
boolean |
equals(Object obj)
This function returns true if the group passed matches the group represented in this interface.
|
String |
getName()
return the name of the principal.
|
int |
hashCode()
return a hashcode for the principal.
|
boolean |
isMember(Principal member)
returns true if the passed principal is a member of the group.
|
Enumeration<? extends Principal> |
members()
returns the enumeration of the members in the group.
|
boolean |
removeMember(Principal user)
Removes the specified member from the group.
|
String |
toString()
Prints a stringified version of the group.
|
public boolean removeMember(Principal user)
removeMember
in interface Group
user
- The principal to remove from the group.public Enumeration<? extends Principal> members()
public boolean equals(Object obj)
public int hashCode()
public boolean isMember(Principal member)
Copyright © 2018 Nuxeo. All rights reserved.