Class DefaultWageTaskProvider

java.lang.Object
ch.tocco.nice2.optional.salary.api.tasks.DefaultWageTaskProvider
All Implemented Interfaces:
WageTaskProvider

@Component public class DefaultWageTaskProvider extends Object implements WageTaskProvider
  • Constructor Details

  • Method Details

    • getTask

      public PersistTask<WageValueProvider,Entity> getTask(Entity reservationLecturerBooking)
      Specified by:
      getTask in interface WageTaskProvider
    • getValueProvider

      public WageValueProvider getValueProvider(Entity reservationLecturerBooking)
      Description copied from interface: WageTaskProvider
      Instantiate a WageValueProvider for the given Reservation_lecturer_booking
      Specified by:
      getValueProvider in interface WageTaskProvider
      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 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
      Specified by:
      getValueProvider in interface WageTaskProvider
      Parameters:
      reservationBooking - a Reservation_lecturer_booking entity
      Returns:
      WageValueProvider for the given Reservation_lecturer_booking containing a EvaluationWageScaleService