edu.mayo.bsi.ngsportal.shared
Class GroupInfo
java.lang.Object
edu.mayo.bsi.ngsportal.shared.GroupInfo
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.IsSerializable
public class GroupInfo
- extends Object
- implements com.google.gwt.user.client.rpc.IsSerializable
@author Gregory Dougherty
GroupInfo
public GroupInfo(int id,
String name,
String description,
String creator)
- Standard Constructor
- Parameters:
id - name - description - creator -
addUser
public boolean addUser(String user,
int role)
- Add a user and role to the Map of users and roles
- Parameters:
user - String identifying the user, usually a Mayo LAN IDrole - The role the user has in this group
- Returns:
- True if successfully added the user to users, false if there was a problem
getID
public final int getID()
- Returns:
- the id
getName
public final String getName()
- Returns:
- the name
getDescription
public final String getDescription()
- Returns:
- the description
getCreator
public final String getCreator()
- Returns:
- the creator
getUsers
public final Map<String,Integer> getUsers()
- Returns:
- the users
toString
public String toString()
- Overrides:
toString in class Object