001 /* 002 * Copyright 2011 The Kuali Foundation. 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.kfs.module.bc.document.validation; 017 018 import java.util.List; 019 020 import org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding; 021 import org.kuali.rice.kns.rule.BusinessRule; 022 023 /** 024 * Rule classes wishing to respond to that event should implement this interface. 025 */ 026 public interface SalarySettingRule extends BusinessRule { 027 028 /** 029 * process the rules before the given appointment funding is saved 030 * 031 * @param appointmentFunding the given appointment funding 032 * @return true if the appointment funding can pass all rule before saved, otherwise, false 033 */ 034 public boolean processSaveAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding); 035 036 /** 037 * process the rules before the given appointment funding is saved 038 * 039 * @param appointmentFunding the given appointment funding 040 * @return true if the appointment funding can pass all rule before saved, otherwise, false 041 */ 042 public boolean processQuickSaveAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding); 043 044 /** 045 * process the rules before the given appointment funding is created 046 * 047 * @param existingAppointmentFundings the existing appointment fundings 048 * @param appointmentFunding the given appointment funding 049 * @return true if the appointment funding can pass all rule before created, otherwise, false 050 */ 051 public boolean processAddAppointmentFunding(List<PendingBudgetConstructionAppointmentFunding> existingAppointmentFundings, PendingBudgetConstructionAppointmentFunding appointmentFunding); 052 053 /** 054 * process the rules before adjusting the salary amount of the given appointment funding 055 * 056 * @param appointmentFunding the given appointment funding 057 * @return true if the appointment funding can pass all rule before adjusting, otherwise, false 058 */ 059 public boolean processAdjustSalaraySettingLinePercent(PendingBudgetConstructionAppointmentFunding appointmentFunding); 060 061 /** 062 * process the rules before the pay rate and salary amount of the given appointment funding can be normalized 063 * 064 * @param appointmentFunding the given appointment funding 065 * @return true if the appointment funding can pass all rule before normalizing, otherwise, false 066 */ 067 public boolean processNormalizePayrateAndAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding); 068 }