@Entity public class Connection extends Object
identifier of the connection.| Constructor and Description |
|---|
Connection()
Default constructor used by Hibernate.
|
Connection(PatientSimilarityView patientPair)
Constructor that copies the data from a patient pair.
|
| Modifier and Type | Method and Description |
|---|---|
org.xwiki.model.reference.DocumentReference |
getContactedUser()
The target of the communication, the owner of the matched patient.
|
Long |
getId()
The identifier of this connection can be exposed, and is the only thing needed to
retrieve back the full connection. |
org.xwiki.model.reference.DocumentReference |
getInitiatingUser()
The user that initiated the communication, one of the owners of the reference patient.
|
org.phenotips.data.Patient |
getReferencePatient()
The reference patient, owned by the
initiating user. |
org.phenotips.data.Patient |
getTargetPatient()
The matched patient, owned by the
contacted user. |
void |
setContactedUser(org.xwiki.model.reference.DocumentReference userReference)
Sets the contacted user.
|
void |
setInitiatingUser(org.xwiki.model.reference.DocumentReference userReference)
Sets the initiating user.
|
void |
setReferencePatient(org.phenotips.data.Patient patient)
Sets the reference patient.
|
void |
setTargetPatient(org.phenotips.data.Patient patient)
Sets the matched patient.
|
String |
toString() |
public Connection()
public Connection(PatientSimilarityView patientPair)
patientPair - the paired patient to get the data frompublic Long getId()
retrieve back the full connection.public org.xwiki.model.reference.DocumentReference getInitiatingUser()
public void setInitiatingUser(org.xwiki.model.reference.DocumentReference userReference)
userReference - the user reference to storepublic org.xwiki.model.reference.DocumentReference getContactedUser()
public void setContactedUser(org.xwiki.model.reference.DocumentReference userReference)
userReference - the user reference to storepublic org.phenotips.data.Patient getReferencePatient()
initiating user.public void setReferencePatient(org.phenotips.data.Patient patient)
patient - the reference patient to storepublic org.phenotips.data.Patient getTargetPatient()
contacted user.public void setTargetPatient(org.phenotips.data.Patient patient)
patient - the matched patient to storeCopyright © 2011–2015 University of Toronto, Computational Biology Lab. All rights reserved.