Interface WageTaskProvider

All Known Implementing Classes:
DefaultWageTaskProvider

public interface WageTaskProvider
Provides the PersistTask and WageValueProvider which will be used to create a wage
  • Method Details

    • getTask

      PersistTask<WageValueProvider,Entity> getTask(Entity reservationLecturerBooking)
    • getValueProvider

      WageValueProvider getValueProvider(Entity reservationLecturerBooking)
      Instantiate a WageValueProvider for the given Reservation_lecturer_booking
      Parameters:
      reservationLecturerBooking - a Reservation_lecturer_booking entity
      Returns:
      WageValueProvider for the given Reservation_lecturer_booking
    • getValueProvider

      WageValueProvider getValueProvider(EvaluateWageScaleService evaluateWageScaleService, Entity reservationBooking)
      Instantiate a WageValueProvider for the given Reservation_lecturer_booking and EvaluateWageScaleService 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
      Parameters:
      reservationBooking - a Reservation_lecturer_booking entity
      Returns:
      WageValueProvider for the given Reservation_lecturer_booking containing a EvaluationWageScaleService