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;
}
}
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;
}
}
Aggregations