@Relation(value="https://phenotips.org/rel/collaborator") @ParentResource(value=CollaboratorsResource.class) @RelatedResources(value={PermissionsResource.class,org.phenotips.data.rest.PatientResource.class}) public interface CollaboratorResource
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
deleteCollaborator(String entityId,
String entityType,
String collaboratorId)
Remove a particular collaborator from an entity record.
|
CollaboratorRepresentation |
getCollaborator(String entityId,
String entityType,
String collaboratorId)
Retrieve information about a particular collaborator.
|
javax.ws.rs.core.Response |
setLevel(CollaboratorRepresentation collaborator,
String entityId,
String entityType,
String collaboratorId)
Update the access level of a collaborator.
|
javax.ws.rs.core.Response |
setLevel(String entityId,
String entityType,
String collaboratorId)
Update the access level of a collaborator.
|
CollaboratorRepresentation getCollaborator(String entityId, String entityType, String collaboratorId)
entityId - internal identifier of an entity recordentityType - the type of entity (either "patients" or "families")collaboratorId - internal id of a principal, ideally fully qualified, (ex. xwiki:XWiki.JohnDoe)javax.ws.rs.core.Response setLevel(CollaboratorRepresentation collaborator, String entityId, String entityType, String collaboratorId)
collaborator - a collaborator representation, must contain the "level" property, with a value which is a
valid access level; all other properties are ignoredentityId - internal identifier of an entity recordentityType - the type of entity (either "patients" or "families")collaboratorId - internal id of a principal, ideally fully qualified, (ex. xwiki:XWiki.JohnDoe)javax.ws.rs.core.Response setLevel(String entityId, String entityType, String collaboratorId)
entityId - internal identifier of an entity recordentityType - the type of entity (either "patients" or "families")collaboratorId - internal id of a principal, ideally fully qualified, (ex. xwiki:XWiki.JohnDoe)javax.ws.rs.core.Response deleteCollaborator(String entityId, String entityType, String collaboratorId)
entityId - internal identifier of an entity recordentityType - the type of entity (either "patients" or "families")collaboratorId - internal id of a principal, ideally fully qualified, (ex. xwiki:XWiki.JohnDoe)Copyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.