@Role @Relation(value="https://phenotips.org/rel/collaborators") @ParentResource(value=PermissionsResource.class) @RelatedResources(value=org.phenotips.data.rest.PatientResource.class) public interface CollaboratorsResource
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addCollaborators(CollaboratorsRepresentation collaborators,
String entityId,
String entityType)
Add new collaborators, or update the permission levels of existing collaborators.
|
javax.ws.rs.core.Response |
addCollaborators(String entityId,
String entityType)
Add new collaborators, or update the permission levels of existing collaborators.
|
javax.ws.rs.core.Response |
deleteAllCollaborators(String entityId,
String entityType)
Delete all collaborators.
|
CollaboratorsRepresentation |
getCollaborators(String entityId,
String entityType)
Retrieve information about the collaborators.
|
javax.ws.rs.core.Response |
setCollaborators(CollaboratorsRepresentation collaborators,
String entityId,
String entityType)
Update all collaborators, replacing all previous collaborators.
|
CollaboratorsRepresentation getCollaborators(String entityId, String entityType)
entityId - internal identifier of an entity recordentityType - the type of entity (either "patients" or "families")@PATCH javax.ws.rs.core.Response addCollaborators(CollaboratorsRepresentation collaborators, String entityId, String entityType)
collaborators - a list of collaborators to modify, each of which must have id and level
propertiesentityId - internal identifier of an entity recordentityType - the type of entity (either "patients" or "families")@PATCH javax.ws.rs.core.Response addCollaborators(String entityId, String entityType)
entityId - internal identifier of an entity recordentityType - the type of entity (either "patients" or "families")javax.ws.rs.core.Response setCollaborators(CollaboratorsRepresentation collaborators, String entityId, String entityType)
collaborators - a list of collaborators, each of which must have id and level propertiesentityId - internal identifier of an entity recordentityType - the type of entity (either "patients" or "families")javax.ws.rs.core.Response deleteAllCollaborators(String entityId, String entityType)
entityId - internal identifier of an entity recordentityType - the type of entity (either "patients" or "families")Copyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.