Class DefaultWageTaskProvider
java.lang.Object
ch.tocco.nice2.optional.salary.api.tasks.DefaultWageTaskProvider
- All Implemented Interfaces:
WageTaskProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValueProvider(EvaluateWageScaleService evaluateWageScaleService, Entity reservationBooking) Instantiate aWageValueProviderfor the given Reservation_lecturer_booking andEvaluateWageScaleServiceThe 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:
getTaskin interfaceWageTaskProvider
-
getValueProvider
Description copied from interface:WageTaskProviderInstantiate a WageValueProvider for the given Reservation_lecturer_booking- Specified by:
getValueProviderin 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:WageTaskProviderInstantiate aWageValueProviderfor the given Reservation_lecturer_booking andEvaluateWageScaleServiceThe 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:
getValueProviderin interfaceWageTaskProvider- Parameters:
reservationBooking- a Reservation_lecturer_booking entity- Returns:
- WageValueProvider for the given Reservation_lecturer_booking containing a EvaluationWageScaleService
-