ImportCalendarManager.reloadUrlImportedCalendars(ureq);
return ImportCalendarManager.getImportedCalendarsForIdentity(ureq);
}
private static void addCalendars(UserRequest ureq, List<BusinessGroup> groups, boolean isOwner, List<KalendarRenderWrapper> calendars) {
CollaborationToolsFactory collabFactory = CollaborationToolsFactory.getInstance();
CalendarManager calendarManager = CalendarManagerFactory.getInstance().getCalendarManager();
for (Iterator<BusinessGroup> iter = groups.iterator(); iter.hasNext();) {
BusinessGroup bGroup = iter.next();
CollaborationTools collabTools = collabFactory.getOrCreateCollaborationTools(bGroup);
if (!collabTools.isToolEnabled(CollaborationTools.TOOL_CALENDAR)) continue;
KalendarRenderWrapper groupCalendarWrapper = calendarManager.getGroupCalendar(bGroup);
// set calendar access
int iCalAccess = CollaborationTools.CALENDAR_ACCESS_OWNERS;
Long lCalAccess = collabTools.lookupCalendarAccess();