@Role @Relation(value="https://phenotips.org/rel/owner") @ParentResource(value=PermissionsResource.class) @RelatedResources(value=org.phenotips.data.rest.PatientResource.class) public interface OwnerResource
| Modifier and Type | Method and Description |
|---|---|
OwnerRepresentation |
getOwner(String entityId,
String entityType)
Retrieves the owner of an entity record - which is found by the passed in entity identifier - if the indicated
entity record doesn't exist, or if the user sending the request doesn't have the right to view the target
entity record, an error is returned.
|
javax.ws.rs.core.Response |
setOwner(OwnerRepresentation owner,
String entityId,
String entityType)
Updates the owner of an entity record - identified by `entityId` - with the owner specified in JSON.
|
javax.ws.rs.core.Response |
setOwner(String entityId,
String entityType)
Updates the owner of an entity record - identified by `entityId` - with the owner specified in JSON.
|
OwnerRepresentation getOwner(String entityId, String entityType)
entityId - internal identifier of an entity recordentityType - the type of entity (either "patients" or "families")javax.ws.rs.core.Response setOwner(OwnerRepresentation owner, String entityId, String entityType)
owner - an owner representation, only the id property is required, with a value of either a fully
qualified username or a plain username (eg. xwiki:XWiki.username or username)entityId - identifier of the entity whose owner should be changedentityType - the type of entity (either "patients" or "families")javax.ws.rs.core.Response setOwner(String entityId, String entityType)
entityId - identifier of the entity, whose owner should be changedentityType - the type of entity (either "patients" or "families")Copyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.