Search in sources :

Example 1 with CertificatesOptionsController

use of org.olat.course.certificate.ui.CertificatesOptionsController in project OpenOLAT by OpenOLAT.

the class CourseRuntimeController method doCertificatesOptions.

private void doCertificatesOptions(UserRequest ureq) {
    if (delayedClose == Delayed.certificates || requestForClose(ureq)) {
        if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR)) {
            removeCustomCSS();
            ICourse course = CourseFactory.loadCourse(getRepositoryEntry());
            CourseConfig courseConfig = course.getCourseEnvironment().getCourseConfig().clone();
            WindowControl bwControl = getSubWindowControl("CertificationSettings");
            CertificatesOptionsController ctrl = new CertificatesOptionsController(ureq, addToHistory(ureq, bwControl), getRepositoryEntry(), courseConfig, true);
            certificatesOptionsCtrl = pushController(ureq, translate("command.options"), ctrl);
            setActiveTool(certificatesOptionsLink);
            currentToolCtr = certificatesOptionsCtrl;
        }
    } else {
        delayedClose = Delayed.certificates;
    }
}
Also used : CertificatesOptionsController(org.olat.course.certificate.ui.CertificatesOptionsController) ICourse(org.olat.course.ICourse) WindowControl(org.olat.core.gui.control.WindowControl) CourseConfig(org.olat.course.config.CourseConfig)

Example 2 with CertificatesOptionsController

use of org.olat.course.certificate.ui.CertificatesOptionsController in project openolat by klemens.

the class CourseRuntimeController method doCertificatesOptions.

private void doCertificatesOptions(UserRequest ureq) {
    if (delayedClose == Delayed.certificates || requestForClose(ureq)) {
        if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR)) {
            removeCustomCSS();
            ICourse course = CourseFactory.loadCourse(getRepositoryEntry());
            CourseConfig courseConfig = course.getCourseEnvironment().getCourseConfig().clone();
            WindowControl bwControl = getSubWindowControl("CertificationSettings");
            CertificatesOptionsController ctrl = new CertificatesOptionsController(ureq, addToHistory(ureq, bwControl), getRepositoryEntry(), courseConfig, true);
            certificatesOptionsCtrl = pushController(ureq, translate("command.options"), ctrl);
            setActiveTool(certificatesOptionsLink);
            currentToolCtr = certificatesOptionsCtrl;
        }
    } else {
        delayedClose = Delayed.certificates;
    }
}
Also used : CertificatesOptionsController(org.olat.course.certificate.ui.CertificatesOptionsController) ICourse(org.olat.course.ICourse) WindowControl(org.olat.core.gui.control.WindowControl) CourseConfig(org.olat.course.config.CourseConfig)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)2 ICourse (org.olat.course.ICourse)2 CertificatesOptionsController (org.olat.course.certificate.ui.CertificatesOptionsController)2 CourseConfig (org.olat.course.config.CourseConfig)2