Search in sources :

Example 1 with AssessmentModeListController

use of org.olat.course.assessment.ui.mode.AssessmentModeListController in project OpenOLAT by OpenOLAT.

the class CourseRuntimeController method doAssessmentMode.

private void doAssessmentMode(UserRequest ureq) {
    if (delayedClose == Delayed.assessmentMode || requestForClose(ureq)) {
        if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR) || hasCourseRight(CourseRights.RIGHT_ASSESSMENT_MODE)) {
            removeCustomCSS();
            AssessmentModeListController ctrl = new AssessmentModeListController(ureq, getWindowControl(), toolbarPanel, getRepositoryEntry());
            assessmentModeCtrl = pushController(ureq, translate("command.assessment.mode"), ctrl);
            setActiveTool(assessmentModeLink);
            currentToolCtr = assessmentModeCtrl;
        }
    } else {
        delayedClose = Delayed.assessmentMode;
    }
}
Also used : AssessmentModeListController(org.olat.course.assessment.ui.mode.AssessmentModeListController)

Example 2 with AssessmentModeListController

use of org.olat.course.assessment.ui.mode.AssessmentModeListController in project openolat by klemens.

the class CourseRuntimeController method doAssessmentMode.

private void doAssessmentMode(UserRequest ureq) {
    if (delayedClose == Delayed.assessmentMode || requestForClose(ureq)) {
        if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR) || hasCourseRight(CourseRights.RIGHT_ASSESSMENT_MODE)) {
            removeCustomCSS();
            AssessmentModeListController ctrl = new AssessmentModeListController(ureq, getWindowControl(), toolbarPanel, getRepositoryEntry());
            assessmentModeCtrl = pushController(ureq, translate("command.assessment.mode"), ctrl);
            setActiveTool(assessmentModeLink);
            currentToolCtr = assessmentModeCtrl;
        }
    } else {
        delayedClose = Delayed.assessmentMode;
    }
}
Also used : AssessmentModeListController(org.olat.course.assessment.ui.mode.AssessmentModeListController)

Aggregations

AssessmentModeListController (org.olat.course.assessment.ui.mode.AssessmentModeListController)2