Class EvaluateWageScaleServiceImpl
java.lang.Object
ch.tocco.nice2.optional.salary.impl.service.EvaluateWageScaleServiceImpl
- All Implemented Interfaces:
EvaluateWageScaleService
@Component
public class EvaluateWageScaleServiceImpl
extends Object
implements EvaluateWageScaleService
-
Constructor Summary
ConstructorDescriptionEvaluateWageScaleServiceImpl
(Context context, QueryBuilderFactory queryBuilderFactory, GroovyEvaluationService groovyEvaluationService, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptiongetIncomePerHour
(Entity reservationLecturerBooking) Evaluates the salary for one lesson for a given Reservation_lecturer_booking Finds for a given Reservation_lecturer_booking the Wage_scale with the highest value in field scale_priority, that fulfills following criteria, that all related Wage_scale_conditions match for the Reservation_lecturer_booking.
-
Constructor Details
-
EvaluateWageScaleServiceImpl
public EvaluateWageScaleServiceImpl(Context context, QueryBuilderFactory queryBuilderFactory, GroovyEvaluationService groovyEvaluationService, org.slf4j.Logger log)
-
-
Method Details
-
getIncomePerHour
Description copied from interface:EvaluateWageScaleService
Evaluates the salary for one lesson for a given Reservation_lecturer_booking Finds for a given Reservation_lecturer_booking the Wage_scale with the highest value in field scale_priority, that fulfills following criteria, that all related Wage_scale_conditions match for the Reservation_lecturer_booking. Then returns the value in field wage_rate of the found Wage_scale.- Specified by:
getIncomePerHour
in interfaceEvaluateWageScaleService
- Parameters:
reservationLecturerBooking
- a Reservation_lecturer_booking entity- Returns:
- the value in field wage_rate of the Wage_scale that matches best for param reservationLecturerBooking
-