use of org.olat.course.statistic.StatisticMainController in project OpenOLAT by OpenOLAT.
the class CourseRuntimeController method doCourseStatistics.
private void doCourseStatistics(UserRequest ureq) {
if (delayedClose == Delayed.courseStatistics || requestForClose(ureq)) {
if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_STATISTICS)) {
removeCustomCSS();
ICourse course = CourseFactory.loadCourse(getRepositoryEntry());
StatisticMainController ctrl = new StatisticMainController(ureq, getWindowControl(), course);
listenTo(ctrl);
statisticsCtrl = pushController(ureq, translate("command.openstatistic"), ctrl);
setActiveTool(courseStatisticLink);
currentToolCtr = statisticsCtrl;
}
} else {
delayedClose = Delayed.courseStatistics;
}
}
use of org.olat.course.statistic.StatisticMainController in project openolat by klemens.
the class CourseRuntimeController method doCourseStatistics.
private void doCourseStatistics(UserRequest ureq) {
if (delayedClose == Delayed.courseStatistics || requestForClose(ureq)) {
if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_STATISTICS)) {
removeCustomCSS();
ICourse course = CourseFactory.loadCourse(getRepositoryEntry());
StatisticMainController ctrl = new StatisticMainController(ureq, getWindowControl(), course);
listenTo(ctrl);
statisticsCtrl = pushController(ureq, translate("command.openstatistic"), ctrl);
setActiveTool(courseStatisticLink);
currentToolCtr = statisticsCtrl;
}
} else {
delayedClose = Delayed.courseStatistics;
}
}
Aggregations