Class DefaultWageTaskProvider
java.lang.Object
ch.tocco.nice2.optional.salary.api.tasks.DefaultWageTaskProvider
- All Implemented Interfaces:
WageTaskProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetValueProvider
(EvaluateWageScaleService evaluateWageScaleService, Entity reservationBooking) Instantiate aWageValueProvider
for the given Reservation_lecturer_booking andEvaluateWageScaleService
The instantiated WageValueProvider#getIncomePerHour uses the EvaluationWageScaleService#getIncomePerHour to override the value in field income_per_hour on the Reservation_lecturer_booking for evaluation of the salary per lessongetValueProvider
(Entity reservationLecturerBooking) Instantiate a WageValueProvider for the given Reservation_lecturer_booking
-
Constructor Details
-
DefaultWageTaskProvider
-
-
Method Details
-
getTask
- Specified by:
getTask
in interfaceWageTaskProvider
-
getValueProvider
Description copied from interface:WageTaskProvider
Instantiate a WageValueProvider for the given Reservation_lecturer_booking- Specified by:
getValueProvider
in interfaceWageTaskProvider
- Parameters:
reservationLecturerBooking
- a Reservation_lecturer_booking entity- Returns:
- WageValueProvider for the given Reservation_lecturer_booking
-
getValueProvider
public WageValueProvider getValueProvider(EvaluateWageScaleService evaluateWageScaleService, Entity reservationBooking) Description copied from interface:WageTaskProvider
Instantiate aWageValueProvider
for the given Reservation_lecturer_booking andEvaluateWageScaleService
The instantiated WageValueProvider#getIncomePerHour uses the EvaluationWageScaleService#getIncomePerHour to override the value in field income_per_hour on the Reservation_lecturer_booking for evaluation of the salary per lesson- Specified by:
getValueProvider
in interfaceWageTaskProvider
- Parameters:
reservationBooking
- a Reservation_lecturer_booking entity- Returns:
- WageValueProvider for the given Reservation_lecturer_booking containing a EvaluationWageScaleService
-