Examples of calendarExists()


Examples of org.olat.commons.calendar.CalendarManager.calendarExists()

      calendarName.setErrorKey("cal.import.calname.empty.error");
      return false;
    } else {
      CalendarManager calManager = CalendarManagerFactory.getInstance().getCalendarManager();
      String calID = ImportCalendarManager.getImportedCalendarID(identity, calendarName.getValue());
      if (calManager.calendarExists(calManager.TYPE_USER, calID)) {
        calendarName.setErrorKey("cal.import.calname.exists.error");
        return false;
      }
    }
    return true;
View Full Code Here

Examples of org.olat.commons.calendar.CalendarManager.calendarExists()

    }

    CalendarManager calendarManager = CalendarManagerFactory.getInstance().getCalendarManager();
   
    // check if the calendar exists (calendars are only persisted when an event is created)
    if (calendarManager.calendarExists(calendarType, calendarID)) {
      // read and return the calendar file
      return calendarManager.readCalendar(calendarType, calendarID);
    } else {
      // return an empty calendar file
      return new Calendar();
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.