|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.locomotive.loco.perm.Group
Contains all the information for one group, which represents a set of users.
| Constructor Summary | |
Group(java.lang.String groupName)
Creates a group with associated with a name. |
|
Group(java.lang.String groupName,
int groupId,
java.util.Vector groupUsers)
Creates a group with complete group information. |
|
| Method Summary | |
void |
addUser(java.lang.String userName)
Adds a user to the group. |
boolean |
containsUser(java.lang.String userName)
Checks for the existence of a user within this group. |
int |
getId()
Returns the id of the group. |
java.lang.String |
getName()
Returns the name of the group. |
java.util.Vector |
getUsers()
Lists all the user names contained in the group. |
void |
removeUser(java.lang.String userName)
Removes an existing user from the group. |
void |
setId(int groupId)
Sets the id of the group. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Group(java.lang.String groupName)
groupName - name of group to be created
public Group(java.lang.String groupName,
int groupId,
java.util.Vector groupUsers)
groupName - name of groupgroupId - id of groupgroupUsers - Vector of user names contained in the group| Method Detail |
public java.lang.String getName()
public int getId()
public void setId(int groupId)
id - of the grouppublic void addUser(java.lang.String userName)
userName - name of user to be added to the grouppublic void removeUser(java.lang.String userName)
userName - name of user to be removed from the grouppublic java.util.Vector getUsers()
public boolean containsUser(java.lang.String userName)
userName - name of user in questiontrue if the user is contained in this group
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||