use of org.olat.course.assessment.ui.tool.AssessmentToolController in project OpenOLAT by OpenOLAT.
the class CourseRuntimeController method doAssessmentTool.
private Activateable2 doAssessmentTool(UserRequest ureq) {
if (delayedClose == Delayed.assessmentTool || requestForClose(ureq)) {
OLATResourceable ores = OresHelper.createOLATResourceableType("assessmentToolv2");
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl swControl = addToHistory(ureq, ores, null);
boolean admin = reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_ASSESSMENT);
boolean nonMembers = reSecurity.isEntryAdmin();
boolean repositoryEntryMembers = reSecurity.isCourseCoach();
boolean businessGoupMembers = reSecurity.isGroupCoach();
List<BusinessGroup> coachedGroups = null;
if (businessGoupMembers) {
coachedGroups = getUserCourseEnvironment().getCoachedGroups();
}
AssessmentToolSecurityCallback secCallBack = new AssessmentToolSecurityCallback(admin, nonMembers, repositoryEntryMembers, businessGoupMembers, coachedGroups);
removeCustomCSS();
AssessmentToolController ctrl = new AssessmentToolController(ureq, swControl, toolbarPanel, getRepositoryEntry(), getUserCourseEnvironment(), secCallBack);
ctrl.activate(ureq, null, null);
listenTo(ctrl);
assessmentToolCtr = pushController(ureq, translate("command.openassessment"), ctrl);
assessmentToolCtr.assessmentModeMessage();
currentToolCtr = assessmentToolCtr;
setActiveTool(assessmentLink);
ctrl.initToolbar();
return assessmentToolCtr;
} else {
delayedClose = Delayed.assessmentTool;
}
return null;
}
use of org.olat.course.assessment.ui.tool.AssessmentToolController in project openolat by klemens.
the class CourseRuntimeController method doAssessmentTool.
private Activateable2 doAssessmentTool(UserRequest ureq) {
if (delayedClose == Delayed.assessmentTool || requestForClose(ureq)) {
OLATResourceable ores = OresHelper.createOLATResourceableType("assessmentToolv2");
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl swControl = addToHistory(ureq, ores, null);
boolean admin = reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_ASSESSMENT);
boolean nonMembers = reSecurity.isEntryAdmin();
boolean repositoryEntryMembers = reSecurity.isCourseCoach();
boolean businessGoupMembers = reSecurity.isGroupCoach();
List<BusinessGroup> coachedGroups = null;
if (businessGoupMembers) {
coachedGroups = getUserCourseEnvironment().getCoachedGroups();
}
AssessmentToolSecurityCallback secCallBack = new AssessmentToolSecurityCallback(admin, nonMembers, repositoryEntryMembers, businessGoupMembers, coachedGroups);
removeCustomCSS();
AssessmentToolController ctrl = new AssessmentToolController(ureq, swControl, toolbarPanel, getRepositoryEntry(), getUserCourseEnvironment(), secCallBack);
ctrl.activate(ureq, null, null);
listenTo(ctrl);
assessmentToolCtr = pushController(ureq, translate("command.openassessment"), ctrl);
assessmentToolCtr.assessmentModeMessage();
currentToolCtr = assessmentToolCtr;
setActiveTool(assessmentLink);
ctrl.initToolbar();
return assessmentToolCtr;
} else {
delayedClose = Delayed.assessmentTool;
}
return null;
}
Aggregations