CalendarLink calendarLink = new CalendarLink(executionCourse, writtenEvaluation, I18N.getLocale());
calendarLinks.add(calendarLink);
calendarLink.setLinkParameters(constructLinkParameters(executionCourse));
}
} else if (evaluation instanceof Project) {
final Project project = (Project) evaluation;
final String evaluationTypeClassname = getEvaluationTypeClassname();
if (evaluationTypeClassname == null || evaluationTypeClassname.length() == 0
|| evaluationTypeClassname.equals(project.getClass().getName())) {
CalendarLink calendarLinkBegin = new CalendarLink();
calendarLinks.add(calendarLinkBegin);
calendarLinkBegin.setObjectOccurrence(project.getBegin());
calendarLinkBegin.setObjectLinkLabel(constructCalendarPresentation(executionCourse, project,
project.getBegin(), messages.getMessage("label.evaluation.project.begin")));
calendarLinkBegin.setLinkParameters(constructLinkParameters(executionCourse));
CalendarLink calendarLinkEnd = new CalendarLink();
calendarLinks.add(calendarLinkEnd);
calendarLinkEnd.setObjectOccurrence(project.getEnd());
calendarLinkEnd.setObjectLinkLabel(constructCalendarPresentation(executionCourse, project,
project.getEnd(), messages.getMessage("label.evaluation.project.end")));
calendarLinkEnd.setLinkParameters(constructLinkParameters(executionCourse));
}
}
}
}