Package org.olat.course.assessment

Examples of org.olat.course.assessment.AssessmentMainController$AssessmentCachePreloadThread


  }

  private void launchAssessmentTool(UserRequest ureq, String viewIdentifier) {
    // 1) course admins and users with tool right: full access
    if (hasCourseRight(CourseRights.RIGHT_ASSESSMENT) || isCourseAdmin) {
      AssessmentMainController assessmentToolCtr = new AssessmentMainController(ureq, getWindowControl(), course,
          new FullAccessAssessmentCallback());
      assessmentToolCtr.activate(ureq, viewIdentifier);
      currentToolCtr = assessmentToolCtr;
      listenTo(currentToolCtr);
      all.setContent(currentToolCtr.getInitialComponent());
    }
    // 2) users with coach right: limited access to coached groups
    else if (isCourseCoach) {
      AssessmentMainController assessmentToolCtr = new AssessmentMainController(ureq, getWindowControl(), course,
          new CoachingGroupAccessAssessmentCallback());
      assessmentToolCtr.activate(ureq, viewIdentifier);
      currentToolCtr = assessmentToolCtr;
      listenTo(currentToolCtr);
      all.setContent(currentToolCtr.getInitialComponent());
    } else throw new OLATSecurityException("clicked assessment tool in course::" + course.getResourceableId()
        + ", but no right to launch it. Username::" + ureq.getIdentity().getName());
View Full Code Here

TOP

Related Classes of org.olat.course.assessment.AssessmentMainController$AssessmentCachePreloadThread

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.