@Unstable
@Role
public interface DomainObjectFactory
Modifier and Type | Method and Description |
---|---|
Alternative |
createAlternative(String id,
javax.ws.rs.core.UriInfo uriInfo)
Create the REST representation for a link to a
Patient . |
Alternatives |
createAlternatives(List<String> alternativeIdentifiers,
javax.ws.rs.core.UriInfo uriInfo)
Create the REST representation for a list of links to
Patient s. |
PatientSummary |
createPatientSummary(Object[] summaryData,
javax.ws.rs.core.UriInfo uriInfo)
Create the REST representation for a
Patient 's summary, starting from the raw values needed for the
summary. |
PatientSummary |
createPatientSummary(Patient patient,
javax.ws.rs.core.UriInfo uriInfo)
Create the REST representation for a
Patient 's summary, starting from an actual Patient object. |
PatientSummary createPatientSummary(Patient patient, javax.ws.rs.core.UriInfo uriInfo)
Patient
's summary, starting from an actual Patient object.patient
- the patient to serializeuriInfo
- the URI information for the rest system and the current requestnull
if the current user doesn't have access to the patient or accessing
the patient data failsPatientSummary createPatientSummary(Object[] summaryData, javax.ws.rs.core.UriInfo uriInfo)
Patient
's summary, starting from the raw values needed for the
summary.summaryData
- the needed patient information to serialize, in order: document name, external identifier,
creator, creation date, current version, last author, last modification dateuriInfo
- the URI information for the rest system and the current requestnull
if the current user doesn't have access to the patient or accessing
the patient data failsAlternatives createAlternatives(List<String> alternativeIdentifiers, javax.ws.rs.core.UriInfo uriInfo)
Patient
s.alternativeIdentifiers
- the identifiers
of the patients to link touriInfo
- the URI information for the rest system and the current requestAlternative createAlternative(String id, javax.ws.rs.core.UriInfo uriInfo)
Patient
.id
- the identifier
of the patient to link touriInfo
- the URI information for the rest system and the current requestCopyright © 2011–2016 University of Toronto, Computational Biology Lab. All rights reserved.