Class StudyAuthorisation

    • Constructor Detail

      • StudyAuthorisation

        public StudyAuthorisation()
    • Method Detail

      • checkWorkerAllowedToStartStudy

        public abstract void checkWorkerAllowedToStartStudy​(play.mvc.Http.Session session,
                                                            Worker worker,
                                                            Study study,
                                                            Batch batch)
                                                     throws ForbiddenPublixException
        Checks 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.
        Throws:
        ForbiddenPublixException
      • checkWorkerAllowedToDoStudy

        public abstract void checkWorkerAllowedToDoStudy​(play.mvc.Http.Session session,
                                                         Worker worker,
                                                         Study study,
                                                         Batch batch)
                                                  throws ForbiddenPublixException
        Checks 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.
        Throws:
        ForbiddenPublixException