@Singleton
public class ResultRemover
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
removeComponentResults(java.util.List<java.lang.Long> componentResultIdList,
User user,
boolean removeEmptyStudyResults)
Retrieves all ComponentResults that correspond to the IDs in the given
String, checks them and if yes, removes them.
|
void |
removeStudyResults(java.util.List<java.lang.Long> studyResultIdList,
User user)
Retrieves all StudyResults that correspond to the IDs in the given
String, checks if the given user is allowed to remove them and if yes,
removes them.
|
public void removeComponentResults(java.util.List<java.lang.Long> componentResultIdList,
User user,
boolean removeEmptyStudyResults)
throws BadRequestException,
NotFoundException,
ForbiddenException
componentResultIdList - List of IDs of ComponentResultsuser - For each ComponentResult it will be checked that the given
user is a user of the study that the ComponentResult belongs
too.BadRequestExceptionNotFoundExceptionForbiddenExceptionpublic void removeStudyResults(java.util.List<java.lang.Long> studyResultIdList,
User user)
throws BadRequestException,
NotFoundException,
ForbiddenException
studyResultIdList - List of IDs of StudyResults.user - For each StudyResult it will be checked that the given user is
a user of the study that the StudyResult belongs too.BadRequestExceptionNotFoundExceptionForbiddenException