Package org.olat.course.run.calendar

Examples of org.olat.course.run.calendar.CourseCalendarSubscription.subscribe()


    ICourse course = CourseFactory.loadCourse(cenv.getCourseResourceableId());
    CourseCalendars myCal = CourseCalendars.createCourseCalendarsWrapper(ureq, wControl, course);
    CourseCalendarSubscription calSubscription = myCal.createSubscription(ureq);
    if(CalEditController.getAutoSubscribe(config)) {
      if(!calSubscription.isSubscribed()) {
        calSubscription.subscribe(false);
        ureq.getUserSession().getSingleUserEventCenter().fireEventToListenersOf(new KalendarModifiedEvent(), OresHelper.lookupType(CalendarManager.class));
      }
    }
   
    calCtr = new CourseCalendarController(ureq, wControl, myCal, calSubscription, course);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.