use of fi.otavanopisto.muikku.calendar.Calendar in project muikku by otavanopisto.
the class CalendarController method deleteCalendar.
public void deleteCalendar(UserCalendar userCalendar) throws CalendarServiceException {
CalendarServiceProvider provider = getCalendarServiceProvider(userCalendar.getCalendarProvider());
Calendar calendar = provider.findCalendar(userCalendar.getCalendarId());
if (calendar == null) {
throw new CalendarServiceException("Could not find calendar for user calendar #" + userCalendar.getId());
}
provider.deleteCalendar(calendar);
}
Aggregations