|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jhomenet.server.auth.UserGroup
public class UserGroup
A class that is used to encompass a group of users.
Note: this class is still under development.
Id: $Id: $
Constructor Summary | |
---|---|
UserGroup(java.lang.String userGroupName)
Constructor. |
Method Summary | |
---|---|
boolean |
addMember(Principal userToAdd)
Adds the specified member to the group. |
void |
addMembers(java.util.List<Principal> userListToAdd)
Add a list of users to the user group. |
java.lang.String |
getName()
|
boolean |
isMember(Principal user)
Returns true if the passed principal is a member of the group. |
java.util.List<Principal> |
members()
Returns an enumeration of the members in the group. |
void |
removeAllMembers()
Remove all of the users from the user group. |
boolean |
removeMember(Principal user)
Removes the specified member from the group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserGroup(java.lang.String userGroupName)
userGroupName
- The user group nameMethod Detail |
---|
public final java.lang.String getName()
public final boolean isMember(Principal user)
Group
isMember
in interface Group
jhomenet.server.auth.Group#isMember(jhomenet.commons.auth.Principal)
public final boolean addMember(Principal userToAdd)
Group
addMember
in interface Group
jhomenet.server.auth.Group#addMember(jhomenet.commons.auth.Principal)
public final void addMembers(java.util.List<Principal> userListToAdd)
userListToAdd
- The list of users to add to the user grouppublic final boolean removeMember(Principal user)
Group
removeMember
in interface Group
jhomenet.server.auth.Group#removeMember(jhomenet.commons.auth.Principal)
public final void removeAllMembers()
public java.util.List<Principal> members()
Group
members
in interface Group
Group.members()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |