Class HolidayController
java.lang.Object
org.cswteams.ms3.control.preferenze.HolidayController
- All Implemented Interfaces:
IHolidayController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteCustomHoliday(@Valid @NotNull CustomHolidayIdDTO dto) generateFromRecurrentHolidays(int year) insertCustomHoliday(@Valid CustomHolidayDTOIn holiday) readHolidays(@Valid RetrieveHolidaysDTOIn dto) 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) Registra le domeniche come festività per il numero di anni specificato a partire dalla data specificata.
-
Constructor Details
-
HolidayController
public HolidayController()
-
-
Method Details
-
registerSundays
Registra le domeniche come festività per il numero di anni specificato a partire dalla data specificata.- Specified by:
registerSundaysin interfaceIHolidayController- Parameters:
start- start dateyears-
-
registerHolidayPeriod
Description copied from interface:IHolidayControllerRegister a date range as a holiday- Specified by:
registerHolidayPeriodin interfaceIHolidayController
-
generateFromRecurrentHolidays
- Specified by:
generateFromRecurrentHolidaysin interfaceIHolidayController
-
readHolidays
public List<HolidayDTO> readHolidays(@Valid @Valid RetrieveHolidaysDTOIn dto) throws CalendarServiceException Description copied from interface:IHolidayControllerRead all holiday periods- Specified by:
readHolidaysin interfaceIHolidayController- Throws:
CalendarServiceException
-
registerHolidayPeriod
Description copied from interface:IHolidayControllerRegisters a date range as a holiday, and repeats the procedure for the additional number of years specified.- Specified by:
registerHolidayPeriodin interfaceIHolidayController- 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.
-
registerHolidays
- Specified by:
registerHolidaysin interfaceIHolidayController
-
insertCustomHoliday
- Specified by:
insertCustomHolidayin interfaceIHolidayController
-
getCustomHolidays
- Specified by:
getCustomHolidaysin interfaceIHolidayController
-
deleteCustomHoliday
- Specified by:
deleteCustomHolidayin interfaceIHolidayController
-