use of org.pmiops.workbench.db.model.ParticipantCohortAnnotation in project workbench by all-of-us.
the class CohortReviewServiceImpl method deleteParticipantCohortAnnotation.
@Override
public void deleteParticipantCohortAnnotation(Long annotationId, Long cohortReviewId, Long participantId) {
ParticipantCohortAnnotation participantCohortAnnotation = participantCohortAnnotationDao.findByAnnotationIdAndCohortReviewIdAndParticipantId(annotationId, cohortReviewId, participantId);
if (participantCohortAnnotation == null) {
throw new NotFoundException(String.format("Not Found: No participant cohort annotation found for annotationId: %s," + " cohortReviewId: %s, participantId: %s", annotationId, cohortReviewId, participantId));
}
participantCohortAnnotationDao.delete(participantCohortAnnotation);
}
Aggregations