@Role @Relation(value="https://phenotips.org/rel/visibility") @ParentResource(value=PermissionsResource.class) @RelatedResources(value=org.phenotips.data.rest.PatientResource.class) public interface VisibilityResource
| Modifier and Type | Method and Description |
|---|---|
VisibilityRepresentation |
getVisibility(String entityId,
String entityType)
Retrieve the
Visibility of an entity identified by `entityId`. |
javax.ws.rs.core.Response |
setVisibility(String entityId,
String entityType)
Update the visibility of an entity.
|
javax.ws.rs.core.Response |
setVisibility(VisibilityRepresentation visibility,
String entityId,
String entityType)
Update the visibility of an entity.
|
VisibilityRepresentation getVisibility(String entityId, String entityType)
Visibility of an entity identified by `entityId`. 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.entityId - identifier of the entity whose visibility to retrieveentityType - the type of entity (either "patients" or "families")javax.ws.rs.core.Response setVisibility(VisibilityRepresentation visibility, String entityId, String entityType)
visibility - which must contain "level" parameter, with a valid visibility level name as the valueentityId - identifier of the entity whose visibility should be changedentityType - the type of entity (either "patients" or "families")javax.ws.rs.core.Response setVisibility(String entityId, String entityType)
entityId - identifier of the entity whose visibility should be changedentityType - the type of entity (either "patients" or "families")Copyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.