Interface TrainingStipendRateService


  • public interface TrainingStipendRateService
    • Method Detail

      • findClosestMatchTrainingStipendRate

        TrainingStipendRateContract findClosestMatchTrainingStipendRate​(Date effectiveDate,
                                                                        String careerLevel,
                                                                        int experienceLevel)
        This method finds the closest matching TrainingStipendRateContract based on the following rules. The Training Stipend Rate's effective date must be less than or equal to the passed in effective date. The Training Stipend Rate's career level must be equal to the passed in career level. The Training Stipend Rate's experience level must be equal to the passed in experience level. If at the end of this match, multiple Training Stipend Rates match then the one with the latest effective date is returned. This is considered the "closest match". Note: that this method only considers the date portion of a Date for effective date comparisons. Also note that a TrainingStipendRate without an effective date will never be considered a match.
        Parameters:
        effectiveDate - the effective date of the training stipend rate must be less than or equal to. Cannot be null.
        careerLevel - the career level of the training stipend rate. Cannot be blank.
        experienceLevel - the experience level of the training stipend rate
        Returns:
        the closest matching TrainingStipendRateContract or null if there is no match
        Throws:
        IllegalArgumentException - if the effectiveDate is null, if the careerLevel is blank