detailView.contextPut("courseNodeCss", CourseNodeFactory.getInstance().getCourseNodeConfiguration(courseNode.getType()).getIconCSSClass());
// push infos about users groups
List<BusinessGroup> participantGroups = course.getCourseEnvironment().getCourseGroupManager().getParticipatingLearningGroupsFromAllContexts(
assessedIdentity);
final Collator collator = Collator.getInstance(ureq.getLocale());
Collections.sort(participantGroups, new Comparator<BusinessGroup>() {
public int compare(BusinessGroup a, BusinessGroup b) {
return collator.compare(a.getName(), b.getName());
}
});
detailView.contextPut("participantGroups", participantGroups);
detailView.contextPut("noParticipantGroups", (participantGroups.size() > 0 ? Boolean.FALSE : Boolean.TRUE));