}
return extendedCourseTitle;
}
private void initUserRolesAndRights(final Identity identity) {
CourseGroupManager cgm = this.course.getCourseEnvironment().getCourseGroupManager();
// 1) course admins: users who are in repository entry owner group
// if user has the role InstitutionalResourceManager and has the same institution like author
// then set isCourseAdmin true
isCourseAdmin = cgm.isIdentityCourseAdministrator(identity) | RepositoryManager.getInstance().isInstitutionalRessourceManagerFor(courseRepositoryEntry, identity);
// 2) course coaches: users who are in the owner group of any group of this
// course
isCourseCoach = cgm.isIdentityCourseCoach(identity);
// 3) all other rights are defined in the groupmanagement using the learning
// group rights
courseRightsCache.put(CourseRights.RIGHT_GROUPMANAGEMENT, new Boolean(cgm.hasRight(identity, CourseRights.RIGHT_GROUPMANAGEMENT)));
courseRightsCache.put(CourseRights.RIGHT_COURSEEDITOR, new Boolean(cgm.hasRight(identity, CourseRights.RIGHT_COURSEEDITOR)));
courseRightsCache.put(CourseRights.RIGHT_ARCHIVING, new Boolean(cgm.hasRight(identity, CourseRights.RIGHT_ARCHIVING)));
courseRightsCache.put(CourseRights.RIGHT_ASSESSMENT, new Boolean(cgm.hasRight(identity, CourseRights.RIGHT_ASSESSMENT)));
courseRightsCache.put(CourseRights.RIGHT_GLOSSARY, new Boolean(cgm.hasRight(identity, CourseRights.RIGHT_GLOSSARY)));
courseRightsCache.put(CourseRights.RIGHT_STATISTICS, new Boolean(cgm.hasRight(identity, CourseRights.RIGHT_STATISTICS)));
}