edu.mayo.bsi.ngsportal.shared
Class GroupInfo

java.lang.Object
  extended by 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


Constructor Summary
GroupInfo(int id, String name, String description, String creator)
          Standard Constructor
 
Method Summary
 boolean addUser(String user, int role)
          Add a user and role to the Map of users and roles
 String getCreator()
           
 String getDescription()
           
 int getID()
           
 String getName()
           
 Map<String,Integer> getUsers()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupInfo

public GroupInfo(int id,
                 String name,
                 String description,
                 String creator)
Standard Constructor

Parameters:
id -
name -
description -
creator -
Method Detail

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 ID
role - 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