@Unstable
@Role
public interface DomainObjectFactory
| Modifier and Type | Method and Description |
|---|---|
CollaboratorRepresentation |
createCollaboratorRepresentation(Collaborator collaborator)
Create the REST representation for summary of a
Collaborator instance, starting from a
PrimaryEntity and Collaborator instances. |
CollaboratorsRepresentation |
createCollaboratorsRepresentation(PrimaryEntity entity,
javax.ws.rs.core.UriInfo uriInfo)
Create the REST representation for a list of
Collaborators, starting from a PrimaryEntity
instance. |
OwnerRepresentation |
createOwnerRepresentation(PrimaryEntity entity)
Create the REST representation for a
Owner's summary, starting from a
PrimaryEntity instance. |
PrincipalsRepresentation |
createPrincipalsRepresentation(PrimaryEntity entity,
String entityType,
javax.ws.rs.core.UriInfo uriInfo)
Create the REST representation for a list of principals that have access to the
PrimaryEntity. |
VisibilityRepresentation |
createVisibilityRepresentation(PrimaryEntity entity)
Create the REST representation for a
Visibility's summary, starting from a
PrimaryEntity instance. |
VisibilityRepresentation |
createVisibilityRepresentation(Visibility visibility)
Create the REST representation for a
Visibility's summary, starting from a
Visibility instance. |
OwnerRepresentation createOwnerRepresentation(PrimaryEntity entity)
Owner's summary, starting from a
PrimaryEntity instance.entity - the owner of this entity will be serializednull if the current user doesn't have access to the
entity or accessing the entity data failsVisibilityRepresentation createVisibilityRepresentation(PrimaryEntity entity)
Visibility's summary, starting from a
PrimaryEntity instance.entity - whose visibility is of interestnull if the current user doesn't have access to
the entity or accessing the entity data failsVisibilityRepresentation createVisibilityRepresentation(Visibility visibility)
Visibility's summary, starting from a
Visibility instance.visibility - of interestnull if the visibility is nullCollaboratorsRepresentation createCollaboratorsRepresentation(PrimaryEntity entity, javax.ws.rs.core.UriInfo uriInfo)
Collaborators, starting from a PrimaryEntity
instance.entity - to whom the the (list of) collaborators that are attacheduriInfo - the URI information for the rest system and the current requestnull if the current user doesn't have
access to the entity or accessing the entity data fails.CollaboratorRepresentation createCollaboratorRepresentation(Collaborator collaborator)
Collaborator instance, starting from a
PrimaryEntity and Collaborator instances.collaborator - that is to be representednull if the current user doesn't have access to the entity or
accessing the entity data fails.PrincipalsRepresentation createPrincipalsRepresentation(PrimaryEntity entity, String entityType, javax.ws.rs.core.UriInfo uriInfo)
PrimaryEntity.entity - whose accessers are of interestentityType - the type of entityuriInfo - 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 fails.Copyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.