org.kuali.kfs.module.bc.document.service
Interface SalarySettingRuleHelperService

All Known Implementing Classes:
SalarySettingRuleHelperServiceImpl

public interface SalarySettingRuleHelperService

define a set of validations methods for salary setting


Method Summary
 boolean canBeAdjusted(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine whether the salary amount of the given appointment funding can be adjusted
 boolean hasActiveJob(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine whether the given appointment funding is associated with an active job
 boolean hasNoExistingLine(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings, PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine if there is an appointment funding in the given list that has the same key information as the specified appointment funding
 boolean hasObjectCodeMatchingDefaultOfPosition(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine whether the object code of the given appointment funding matches the position default object code
 boolean hasRequestedAmountZeroWhenFullYearLeave(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          request salary amount must be zero for full year leave
 boolean hasRequestedFteQuantityZeroWhenFullYearLeave(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          request fte quantity must be zero for full year leave
 boolean hasValidAdjustmentAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine whether the adjustment amount is valid
 boolean hasValidPayRateOrAnnualAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine whether either pay rate or annual amount is not empty, and both of them have valid formats if not empty
 boolean hasValidRequestedAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine whether the requested salary amount of the given appointment funding is valid
 boolean hasValidRequestedAmountQuickSalarySetting(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine whether the requested salary amount of the given appointment funding is valid for the quick salary setting screen
 boolean hasValidRequestedCsfAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine whether the requested leave csf amount of the given appointment funding is valid
 boolean hasValidRequestedCsfTimePercent(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine whether the requested leave csf time percent of the given appointment funding is valid
 boolean hasValidRequestedFteQuantity(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine whether the requested FTE is valid
 boolean hasValidRequestedFundingMonth(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine whether the requested funding month of the given appointment funding is valid
 boolean hasValidRequestedTimePercent(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kns.util.MessageMap errorMap)
          determine whether the requested FTE is valid
 

Method Detail

canBeAdjusted

boolean canBeAdjusted(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                      org.kuali.rice.kns.util.MessageMap errorMap)
determine whether the salary amount of the given appointment funding can be adjusted

Parameters:
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if the salary amount of the given appointment funding can be adjusted; otherwise, false

hasActiveJob

boolean hasActiveJob(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                     org.kuali.rice.kns.util.MessageMap errorMap)
determine whether the given appointment funding is associated with an active job

Parameters:
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if the given appointment funding is associated with an active job; otherwise, false

hasObjectCodeMatchingDefaultOfPosition

boolean hasObjectCodeMatchingDefaultOfPosition(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                               org.kuali.rice.kns.util.MessageMap errorMap)
determine whether the object code of the given appointment funding matches the position default object code

Parameters:
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if the object code of the given appointment funding matches the position default object code; otherwise, false

hasRequestedAmountZeroWhenFullYearLeave

boolean hasRequestedAmountZeroWhenFullYearLeave(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                                org.kuali.rice.kns.util.MessageMap errorMap)
request salary amount must be zero for full year leave

Parameters:
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if request salary amount is zero for full year leave; otherwise, false

hasRequestedFteQuantityZeroWhenFullYearLeave

boolean hasRequestedFteQuantityZeroWhenFullYearLeave(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                                     org.kuali.rice.kns.util.MessageMap errorMap)
request fte quantity must be zero for full year leave

Parameters:
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if the request fte quantity is zero for full year leave; otherwise, false

hasNoExistingLine

boolean hasNoExistingLine(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings,
                          PendingBudgetConstructionAppointmentFunding appointmentFunding,
                          org.kuali.rice.kns.util.MessageMap errorMap)
determine if there is an appointment funding in the given list that has the same key information as the specified appointment funding

Parameters:
appointmentFundings - the given appointment funding collection
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if there is no an appointment funding in the given list that has the same key information as the specified appointment funding; otherwise, false

hasValidRequestedAmount

boolean hasValidRequestedAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                org.kuali.rice.kns.util.MessageMap errorMap)
determine whether the requested salary amount of the given appointment funding is valid

Parameters:
appointmentFunding - the given appointment funding
Returns:
true if the requested salary amount of the given appointment funding is valid; otherwise, false

hasValidRequestedAmountQuickSalarySetting

boolean hasValidRequestedAmountQuickSalarySetting(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                                  org.kuali.rice.kns.util.MessageMap errorMap)
determine whether the requested salary amount of the given appointment funding is valid for the quick salary setting screen

Parameters:
appointmentFunding -
errorMap -
Returns:

hasValidRequestedCsfAmount

boolean hasValidRequestedCsfAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                   org.kuali.rice.kns.util.MessageMap errorMap)
determine whether the requested leave csf amount of the given appointment funding is valid

Parameters:
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if the requested leave csf amount of the given appointment funding is valid; otherwise, false

hasValidRequestedCsfTimePercent

boolean hasValidRequestedCsfTimePercent(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                        org.kuali.rice.kns.util.MessageMap errorMap)
determine whether the requested leave csf time percent of the given appointment funding is valid

Parameters:
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if the requested leave csf time percent of the given appointment funding is valid; otherwise, false

hasValidRequestedFteQuantity

boolean hasValidRequestedFteQuantity(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                     org.kuali.rice.kns.util.MessageMap errorMap)
determine whether the requested FTE is valid

Parameters:
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if the requested FTE is valid; otherwise, false

hasValidRequestedFundingMonth

boolean hasValidRequestedFundingMonth(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                      org.kuali.rice.kns.util.MessageMap errorMap)
determine whether the requested funding month of the given appointment funding is valid

Parameters:
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if the requested funding month of the given appointment funding is valid; otherwise, false

hasValidRequestedTimePercent

boolean hasValidRequestedTimePercent(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                     org.kuali.rice.kns.util.MessageMap errorMap)
determine whether the requested FTE is valid

Parameters:
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if the requested FTE is valid; otherwise, false

hasValidAdjustmentAmount

boolean hasValidAdjustmentAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                 org.kuali.rice.kns.util.MessageMap errorMap)
determine whether the adjustment amount is valid

Parameters:
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if the adjustment amount is valid; otherwise, false

hasValidPayRateOrAnnualAmount

boolean hasValidPayRateOrAnnualAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                      org.kuali.rice.kns.util.MessageMap errorMap)
determine whether either pay rate or annual amount is not empty, and both of them have valid formats if not empty

Parameters:
appointmentFunding - the given appointment funding
errorMap - the given error map that can hold the error message if any
Returns:
true if either pay rate or annual amount is valid; otherwise, false


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.