Package org.olat.course.run.calendar

Examples of org.olat.course.run.calendar.CourseCalendarSubscription


        currentCalendarID = ureq.getParameter(PARAM_ID);
        confirmRemoveDialog = activateOkCancelDialog(ureq, translate("cal.icalfeed.remove.title"), translate("cal.icalfeed.remove.confirmation_message"), confirmRemoveDialog);
      } else if (command.equals(CMD_UNSUBSCRIBE)) {
        currentCalendarID = ureq.getParameter(PARAM_ID);
        KalendarRenderWrapper calendarWrapper = findKalendarRenderWrapper(currentCalendarID);
        CalendarSubscription subscription = new CourseCalendarSubscription(calendarWrapper.getKalendar(), ureq.getUserSession().getGuiPreferences());
        subscription.unsubscribe();
       
        for (Iterator<KalendarRenderWrapper> it=calendars.iterator(); it.hasNext(); ) {
          KalendarRenderWrapper calendar = it.next();
          if (calendarWrapper.getKalendar().getCalendarID().equals(calendar.getKalendar().getCalendarID())) {
            it.remove();
View Full Code Here


    this.config = calCourseNode.getModuleConfiguration();
    mainVC = createVelocityContainer("run");

    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

  public Kalendar getKalendar() {
    return courseKalendarWrapper.getKalendar();
  }

  public CourseCalendarSubscription createSubscription(UserRequest ureq) {
    CourseCalendarSubscription calSubscription = new CourseCalendarSubscription(getKalendar(), ureq.getUserSession().getGuiPreferences());
    return calSubscription;
  }
View Full Code Here

    calendarController.dispose();
  }

  public Controller cloneController(UserRequest ureq, WindowControl wControl) {
    CourseCalendars myCal = new CourseCalendars(courseKalendarWrapper, calendars);
    CourseCalendarSubscription calSubscription = myCal.createSubscription(ureq);
    return new CourseCalendarController(ureq, wControl, myCal, calSubscription, ores);
  }
View Full Code Here

TOP

Related Classes of org.olat.course.run.calendar.CourseCalendarSubscription

Copyright © 2018 www.massapicom. 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.