|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.opensymphony.user.Entity
com.opensymphony.user.Group
Entity that represents a Group of Users.
Refer to Entity for more information.
Entity,
Serialized Form| Nested Class Summary | |
class |
Group.Accessor
Group specific Accessor. |
| Field Summary |
| Fields inherited from class com.opensymphony.user.Entity |
accessor, mutable, name |
| Method Summary | |
boolean |
addMember(java.security.Principal user)
Adds the specified member to the group. |
boolean |
addUser(User user)
Add User to members of this Group. |
boolean |
containsUser(java.lang.String user)
Determine whether Group contains supplied User as member. |
boolean |
containsUser(User user)
Determine whether Group contains supplied User as member. |
java.util.List |
getUsers()
List all Users that Group contains as members. |
boolean |
isMember(java.security.Principal member)
Returns true if the passed principal is a member of the group. |
java.util.Enumeration |
members()
Returns an enumeration of the members in the group. |
void |
remove()
Remove Group from associated AccessProvider. |
boolean |
removeMember(java.security.Principal user)
Removes the specified member from the group. |
boolean |
removeUser(User user)
Remove User from members of this Group. |
| Methods inherited from class com.opensymphony.user.Entity |
equals, getAccessProvider, getCredentialsProvider, getName, getProfileProvider, getPropertySet, getUserManager, hashCode, isMutable, store, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
equals, getName, hashCode, toString |
| Method Detail |
public boolean isMember(java.security.Principal member)
isMember in interface java.security.acl.Groupmember - the principal whose membership is to be checked.
public java.util.List getUsers()
public boolean addMember(java.security.Principal user)
addMember in interface java.security.acl.Groupuser - the principal to add to this group.
public boolean addUser(User user)
public boolean containsUser(User user)
public boolean containsUser(java.lang.String user)
public java.util.Enumeration members()
members in interface java.security.acl.Group
public void remove()
throws ImmutableException
remove in class EntityImmutableExceptionpublic boolean removeMember(java.security.Principal user)
removeMember in interface java.security.acl.Groupuser - the principal to remove from this group.
public boolean removeUser(User user)
|
See www.opensymphony.com for more information. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||