예제 #1
0
 public async Task <Study> GetForDatasetCreationNoAccessCheckAsync(int studyId)
 {
     return(await GetStudyFromQueryableThrowIfNotFound(StudyBaseQueries.StudyDatasetCreationQueryable(_db), studyId));
 }
예제 #2
0
 public async Task <Study> GetForDatasetCreationAsync(int studyId, UserOperation operation)
 {
     return(await GetStudyFromQueryableThrowIfNotFoundOrNoAccess(StudyBaseQueries.StudyDatasetCreationQueryable(_db), studyId, operation));
 }
예제 #3
0
 public async Task <Study> GetForParticpantOperationsAsync(int studyId, UserOperation operation, string roleBeingAddedOrRemoved = null)
 {
     return(await GetStudyFromQueryableThrowIfNotFoundOrNoAccess(StudyBaseQueries.StudyParticipantOperationsQueryable(_db), studyId, operation, roleBeingAddedOrRemoved));
 }
예제 #4
0
 public async Task <Study> GetWithParticipantsAndUsersNoAccessCheck(int studyId)
 {
     return(await GetStudyFromQueryableThrowIfNotFound(StudyBaseQueries.ActiveStudiesWithParticipantsAndUserQueryable(_db), studyId));
 }
예제 #5
0
 public async Task <Study> GetForStudyDetailsAsync(int studyId)
 {
     return(await GetStudyFromQueryableThrowIfNotFoundOrNoAccess(StudyBaseQueries.StudyDetailsQueryable(_db), studyId, UserOperation.Study_Read));
 }
예제 #6
0
 public async Task <Study> GetByIdAsync(int studyId, UserOperation userOperation)
 {
     return(await GetStudyFromQueryableThrowIfNotFoundOrNoAccess(StudyBaseQueries.ActiveStudiesWithParticipantsQueryable(_db), studyId, userOperation));
 }