}
private void launchAssessmentTool(UserRequest ureq, String viewIdentifier) {
// 1) course admins and users with tool right: full access
if (hasCourseRight(CourseRights.RIGHT_ASSESSMENT) || isCourseAdmin) {
AssessmentMainController assessmentToolCtr = new AssessmentMainController(ureq, getWindowControl(), course,
new FullAccessAssessmentCallback());
assessmentToolCtr.activate(ureq, viewIdentifier);
currentToolCtr = assessmentToolCtr;
listenTo(currentToolCtr);
all.setContent(currentToolCtr.getInitialComponent());
}
// 2) users with coach right: limited access to coached groups
else if (isCourseCoach) {
AssessmentMainController assessmentToolCtr = new AssessmentMainController(ureq, getWindowControl(), course,
new CoachingGroupAccessAssessmentCallback());
assessmentToolCtr.activate(ureq, viewIdentifier);
currentToolCtr = assessmentToolCtr;
listenTo(currentToolCtr);
all.setContent(currentToolCtr.getInitialComponent());
} else throw new OLATSecurityException("clicked assessment tool in course::" + course.getResourceableId()
+ ", but no right to launch it. Username::" + ureq.getIdentity().getName());