edu.mayo.bsi.ngsportal.shared
Class SecondaryProjectInfo

java.lang.Object
  extended by edu.mayo.bsi.ngsportal.shared.SecondaryProjectInfo
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class SecondaryProjectInfo
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable

Class that holds the information about a Secondary Project, its users, and its samples

@author Gregory Dougherty


Constructor Summary
SecondaryProjectInfo(String projectName, String projectType, String notes, Date createDate, Integer creator, Integer pi, Integer lead, Integer specialist, List<SampleInfo> samples)
          Standard Constructor
 
Method Summary
 boolean equals(Object obj)
           
 Date getCreateDate()
           
 Integer getCreator()
           
 Integer getLead()
           
 String getNotes()
           
 Integer getPi()
           
 String getProjectName()
           
 String getProjectType()
           
 List<SampleInfo> getSamples()
           
 Integer getSpecialist()
           
 int hashCode()
           
 boolean isReanalysis()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecondaryProjectInfo

public SecondaryProjectInfo(String projectName,
                            String projectType,
                            String notes,
                            Date createDate,
                            Integer creator,
                            Integer pi,
                            Integer lead,
                            Integer specialist,
                            List<SampleInfo> samples)
Standard Constructor

Parameters:
projectName - Name of the project, may be empty, should not be null
projectType - Project type. May be null
notes - Notes, may be empty, should not be null
createDate - Date project was created
creator - Contact ID of he person who created the project. Should not be null
pi - ContactLinker ID of the project's PI. Should not be null
lead - ContactLinker ID of the project's Lead. May be null. lead and specialist should not BOTH be null
specialist - ContactLinker ID of the project's Specialist. May be null. lead and specialist should not BOTH be null
samples - List of SampleInfo for the project. Should not be empty or null
Method Detail

getProjectName

public final String getProjectName()
Returns:
the projectName

getProjectType

public final String getProjectType()
Returns:
the projectType

isReanalysis

public final boolean isReanalysis()
Returns:
the projectType

getNotes

public final String getNotes()
Returns:
the notes

getCreateDate

public final Date getCreateDate()
Returns:
the createDate

getCreator

public final Integer getCreator()
Returns:
the creator

getPi

public final Integer getPi()
Returns:
the pi

getLead

public final Integer getLead()
Returns:
the lead

getSpecialist

public final Integer getSpecialist()
Returns:
the specialist

getSamples

public final List<SampleInfo> getSamples()
Returns:
the samples

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object