StringBuilder extLink = new StringBuilder();
extLink.append(Settings.getServerContextPathURI()).append("/auth/repo/go?rid=");
ICourse course = CourseFactory.loadCourse(ores);
RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntry(course, true);
extLink.append(re.getKey()).append("&par=").append(node.getIdent());
KalendarEventLink link = new KalendarEventLink(COURSE_LINK_PROVIDER, node.getIdent(), node.getTitle(), extLink.toString(), node.getIconCssClass());
kalendarEventLinks.add(link);
node.setSelected(true);
}
for (int i = 0; i < node.getChildCount(); i++) {
rebuildKalendarEventLinks((TreeNode)node.getChildAt(i), selectedNodeIDs, kalendarEventLinks);