|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.domain.AbstractCaArrayObject
gov.nih.nci.caarray.domain.AbstractCaArrayEntity
gov.nih.nci.caarray.domain.project.ExperimentContact
public class ExperimentContact
Field Summary | |
---|---|
static java.lang.String |
MAIN_POC_ROLE
value of the Term for the POC Role. |
static java.lang.String |
PI_ROLE
value of the Term for the PI Role. |
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity |
---|
CAARRAY_LSID_AUTHORITY, CAARRAY_LSID_NAMESPACE |
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject |
---|
DEFAULT_BATCH_SIZE, DEFAULT_STRING_COLUMN_SIZE, LARGE_TEXT_FIELD_LENGTH |
Constructor Summary | |
---|---|
ExperimentContact()
Default constructor, mostly for hibernate. |
|
ExperimentContact(Experiment experiment,
Person contact,
java.util.Collection<Term> roles)
Create a new ExperimentContact for given experiment, contacts, and roles. |
|
ExperimentContact(Experiment experiment,
Person contact,
Term role)
Create a new ExperimentContact for given experiment, contacts, and role. |
Method Summary | |
---|---|
boolean |
equalsBaseContact(ExperimentContact experimentContact)
Returns true if the underlying contact information is the same, ignoring the roles and Experiment. |
Person |
getContact()
Gets the contact. |
Experiment |
getExperiment()
|
Person |
getPerson()
Gets the person. |
java.lang.String |
getRoleNames()
|
java.util.Set<Term> |
getRoles()
Gets the roles. |
boolean |
isMainPointOfContact()
Returns whether this contact is the main POC for the experiment (based on whether he has the appropriate role). |
boolean |
isPrimaryInvestigator()
Returns whether this contact is the PI for the experiment (based on whether he has the appropriate role). |
void |
setContact(Person contactVal)
Sets the contact. |
void |
setExperiment(Experiment experiment)
|
void |
setPerson(Person personVal)
Sets the person. |
void |
setRoles(java.util.Set<Term> rolesVal)
Sets the roles. |
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity |
---|
getLsid, getLsidAuthority, getLsidNamespace, getLsidObjectId, setLsid, setLsid, setLsidForEntity |
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject |
---|
equals, getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, hashCode, setCaBigId, setId, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PI_ROLE
public static final java.lang.String MAIN_POC_ROLE
Constructor Detail |
---|
public ExperimentContact()
public ExperimentContact(Experiment experiment, Person contact, java.util.Collection<Term> roles)
experiment
- the experiment for which this is a contactcontact
- the contactroles
- the roles this contact has on the experimentpublic ExperimentContact(Experiment experiment, Person contact, Term role)
experiment
- the experiment for which this is a contactcontact
- the contactrole
- the role this contact has on the experimentMethod Detail |
---|
public Person getContact()
public void setContact(Person contactVal)
contactVal
- the contactpublic Person getPerson()
public void setPerson(Person personVal)
personVal
- the person contactpublic java.util.Set<Term> getRoles()
public void setRoles(java.util.Set<Term> rolesVal)
rolesVal
- the rolespublic java.lang.String getRoleNames()
public Experiment getExperiment()
public void setExperiment(Experiment experiment)
experiment
- the experiment to setpublic boolean isPrimaryInvestigator()
public boolean isMainPointOfContact()
public boolean equalsBaseContact(ExperimentContact experimentContact)
experimentContact
- contact to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |