use of org.olat.modules.assessment.ui.AssessmentToolController in project OpenOLAT by OpenOLAT.
the class BinderRuntimeController method doAssessmentTool.
private Activateable2 doAssessmentTool(UserRequest ureq) {
OLATResourceable ores = OresHelper.createOLATResourceableType("TestStatistics");
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl swControl = addToHistory(ureq, ores, null);
if (reSecurity.isEntryAdmin() || reSecurity.isCourseCoach() || reSecurity.isGroupCoach()) {
AssessmentToolSecurityCallback secCallback = new AssessmentToolSecurityCallback(reSecurity.isEntryAdmin(), reSecurity.isEntryAdmin(), reSecurity.isCourseCoach(), reSecurity.isGroupCoach(), null);
AssessableResource el = getAssessableElement();
AssessmentToolController ctrl = new AssessmentToolController(ureq, swControl, toolbarPanel, getRepositoryEntry(), el, secCallback);
listenTo(ctrl);
assessmentToolCtrl = pushController(ureq, "Statistics", ctrl);
currentToolCtr = assessmentToolCtrl;
setActiveTool(assessmentLink);
enableRuntimeNavBar(false);
return assessmentToolCtrl;
}
return null;
}
use of org.olat.modules.assessment.ui.AssessmentToolController in project openolat by klemens.
the class BinderRuntimeController method doAssessmentTool.
private Activateable2 doAssessmentTool(UserRequest ureq) {
OLATResourceable ores = OresHelper.createOLATResourceableType("TestStatistics");
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl swControl = addToHistory(ureq, ores, null);
if (reSecurity.isEntryAdmin() || reSecurity.isCourseCoach() || reSecurity.isGroupCoach()) {
AssessmentToolSecurityCallback secCallback = new AssessmentToolSecurityCallback(reSecurity.isEntryAdmin(), reSecurity.isEntryAdmin(), reSecurity.isCourseCoach(), reSecurity.isGroupCoach(), null);
AssessableResource el = getAssessableElement();
AssessmentToolController ctrl = new AssessmentToolController(ureq, swControl, toolbarPanel, getRepositoryEntry(), el, secCallback);
listenTo(ctrl);
assessmentToolCtrl = pushController(ureq, "Statistics", ctrl);
currentToolCtr = assessmentToolCtrl;
setActiveTool(assessmentLink);
enableRuntimeNavBar(false);
return assessmentToolCtrl;
}
return null;
}
use of org.olat.modules.assessment.ui.AssessmentToolController in project OpenOLAT by OpenOLAT.
the class QTI21RuntimeController method doAssessmentTool.
private Activateable2 doAssessmentTool(UserRequest ureq) {
OLATResourceable ores = OresHelper.createOLATResourceableType("TestStatistics");
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl swControl = addToHistory(ureq, ores, null);
if (reSecurity.isEntryAdmin() || reSecurity.isCourseCoach() || reSecurity.isGroupCoach()) {
AssessmentToolSecurityCallback secCallback = new AssessmentToolSecurityCallback(reSecurity.isEntryAdmin(), reSecurity.isEntryAdmin(), reSecurity.isCourseCoach(), reSecurity.isGroupCoach(), null);
AssessableResource el = getAssessableElement(getRepositoryEntry());
AssessmentToolController ctrl = new AssessmentToolController(ureq, swControl, toolbarPanel, getRepositoryEntry(), el, secCallback);
listenTo(ctrl);
assessmentToolCtrl = pushController(ureq, translate("command.openassessment"), ctrl);
currentToolCtr = assessmentToolCtrl;
setActiveTool(assessmentLink);
return assessmentToolCtrl;
}
return null;
}
use of org.olat.modules.assessment.ui.AssessmentToolController in project openolat by klemens.
the class QTI21RuntimeController method doAssessmentTool.
private Activateable2 doAssessmentTool(UserRequest ureq) {
OLATResourceable ores = OresHelper.createOLATResourceableType("TestStatistics");
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl swControl = addToHistory(ureq, ores, null);
if (reSecurity.isEntryAdmin() || reSecurity.isCourseCoach() || reSecurity.isGroupCoach()) {
AssessmentToolSecurityCallback secCallback = new AssessmentToolSecurityCallback(reSecurity.isEntryAdmin(), reSecurity.isEntryAdmin(), reSecurity.isCourseCoach(), reSecurity.isGroupCoach(), null);
AssessableResource el = getAssessableElement(getRepositoryEntry());
AssessmentToolController ctrl = new AssessmentToolController(ureq, swControl, toolbarPanel, getRepositoryEntry(), el, secCallback);
listenTo(ctrl);
assessmentToolCtrl = pushController(ureq, translate("command.openassessment"), ctrl);
currentToolCtr = assessmentToolCtrl;
setActiveTool(assessmentLink);
return assessmentToolCtrl;
}
return null;
}
Aggregations