Search in sources :

Example 6 with WeeklyCalendarController

use of org.olat.commons.calendar.ui.WeeklyCalendarController in project openolat by klemens.

the class GroupInfoMainController method getCalendarController.

private WeeklyCalendarController getCalendarController(UserRequest ureq) {
    if (calendarController == null) {
        OLATResourceable ores = OresHelper.createOLATResourceableInstance("Calendar", 0l);
        WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
        List<KalendarRenderWrapper> calendarWrappers = new ArrayList<>(2);
        KalendarRenderWrapper groupCalendar = calendarManager.getGroupCalendar(businessGroup);
        groupCalendar.setPrivateEventsVisible(false);
        calendarWrappers.add(groupCalendar);
        calendarController = new WeeklyCalendarController(ureq, bwControl, calendarWrappers, WeeklyCalendarController.CALLER_COLLAB, businessGroup, false);
        listenTo(calendarController);
    }
    layoutController.setCol3(calendarController.getInitialComponent());
    addToHistory(ureq, calendarController);
    return calendarController;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) ArrayList(java.util.ArrayList) WeeklyCalendarController(org.olat.commons.calendar.ui.WeeklyCalendarController) WindowControl(org.olat.core.gui.control.WindowControl) KalendarRenderWrapper(org.olat.commons.calendar.ui.components.KalendarRenderWrapper)

Aggregations

ArrayList (java.util.ArrayList)6 WeeklyCalendarController (org.olat.commons.calendar.ui.WeeklyCalendarController)6 KalendarRenderWrapper (org.olat.commons.calendar.ui.components.KalendarRenderWrapper)6 WindowControl (org.olat.core.gui.control.WindowControl)4 OLATResourceable (org.olat.core.id.OLATResourceable)4 CalendarUserConfiguration (org.olat.commons.calendar.model.CalendarUserConfiguration)2 ICourse (org.olat.course.ICourse)2 CourseLinkProviderController (org.olat.course.run.calendar.CourseLinkProviderController)2 BusinessGroupService (org.olat.group.BusinessGroupService)2 RepositoryEntry (org.olat.repository.RepositoryEntry)2