edu.mayo.bsi.ngsportal.shared
Class SecondaryProjectInfo
java.lang.Object
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
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 nullprojectType - Project type. May be nullnotes - Notes, may be empty, should not be nullcreateDate - Date project was createdcreator - Contact ID of he person who created the project. Should not be nullpi - ContactLinker ID of the project's PI. Should not be nulllead - ContactLinker ID of the project's Lead. May be null. lead and specialist
should not BOTH be nullspecialist - ContactLinker ID of the project's Specialist. May be null. lead and specialist
should not BOTH be nullsamples - List of SampleInfo for the project. Should not be empty or null
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