Package services.publix.workers
Class PersonalMultipleStudyAuthorisation
- java.lang.Object
-
- services.publix.StudyAuthorisation
-
- services.publix.workers.PersonalMultipleStudyAuthorisation
-
@Singleton public class PersonalMultipleStudyAuthorisation extends StudyAuthorisation
StudyAuthorization for PersonalMultipleWorker
-
-
Constructor Summary
Constructors Constructor Description PersonalMultipleStudyAuthorisation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckWorkerAllowedToDoStudy(play.mvc.Http.Session session, Worker worker, Study study, Batch batch)Checks whether the given worker is allowed to do this study in this batch.voidcheckWorkerAllowedToStartStudy(play.mvc.Http.Session session, Worker worker, Study study, Batch batch)Checks whether the given worker is allowed to start this study in this batch.-
Methods inherited from class services.publix.StudyAuthorisation
checkMaxTotalWorkers
-
-
-
-
Method Detail
-
checkWorkerAllowedToStartStudy
public void checkWorkerAllowedToStartStudy(play.mvc.Http.Session session, Worker worker, Study study, Batch batch) throws ForbiddenPublixExceptionDescription copied from class:StudyAuthorisationChecks whether the given worker is allowed to start this study in this batch. If the worker has no permission an ForbiddenPublixException is thrown. This method should only be used during the start of a study.- Specified by:
checkWorkerAllowedToStartStudyin classStudyAuthorisation- Throws:
ForbiddenPublixException
-
checkWorkerAllowedToDoStudy
public void checkWorkerAllowedToDoStudy(play.mvc.Http.Session session, Worker worker, Study study, Batch batch) throws ForbiddenPublixExceptionDescription copied from class:StudyAuthorisationChecks whether the given worker is allowed to do this study in this batch. If the worker has no permission an ForbiddenPublixException is thrown. This method can be used during all states of a StudyResult.- Specified by:
checkWorkerAllowedToDoStudyin classStudyAuthorisation- Throws:
ForbiddenPublixException
-
-