org.kuali.kfs.module.bc.document.service.impl
Class SalarySettingRuleHelperServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.bc.document.service.impl.SalarySettingRuleHelperServiceImpl
All Implemented Interfaces:
SalarySettingRuleHelperService

public class SalarySettingRuleHelperServiceImpl
extends Object
implements SalarySettingRuleHelperService

provide a set of rule elements for salary setting.


Constructor Summary
SalarySettingRuleHelperServiceImpl()
           
 
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
 void setHumanResourcesPayrollService(HumanResourcesPayrollService humanResourcesPayrollService)
          Sets the humanResourcesPayrollService attribute value.
 void setSalarySettingService(SalarySettingService salarySettingService)
          Sets the salarySettingService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SalarySettingRuleHelperServiceImpl

public SalarySettingRuleHelperServiceImpl()
Method Detail

canBeAdjusted

public boolean canBeAdjusted(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                             org.kuali.rice.kns.util.MessageMap errorMap)
Description copied from interface: SalarySettingRuleHelperService
determine whether the salary amount of the given appointment funding can be adjusted

Specified by:
canBeAdjusted in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#canBeAdjusted(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.rice.kns.util.ErrorMap)

hasActiveJob

public boolean hasActiveJob(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                            org.kuali.rice.kns.util.MessageMap errorMap)
Description copied from interface: SalarySettingRuleHelperService
determine whether the given appointment funding is associated with an active job

Specified by:
hasActiveJob in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasActiveJob(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.rice.kns.util.ErrorMap)

hasObjectCodeMatchingDefaultOfPosition

public boolean hasObjectCodeMatchingDefaultOfPosition(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                                      org.kuali.rice.kns.util.MessageMap errorMap)
Description copied from interface: SalarySettingRuleHelperService
determine whether the object code of the given appointment funding matches the position default object code

Specified by:
hasObjectCodeMatchingDefaultOfPosition in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasObjectCodeMatchingDefaultOfPosition(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.core.util.ErrorMap)

hasRequestedAmountZeroWhenFullYearLeave

public boolean hasRequestedAmountZeroWhenFullYearLeave(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                                       org.kuali.rice.kns.util.MessageMap errorMap)
Description copied from interface: SalarySettingRuleHelperService
request salary amount must be zero for full year leave

Specified by:
hasRequestedAmountZeroWhenFullYearLeave in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasRequestedAmountZeroWhenFullYearLeave(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.core.util.ErrorMap)

hasRequestedFteQuantityZeroWhenFullYearLeave

public boolean hasRequestedFteQuantityZeroWhenFullYearLeave(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                                            org.kuali.rice.kns.util.MessageMap errorMap)
Description copied from interface: SalarySettingRuleHelperService
request fte quantity must be zero for full year leave

Specified by:
hasRequestedFteQuantityZeroWhenFullYearLeave in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasRequestedFteQuantityZeroWhenFullYearLeave(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.core.util.ErrorMap)

hasNoExistingLine

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

Specified by:
hasNoExistingLine in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasNoExistingLine(java.util.List, org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.rice.kns.util.ErrorMap)

hasValidRequestedAmount

public boolean hasValidRequestedAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                       org.kuali.rice.kns.util.MessageMap errorMap)
Description copied from interface: SalarySettingRuleHelperService
determine whether the requested salary amount of the given appointment funding is valid

Specified by:
hasValidRequestedAmount in interface SalarySettingRuleHelperService
Parameters:
appointmentFunding - the given appointment funding
Returns:
true if the requested salary amount of the given appointment funding is valid; otherwise, false
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasValidRequestedAmount(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.core.util.ErrorMap)

hasValidRequestedAmountQuickSalarySetting

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

Specified by:
hasValidRequestedAmountQuickSalarySetting in interface SalarySettingRuleHelperService
Returns:

hasValidRequestedCsfAmount

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

Specified by:
hasValidRequestedCsfAmount in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasValidRequestedCsfAmount(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.core.util.ErrorMap)

hasValidRequestedCsfTimePercent

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

Specified by:
hasValidRequestedCsfTimePercent in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasValidRequestedCsfTimePercent(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.core.util.ErrorMap)

hasValidRequestedFteQuantity

public boolean hasValidRequestedFteQuantity(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                            org.kuali.rice.kns.util.MessageMap errorMap)
Description copied from interface: SalarySettingRuleHelperService
determine whether the requested FTE is valid

Specified by:
hasValidRequestedFteQuantity in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasValidRequestedFteQuantity(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.core.util.ErrorMap)

hasValidRequestedFundingMonth

public boolean hasValidRequestedFundingMonth(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                             org.kuali.rice.kns.util.MessageMap errorMap)
Description copied from interface: SalarySettingRuleHelperService
determine whether the requested funding month of the given appointment funding is valid

Specified by:
hasValidRequestedFundingMonth in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasValidRequestedFundingMonth(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.core.util.ErrorMap)

hasValidRequestedTimePercent

public boolean hasValidRequestedTimePercent(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                            org.kuali.rice.kns.util.MessageMap errorMap)
Description copied from interface: SalarySettingRuleHelperService
determine whether the requested FTE is valid

Specified by:
hasValidRequestedTimePercent in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasValidRequestedTimePercent(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.core.util.ErrorMap)

hasValidAdjustmentAmount

public boolean hasValidAdjustmentAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                        org.kuali.rice.kns.util.MessageMap errorMap)
Description copied from interface: SalarySettingRuleHelperService
determine whether the adjustment amount is valid

Specified by:
hasValidAdjustmentAmount in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasValidAdjustmentAmount(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.rice.kns.util.ErrorMap)

hasValidPayRateOrAnnualAmount

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

Specified by:
hasValidPayRateOrAnnualAmount in interface SalarySettingRuleHelperService
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
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingRuleHelperService#hasValidAdjustmentAmount(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.rice.kns.util.ErrorMap)

setSalarySettingService

public void setSalarySettingService(SalarySettingService salarySettingService)
Sets the salarySettingService attribute value.

Parameters:
salarySettingService - The salarySettingService to set.

setHumanResourcesPayrollService

public void setHumanResourcesPayrollService(HumanResourcesPayrollService humanResourcesPayrollService)
Sets the humanResourcesPayrollService attribute value.

Parameters:
humanResourcesPayrollService - The humanResourcesPayrollService to set.


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