Interface IHolidayController

All Known Implementing Classes:
HolidayController

public interface IHolidayController
  • Method Details

    • registerHolidayPeriod

      void registerHolidayPeriod(HolidayDTO holidayArgs)
      Register a date range as a holiday
    • readHolidays

      Read all holiday periods
      Throws:
      CalendarServiceException
    • registerHolidayPeriod

      void registerHolidayPeriod(HolidayDTO holidayArgs, int years)
      Registers a date range as a holiday, and repeats the procedure for the additional number of years specified.
      Parameters:
      years - number of years to repeat beyond the specified one, in the start and end dates. greater than 0 in the future, less than 0 in the past, equal to 0 for the specified year only. If the repetition is in the past, the current year is not considered.
    • registerSundays

      void registerSundays(LocalDate start, int years)
      Records Sundays as holidays for the specified number of years, starting from start.
      Parameters:
      start - start date
      years - number of years
    • registerHolidays

      void registerHolidays(@NotNull @NotNull List<HolidayDTO> holidays)
    • insertCustomHoliday

      CustomHolidayIdDTO insertCustomHoliday(CustomHolidayDTOIn holiday)
    • generateFromRecurrentHolidays

      List<HolidayDTO> generateFromRecurrentHolidays(int year)
    • getCustomHolidays

      CustomHolidaysDTOOut getCustomHolidays()
    • deleteCustomHoliday

      void deleteCustomHoliday(CustomHolidayIdDTO dto)