Interface IHolidayController
- All Known Implementing Classes:
HolidayController
public interface IHolidayController
-
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateFromRecurrentHolidays(int year) insertCustomHoliday(CustomHolidayDTOIn holiday) Read all holiday periodsvoidregisterHolidayPeriod(HolidayDTO holidayArgs) Register a date range as a holidayvoidregisterHolidayPeriod(HolidayDTO holidayArgs, int years) Registers a date range as a holiday, and repeats the procedure for the additional number of years specified.voidregisterHolidays(@NotNull List<HolidayDTO> holidays) voidregisterSundays(LocalDate start, int years) Records Sundays as holidays for the specified number of years, starting fromstart.
-
Method Details
-
registerHolidayPeriod
Register a date range as a holiday -
readHolidays
Read all holiday periods- Throws:
CalendarServiceException
-
registerHolidayPeriod
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
Records Sundays as holidays for the specified number of years, starting fromstart.- Parameters:
start- start dateyears- number of years
-
registerHolidays
-
insertCustomHoliday
-
generateFromRecurrentHolidays
-
getCustomHolidays
CustomHolidaysDTOOut getCustomHolidays() -
deleteCustomHoliday
-