|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.login.GroupImpl
public class GroupImpl
This class implements a group of principals.
Constructor Summary | |
---|---|
GroupImpl(String groupName)
Constructs a Group object with no members. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GroupImpl(String groupName)
groupName
- the name of the groupMethod Detail |
---|
public boolean addMember(Principal user)
addMember
in interface Group
user
- The principal to add to the group.
public boolean removeMember(Principal user)
removeMember
in interface Group
user
- The principal to remove from the group.true
- if the principal was removed false if the principal was not a
memberpublic Enumeration<? extends Principal> members()
members
in interface Group
public boolean equals(Object obj)
equals
in interface Principal
equals
in class Object
obj
- the group to compare this group to.public boolean equals(Group other)
public String toString()
toString
in interface Principal
toString
in class Object
public int hashCode()
hashCode
in interface Principal
hashCode
in class Object
public boolean isMember(Principal member)
isMember
in interface Group
member
- The principal whose membership must be checked for.
public String getName()
getName
in interface Principal
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |