Search in sources :

Example 1 with FullAccessArchiverCallback

use of org.olat.course.archiver.FullAccessArchiverCallback in project openolat by klemens.

the class CourseRuntimeController method doArchive.

private void doArchive(UserRequest ureq) {
    if (delayedClose == Delayed.archive || requestForClose(ureq)) {
        if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_ARCHIVING)) {
            removeCustomCSS();
            ICourse course = CourseFactory.loadCourse(getRepositoryEntry());
            ArchiverMainController ctrl = new ArchiverMainController(ureq, getWindowControl(), course, new FullAccessArchiverCallback());
            listenTo(ctrl);
            archiverCtrl = pushController(ureq, translate("command.openarchiver"), ctrl);
            currentToolCtr = archiverCtrl;
            setActiveTool(archiverLink);
        }
    } else {
        delayedClose = Delayed.archive;
    }
}
Also used : ArchiverMainController(org.olat.course.archiver.ArchiverMainController) ICourse(org.olat.course.ICourse) FullAccessArchiverCallback(org.olat.course.archiver.FullAccessArchiverCallback)

Example 2 with FullAccessArchiverCallback

use of org.olat.course.archiver.FullAccessArchiverCallback in project OpenOLAT by OpenOLAT.

the class CourseRuntimeController method doArchive.

private void doArchive(UserRequest ureq) {
    if (delayedClose == Delayed.archive || requestForClose(ureq)) {
        if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_ARCHIVING)) {
            removeCustomCSS();
            ICourse course = CourseFactory.loadCourse(getRepositoryEntry());
            ArchiverMainController ctrl = new ArchiverMainController(ureq, getWindowControl(), course, new FullAccessArchiverCallback());
            listenTo(ctrl);
            archiverCtrl = pushController(ureq, translate("command.openarchiver"), ctrl);
            currentToolCtr = archiverCtrl;
            setActiveTool(archiverLink);
        }
    } else {
        delayedClose = Delayed.archive;
    }
}
Also used : ArchiverMainController(org.olat.course.archiver.ArchiverMainController) ICourse(org.olat.course.ICourse) FullAccessArchiverCallback(org.olat.course.archiver.FullAccessArchiverCallback)

Aggregations

ICourse (org.olat.course.ICourse)2 ArchiverMainController (org.olat.course.archiver.ArchiverMainController)2 FullAccessArchiverCallback (org.olat.course.archiver.FullAccessArchiverCallback)2