use of org.olat.commons.calendar.model.CalendarUserConfiguration in project openolat by klemens.
the class HomeCalendarManager method appendPersonalCalendar.
private void appendPersonalCalendar(Identity identity, List<KalendarRenderWrapper> calendars, Map<CalendarKey, CalendarUserConfiguration> configMap) {
// get the personal calendar
if (calendarModule.isEnablePersonalCalendar()) {
try {
KalendarRenderWrapper calendarWrapper = calendarManager.getPersonalCalendar(identity);
calendarWrapper.setAccess(KalendarRenderWrapper.ACCESS_READ_WRITE);
calendarWrapper.setPrivateEventsVisible(true);
CalendarUserConfiguration config = configMap.get(calendarWrapper.getCalendarKey());
if (config != null) {
calendarWrapper.setConfiguration(config);
}
calendars.add(calendarWrapper);
} catch (Exception e) {
log.error("Cannot read personal calendar of: " + identity, e);
}
}
}
Aggregations