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

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

@Transactional
public class SalarySettingServiceImpl
extends Object
implements SalarySettingService

implements the service methods defined in the SalarySettingService

See Also:
SalarySettingService

Field Summary
static org.apache.log4j.Logger LOG
           
 
Constructor Summary
SalarySettingServiceImpl()
           
 
Method Summary
 void adjustRequestedSalaryByAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          adjust the requested salary amount of the given appointment funding by amount
 void adjustRequestedSalaryByPercent(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          adjust the requested salary amount of the given appointment funding by percent
 org.kuali.rice.kns.util.KualiInteger calculateAnnualPayAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          calculate the annual pay amount from the request pay rate in the given appointment funding
 BigDecimal calculateCSFFteQuantity(Integer payMonth, Integer normalWorkMonth, BigDecimal requestedCSFTimePercent)
          calculate the CSF FTE quantity through the given information
 BigDecimal calculateCSFFteQuantityFromAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          calculate the CSF fte quantity based on the information of the given appointment funding
 BigDecimal calculateFteQuantity(Integer payMonth, Integer fundingMonth, BigDecimal requestedTimePercent)
          calculate the FTE quantity through the given information
 BigDecimal calculateFteQuantityFromAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          calculate the fte quantity based on the information of the given appointment funding
 BigDecimal calculateHourlyPayRate(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          calculate the hourly pay rate from the request amount in the given appointment funding
 boolean canBeVacant(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings, PendingBudgetConstructionAppointmentFunding appointmentFunding)
          determine whehter the given appointment funding can be vacated
 boolean canBeVacant(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          determine whether the given appointment funding can be vacated
protected  PendingBudgetConstructionAppointmentFunding createPseudoAppointmentFundingLine(SalarySettingExpansion salarySettingExpansion)
          create a pseudo appointment funding for the salary setting expansion this is used when there are no funding lines for the salary setting expansion to get a funding line to be used to pass primary key info
protected  PendingBudgetConstructionAppointmentFunding createVacantAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          create a vacant appointment funding based on the given budget funding
 PendingBudgetConstructionAppointmentFunding findAppointmentFunding(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings, PendingBudgetConstructionAppointmentFunding appointmentFunding)
          find the appointment funding from the given appointment funding collection, which has the same key information as the specified appointment funding
 PendingBudgetConstructionAppointmentFunding findVacantAppointmentFunding(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings, PendingBudgetConstructionAppointmentFunding appointmentFunding)
          find the appointment funding from the given appointment funding collection, which has the same key information as the specified vacant appointment funding
protected  org.kuali.rice.kns.util.KualiInteger getCsfAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          get the csf tracker amount of the given appointment funding
 org.kuali.rice.kns.service.DocumentHelperService getDocumentHelperService()
          Gets the documentHelperService attribute.
protected  boolean hasBeenVacated(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          determine whether there exists at lease one vacant funding line for the given appointment funding
 boolean hasExistingFundingReason(BudgetConstructionAppointmentFundingReasonCode budgetConstructionAppointmentFundingReasonCode)
          checks if a reason code has existing appointment funding reasons
 boolean isHourlyPaid(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          determine whehter the given appointment funding is paid at a biweekly or hourly rate
 boolean isHourlyPaid(PendingBudgetConstructionGeneralLedger pendingBudgetConstructionGeneralLedger)
          determine whehter the given pending budget construction general ledger is paid at a biweekly or hourly rate
 boolean isHourlyPaidObject(Integer fiscalYear, String chartOfAccountsCode, String objectCode)
          determine whehter the given object code is of a biweekly or hourly pay type
 boolean isSalarySettingDisabled()
          for now just return false, implement application parameter if decision is made implement this functionality
 void markAsDelete(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          mark the given appointment funding as deleted
 void normalizePayRateAndAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          normalize the hourly pay rate and annual pay amount of the given appointment funding
 void preprocessFundingReason(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          preprocess the funding reason of the given appointment funding before the funding is saved
 void preprocessLeaveRequest(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          preprocess the leave request of the given appointment funding before the funding is saved
 void purgeAppointmentFundings(List<PendingBudgetConstructionAppointmentFunding> purgedAppointmentFundings)
          permanently delete the given appointment funding lines being purged
 void recalculateDerivedInformation(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          update the fields with the values that can be derived from the existing information, for example, hourly rate and FTE
 void resetAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          reset the given appointment funcding as deleted
protected  void resetDeletedFundingLines(List<PendingBudgetConstructionAppointmentFunding> pendingBudgetConstructionAppointmentFunding)
          reset the amount values of each line in the given appointment fundings as zeros and remove the reason annotations if the line is marked as deleted
 List<PendingBudgetConstructionAppointmentFunding> retrievePendingBudgetConstructionAppointmentFundings(SalarySettingExpansion salarySettingExpansion)
          retrieve a list of PendingBudgetConstructionAppointmentFunding from the information provided by the given SalarySettingExpansion
 SalarySettingExpansion retriveSalarySalarySettingExpansion(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          retrive the salary setting expension from the information provided by the given appointment funding
 void revert(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings, PendingBudgetConstructionAppointmentFunding appointmentFunding)
          revert the given appointment funding if it is just vacated
 void saveAppointmentFundings(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings)
          save the given appointment fundings
 void savePBGLSalarySetting(SalarySettingExpansion salarySettingExpansion)
          save the pending budget general ledger rows associated with a given salary setting expansion this also handles updating the special 2PLG row
 void saveSalarySetting(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings, Boolean isSalarySettingByIncumbent)
          save the given appointment fundings and associated salary setting expansion, also known as, pending budget general ledger row
 void saveSalarySetting(SalarySettingExpansion salarySettingExpansion)
          save the salary setting and its associated appointment funding
 void setBenefitsCalculationService(BenefitsCalculationService benefitsCalculationService)
          Sets the benefitsCalculationService attribute value.
 void setBudgetConstructionProcessorService(BudgetConstructionProcessorService budgetConstructionProcessorService)
          Sets the budgetConstructionProcessorService attribute value.
 void setBudgetDocumentService(BudgetDocumentService budgetDocumentService)
          Sets the budgetDocumentService attribute value.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setDocumentHelperService(org.kuali.rice.kns.service.DocumentHelperService documentHelperService)
          Sets the documentHelperService attribute value.
 void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
          Sets the documentService attribute value.
 void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
          Sets the kualiConfigurationService attribute value.
 void setLaborModuleService(LaborModuleService laborModuleService)
          Sets the laborModuleService attribute value.
 void setLockService(LockService lockService)
          Sets the lockService attribute value.
 void setOptionsService(OptionsService optionsService)
          Sets the optionsService attribute value.
 boolean updateAccessOfAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding, SalarySettingFieldsHolder salarySettingFieldsHolder, boolean budgetByObjectMode, boolean hasDocumentEditAccess, org.kuali.rice.kim.bo.Person person)
          update the access flags of the given appointment funding according to the given information
 boolean updateAccessOfAppointmentFundingByUserLevel(PendingBudgetConstructionAppointmentFunding appointmentFunding, org.kuali.rice.kim.bo.Person user)
          update the access flags of the given appointment funding according to the user level and document organization level
 void updateAppointmentFundingsBeforeSaving(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings)
          update the fields before saving the given appointment fundings
 PendingBudgetConstructionAppointmentFunding vacateAppointmentFunding(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings, PendingBudgetConstructionAppointmentFunding appointmentFunding)
          vacate the given appointment funding, create a vacant appointment funding based on the given funding, and add the vacant line into the given appointment funding collection
 PendingBudgetConstructionAppointmentFunding vacateAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding)
          vacate the given appointment funding and create a vacant appointment funding based on the given funding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG
Constructor Detail

SalarySettingServiceImpl

public SalarySettingServiceImpl()
Method Detail

isSalarySettingDisabled

public boolean isSalarySettingDisabled()
for now just return false, implement application parameter if decision is made implement this functionality

Specified by:
isSalarySettingDisabled in interface SalarySettingService
Returns:
See Also:
SalarySettingService.isSalarySettingDisabled()

calculateHourlyPayRate

public BigDecimal calculateHourlyPayRate(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
calculate the hourly pay rate from the request amount in the given appointment funding

Specified by:
calculateHourlyPayRate in interface SalarySettingService
Parameters:
appointmentFunding - the given apporintment funding
Returns:
the hourly pay rate
See Also:
SalarySettingService.calculateHourlyPayRate(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

calculateAnnualPayAmount

public org.kuali.rice.kns.util.KualiInteger calculateAnnualPayAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
calculate the annual pay amount from the request pay rate in the given appointment funding

Specified by:
calculateAnnualPayAmount in interface SalarySettingService
Parameters:
appointmentFunding - the given apporintment funding
Returns:
the annual pay amount
See Also:
SalarySettingService.calculateAnnualPayAmount(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

normalizePayRateAndAmount

public void normalizePayRateAndAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
normalize the hourly pay rate and annual pay amount of the given appointment funding

Specified by:
normalizePayRateAndAmount in interface SalarySettingService
Parameters:
appointmentFunding - the given appointment funding
See Also:
SalarySettingService.normalizePayRateAndAmount(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

calculateFteQuantityFromAppointmentFunding

public BigDecimal calculateFteQuantityFromAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
calculate the fte quantity based on the information of the given appointment funding

Specified by:
calculateFteQuantityFromAppointmentFunding in interface SalarySettingService
Parameters:
appointmentFunding - the given appointment funding
Returns:
the fte quantity calculated from the information of the given appointment funding
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingService#calculateFteQuantityForAppointmentFunding(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

calculateFteQuantity

public BigDecimal calculateFteQuantity(Integer payMonth,
                                       Integer fundingMonth,
                                       BigDecimal requestedTimePercent)
Description copied from interface: SalarySettingService
calculate the FTE quantity through the given information

Specified by:
calculateFteQuantity in interface SalarySettingService
Parameters:
payMonth - the given number of pay months
fundingMonth - the given number of funding months
requestedTimePercent - the requested FTE time percent
Returns:
the FTE quantity calculated from the given information
See Also:
SalarySettingService.calculateFteQuantity(java.lang.Integer, java.lang.Integer, java.math.BigDecimal)

calculateCSFFteQuantityFromAppointmentFunding

public BigDecimal calculateCSFFteQuantityFromAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
calculate the CSF fte quantity based on the information of the given appointment funding

Specified by:
calculateCSFFteQuantityFromAppointmentFunding in interface SalarySettingService
Returns:
the CSF fte quantity calculated from the information of the given appointment funding
See Also:
SalarySettingService.calculateCSFFteQuantityFromAppointmentFunding(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

calculateCSFFteQuantity

public BigDecimal calculateCSFFteQuantity(Integer payMonth,
                                          Integer normalWorkMonth,
                                          BigDecimal requestedCSFTimePercent)
Description copied from interface: SalarySettingService
calculate the CSF FTE quantity through the given information

Specified by:
calculateCSFFteQuantity in interface SalarySettingService
Parameters:
payMonth - the given number of pay months
normalWorkMonth - the given number of normal work months
requestedCSFTimePercent - the requested CSF time percent
Returns:
the CSF FTE quantity from the given information
See Also:
SalarySettingService.calculateCSFFteQuantity(java.lang.Integer, java.lang.Integer, java.math.BigDecimal)

isHourlyPaid

public boolean isHourlyPaid(PendingBudgetConstructionGeneralLedger pendingBudgetConstructionGeneralLedger)
Description copied from interface: SalarySettingService
determine whehter the given pending budget construction general ledger is paid at a biweekly or hourly rate

Specified by:
isHourlyPaid in interface SalarySettingService
Parameters:
pendingBudgetConstructionGeneralLedger - the given pending budget construction general ledger
Returns:
true if the given given pending budget construction general ledger is paid at a biweekly or hourly rate; otherwise, false
See Also:
SalarySettingService.isHourlyPaid(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionGeneralLedger)

isHourlyPaid

public boolean isHourlyPaid(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
determine whehter the given appointment funding is paid at a biweekly or hourly rate

Specified by:
isHourlyPaid in interface SalarySettingService
Parameters:
appointmentFunding - the given appointment funding
Returns:
true if the given appointment funding is paid at a biweekly or hourly rate; otherwise, false
See Also:
SalarySettingService.isHourlyPaid(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

isHourlyPaidObject

public boolean isHourlyPaidObject(Integer fiscalYear,
                                  String chartOfAccountsCode,
                                  String objectCode)
Description copied from interface: SalarySettingService
determine whehter the given object code is of a biweekly or hourly pay type

Specified by:
isHourlyPaidObject in interface SalarySettingService
Parameters:
fiscalYear - the given fiscal year
chartOfAccountsCode - the given chart of accounts code
objectCode - the given object code
Returns:
true if the given object code is of a biweekly or hourly pay type; otherwise, false
See Also:
SalarySettingService.isHourlyPaid(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionGeneralLedger)

canBeVacant

public boolean canBeVacant(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings,
                           PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
determine whehter the given appointment funding can be vacated

Specified by:
canBeVacant in interface SalarySettingService
Parameters:
appointmentFundings - the given appointment funding collection that the given appointment funding belongs to
appointmentFunding - the given appointment funding
Returns:
true if the given appointment funding can be vacated; otherwise, false
See Also:
SalarySettingService.canBeVacant(java.util.List, org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

findVacantAppointmentFunding

public PendingBudgetConstructionAppointmentFunding findVacantAppointmentFunding(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings,
                                                                                PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
find the appointment funding from the given appointment funding collection, which has the same key information as the specified vacant appointment funding

Specified by:
findVacantAppointmentFunding in interface SalarySettingService
Parameters:
appointmentFundings - the given appointment funding collection
appointmentFunding - the given vacant apporintment funding
Returns:
the appointment funding from the given appointment funding collection, which has the same key information as the specified vacant appointment funding
See Also:
SalarySettingService.findVacantAppointmentFunding(java.util.List, org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

findAppointmentFunding

public PendingBudgetConstructionAppointmentFunding findAppointmentFunding(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings,
                                                                          PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
find the appointment funding from the given appointment funding collection, which has the same key information as the specified appointment funding

Specified by:
findAppointmentFunding in interface SalarySettingService
Parameters:
appointmentFundings - the given appointment funding collection
Returns:
the appointment funding from the given appointment funding collection, which has the same key information as the specified appointment funding
See Also:
SalarySettingService.findAppointmentFunding(java.util.List, org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

canBeVacant

public boolean canBeVacant(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
determine whether the given appointment funding can be vacated

Specified by:
canBeVacant in interface SalarySettingService
Parameters:
appointmentFunding - the given appointment funding
Returns:
true if the given appointment funding can be vacated; otherwise, false
See Also:
SalarySettingService.canBeVacant(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

vacateAppointmentFunding

public PendingBudgetConstructionAppointmentFunding vacateAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
vacate the given appointment funding and create a vacant appointment funding based on the given funding

Specified by:
vacateAppointmentFunding in interface SalarySettingService
Parameters:
appointmentFunding - the given apporintment funding
Returns:
a vacant appointment funding
See Also:
SalarySettingService.vacateAppointmentFunding(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

vacateAppointmentFunding

public PendingBudgetConstructionAppointmentFunding vacateAppointmentFunding(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings,
                                                                            PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
vacate the given appointment funding, create a vacant appointment funding based on the given funding, and add the vacant line into the given appointment funding collection

Specified by:
vacateAppointmentFunding in interface SalarySettingService
Parameters:
appointmentFundings - the given appointment funding collection that the given appointment funding belongs to
appointmentFunding - the given apporintment funding
Returns:
a vacant appointment funding
See Also:
SalarySettingService.vacateAppointmentFunding(java.util.List, org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

purgeAppointmentFundings

public void purgeAppointmentFundings(List<PendingBudgetConstructionAppointmentFunding> purgedAppointmentFundings)
Description copied from interface: SalarySettingService
permanently delete the given appointment funding lines being purged

Specified by:
purgeAppointmentFundings in interface SalarySettingService
Parameters:
purgedAppointmentFundings - the given appointment funding collection being purged
See Also:
SalarySettingService.purgeAppointmentFundings(java.util.List)

adjustRequestedSalaryByAmount

public void adjustRequestedSalaryByAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
adjust the requested salary amount of the given appointment funding by amount

Specified by:
adjustRequestedSalaryByAmount in interface SalarySettingService
Parameters:
appointmentFunding - the given appointment funding
See Also:
SalarySettingService.adjustRequestedSalaryByAmount(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

adjustRequestedSalaryByPercent

public void adjustRequestedSalaryByPercent(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
adjust the requested salary amount of the given appointment funding by percent

Specified by:
adjustRequestedSalaryByPercent in interface SalarySettingService
Parameters:
appointmentFunding - the given appointment funding
See Also:
SalarySettingService.adjustRequestedSalaryByPercent(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

saveSalarySetting

public void saveSalarySetting(SalarySettingExpansion salarySettingExpansion)
Description copied from interface: SalarySettingService
save the salary setting and its associated appointment funding

Specified by:
saveSalarySetting in interface SalarySettingService
Parameters:
salarySettingExpansion - the given salary setting expansion, a pending budget construction GL object
See Also:
SalarySettingService.saveSalarySetting(org.kuali.kfs.module.bc.businessobject.SalarySettingExpansion)

savePBGLSalarySetting

public void savePBGLSalarySetting(SalarySettingExpansion salarySettingExpansion)
Description copied from interface: SalarySettingService
save the pending budget general ledger rows associated with a given salary setting expansion this also handles updating the special 2PLG row

Specified by:
savePBGLSalarySetting in interface SalarySettingService

saveSalarySetting

public void saveSalarySetting(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings,
                              Boolean isSalarySettingByIncumbent)
Description copied from interface: SalarySettingService
save the given appointment fundings and associated salary setting expansion, also known as, pending budget general ledger row

Specified by:
saveSalarySetting in interface SalarySettingService
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingService#saveSalarySetting(java.util.List)

saveAppointmentFundings

public void saveAppointmentFundings(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings)
Description copied from interface: SalarySettingService
save the given appointment fundings

Specified by:
saveAppointmentFundings in interface SalarySettingService
Parameters:
appointmentFundings - the given appointment funding collection
See Also:
SalarySettingService.saveAppointmentFundings(java.util.List)

retriveSalarySalarySettingExpansion

public SalarySettingExpansion retriveSalarySalarySettingExpansion(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
retrive the salary setting expension from the information provided by the given appointment funding

Specified by:
retriveSalarySalarySettingExpansion in interface SalarySettingService
Parameters:
appointmentFunding - the given appointment funding
Returns:
the salary setting expension with the information provided by the given appointment funding
See Also:
SalarySettingService.retriveSalarySalarySettingExpansion(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

retrievePendingBudgetConstructionAppointmentFundings

public List<PendingBudgetConstructionAppointmentFunding> retrievePendingBudgetConstructionAppointmentFundings(SalarySettingExpansion salarySettingExpansion)
Description copied from interface: SalarySettingService
retrieve a list of PendingBudgetConstructionAppointmentFunding from the information provided by the given SalarySettingExpansion

Specified by:
retrievePendingBudgetConstructionAppointmentFundings in interface SalarySettingService
Returns:
the list of PendingBudgetConstructionAppointmentFunding
See Also:
SalarySettingService.retrievePendingBudgetConstructionAppointmentFundings(org.kuali.kfs.module.bc.businessobject.SalarySettingExpansion)

resetAppointmentFunding

public void resetAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
reset the given appointment funcding as deleted

Specified by:
resetAppointmentFunding in interface SalarySettingService
Parameters:
appointmentFunding - the given appointment funcding
See Also:
SalarySettingService.resetAppointmentFunding(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

markAsDelete

public void markAsDelete(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
mark the given appointment funding as deleted

Specified by:
markAsDelete in interface SalarySettingService
Parameters:
appointmentFunding - the given appointment funding
See Also:
SalarySettingService.markAsDelete(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

revert

public void revert(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings,
                   PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
revert the given appointment funding if it is just vacated

Specified by:
revert in interface SalarySettingService
Parameters:
appointmentFundings - the given appointment funding collection
appointmentFunding - the given appointment funding
See Also:
SalarySettingService.revert(java.util.List, org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

updateAccessOfAppointmentFunding

public boolean updateAccessOfAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                                SalarySettingFieldsHolder salarySettingFieldsHolder,
                                                boolean budgetByObjectMode,
                                                boolean hasDocumentEditAccess,
                                                org.kuali.rice.kim.bo.Person person)
Description copied from interface: SalarySettingService
update the access flags of the given appointment funding according to the given information

Specified by:
updateAccessOfAppointmentFunding in interface SalarySettingService
Parameters:
appointmentFunding - the given appointment funding
salarySettingFieldsHolder - the field holder that contains the values passed from the user
budgetByObjectMode - the budget by object mode flag
hasDocumentEditAccess - indicates whether the user has edit permission for the budget document (for budget by object)
person - the specified user
Returns:
true if the access flags are updated successfully; otherwise, false
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingService#updateAccessOfAppointmentFunding(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.kfs.module.bc.util.SalarySettingFieldsHolder, boolean, java.util.Map, org.kuali.rice.kim.bo.Person)

updateAccessOfAppointmentFundingByUserLevel

public boolean updateAccessOfAppointmentFundingByUserLevel(PendingBudgetConstructionAppointmentFunding appointmentFunding,
                                                           org.kuali.rice.kim.bo.Person user)
Description copied from interface: SalarySettingService
update the access flags of the given appointment funding according to the user level and document organization level

Specified by:
updateAccessOfAppointmentFundingByUserLevel in interface SalarySettingService
Parameters:
appointmentFunding - the given appointment funding
user - the specified user
Returns:
true if the access flags are updated successfully; otherwsie, false
See Also:
SalarySettingService.updateAccessOfAppointmentFundingByUserLevel(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding, org.kuali.rice.kim.bo.Person)

updateAppointmentFundingsBeforeSaving

public void updateAppointmentFundingsBeforeSaving(List<PendingBudgetConstructionAppointmentFunding> appointmentFundings)
Description copied from interface: SalarySettingService
update the fields before saving the given appointment fundings

Specified by:
updateAppointmentFundingsBeforeSaving in interface SalarySettingService
Parameters:
appointmentFundings - the given collection of appointment fundings
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingService#updateDerivedInformationForAppointmentFundings(java.util.List)

recalculateDerivedInformation

public void recalculateDerivedInformation(PendingBudgetConstructionAppointmentFunding appointmentFunding)
Description copied from interface: SalarySettingService
update the fields with the values that can be derived from the existing information, for example, hourly rate and FTE

Specified by:
recalculateDerivedInformation in interface SalarySettingService
See Also:
org.kuali.kfs.module.bc.document.service.SalarySettingService#updateDerivedInformationForAppointmentFunding(org.kuali.kfs.module.bc.businessobject.PendingBudgetConstructionAppointmentFunding)

resetDeletedFundingLines

protected void resetDeletedFundingLines(List<PendingBudgetConstructionAppointmentFunding> pendingBudgetConstructionAppointmentFunding)
reset the amount values of each line in the given appointment fundings as zeros and remove the reason annotations if the line is marked as deleted

Parameters:
pendingBudgetConstructionAppointmentFunding - the given appointment fundings

getCsfAmount

protected org.kuali.rice.kns.util.KualiInteger getCsfAmount(PendingBudgetConstructionAppointmentFunding appointmentFunding)
get the csf tracker amount of the given appointment funding

Parameters:
appointmentFunding - the given appointment funding
Returns:
the csf tracker amount of the given appointment funding if any; otherwise, return zero

hasBeenVacated

protected boolean hasBeenVacated(PendingBudgetConstructionAppointmentFunding appointmentFunding)
determine whether there exists at lease one vacant funding line for the given appointment funding

Parameters:
appointmentFunding - the given appointment funding
Returns:
true if there exists at lease one vacant funding line for the given appointment funding; otherwise, return false

createVacantAppointmentFunding

protected PendingBudgetConstructionAppointmentFunding createVacantAppointmentFunding(PendingBudgetConstructionAppointmentFunding appointmentFunding)
create a vacant appointment funding based on the given budget funding

Parameters:
appointmentFunding - the given appointment funding
Returns:
a vacant appointment funding

createPseudoAppointmentFundingLine

protected PendingBudgetConstructionAppointmentFunding createPseudoAppointmentFundingLine(SalarySettingExpansion salarySettingExpansion)
create a pseudo appointment funding for the salary setting expansion this is used when there are no funding lines for the salary setting expansion to get a funding line to be used to pass primary key info

Parameters:
salarySettingExpansion -
Returns:
a pseudo appointment funding

preprocessFundingReason

public void preprocessFundingReason(PendingBudgetConstructionAppointmentFunding appointmentFunding)
preprocess the funding reason of the given appointment funding before the funding is saved

Parameters:
appointmentFunding - the given appointment funding

preprocessLeaveRequest

public void preprocessLeaveRequest(PendingBudgetConstructionAppointmentFunding appointmentFunding)
preprocess the leave request of the given appointment funding before the funding is saved

Parameters:
appointmentFunding - the given appointment funding

hasExistingFundingReason

public boolean hasExistingFundingReason(BudgetConstructionAppointmentFundingReasonCode budgetConstructionAppointmentFundingReasonCode)
Description copied from interface: SalarySettingService
checks if a reason code has existing appointment funding reasons

Specified by:
hasExistingFundingReason in interface SalarySettingService
Returns:
See Also:
SalarySettingService.hasExistingFundingReason(org.kuali.kfs.module.bc.businessobject.BudgetConstructionAppointmentFundingReasonCode)

setKualiConfigurationService

public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
Sets the kualiConfigurationService attribute value.

Parameters:
kualiConfigurationService - The kualiConfigurationService to set.

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.

setLaborModuleService

public void setLaborModuleService(LaborModuleService laborModuleService)
Sets the laborModuleService attribute value.

Parameters:
laborModuleService - The laborModuleService to set.

setBudgetDocumentService

public void setBudgetDocumentService(BudgetDocumentService budgetDocumentService)
Sets the budgetDocumentService attribute value.

Parameters:
budgetDocumentService - The budgetDocumentService to set.

setBenefitsCalculationService

public void setBenefitsCalculationService(BenefitsCalculationService benefitsCalculationService)
Sets the benefitsCalculationService attribute value.

Parameters:
benefitsCalculationService - The benefitsCalculationService to set.

setOptionsService

public void setOptionsService(OptionsService optionsService)
Sets the optionsService attribute value.

Parameters:
optionsService - The optionsService to set.

setLockService

public void setLockService(LockService lockService)
Sets the lockService attribute value.

Parameters:
lockService - The lockService to set.

getDocumentHelperService

public org.kuali.rice.kns.service.DocumentHelperService getDocumentHelperService()
Gets the documentHelperService attribute.

Returns:
Returns the documentHelperService.

setDocumentHelperService

public void setDocumentHelperService(org.kuali.rice.kns.service.DocumentHelperService documentHelperService)
Sets the documentHelperService attribute value.

Parameters:
documentHelperService - The documentHelperService to set.

setDocumentService

public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documentService attribute value.

Parameters:
documentService - The documentService to set.

setBudgetConstructionProcessorService

public void setBudgetConstructionProcessorService(BudgetConstructionProcessorService budgetConstructionProcessorService)
Sets the budgetConstructionProcessorService attribute value.

Parameters:
budgetConstructionProcessorService - The budgetConstructionProcessorService to set.


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