Exemplo n.º 1
0
 @Override
 public boolean isOwnExceptionDay() {
     if (baseCalendar != null) {
         return (baseCalendar.getOwnExceptionDay(selectedDate) != null);
     }
     return false;
 }
Exemplo n.º 2
0
 @Override
 public void createException(CalendarExceptionType type,
         LocalDate startDate, LocalDate endDate, Capacity capacity) {
     for (LocalDate date = startDate; date.compareTo(endDate) <= 0; date = date
             .plusDays(1)) {
         if (baseCalendar.getOwnExceptionDay(date) != null) {
             getBaseCalendar().updateExceptionDay(date, capacity, type);
         } else {
             CalendarException day = CalendarException.create("", date,
                     capacity, type);
             getBaseCalendar().addExceptionDay(day);
         }
     }
 }