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

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

@Transactional
public class BenefitsCalculationServiceImpl
extends Object
implements BenefitsCalculationService

This class implements the BenefitsCalculationService interface


Constructor Summary
BenefitsCalculationServiceImpl()
           
 
Method Summary
 void calculateAllBudgetConstructionGeneralLedgerBenefits(String documentNumber, Integer fiscalYear, String chartOfAccounts, String accountNumber, String subAccountNumber)
          calculates both the monthly budget and the annual budget budget construction general ledger benefits for the key passed in, and stores them in the database.
 void calculateAnnualBudgetConstructionGeneralLedgerBenefits(String documentNumber, Integer fiscalYear, String chartOfAccounts, String accountNumber, String subAccountNumber)
          calculates the annual benefits for the budget construction general ledger key passed in, and stores them in the database
 void calculateMonthlyBudgetConstructionGeneralLedgerBenefits(String documentNumber, Integer fiscalYear, String chartOfAccounts, String accountNumber, String subAccountNumber)
          calculates the monthly budget benefits for the budget construction general ledger key passed in, and stores them in the database
 org.kuali.rice.kns.service.KualiConfigurationService getKualiConfigurationService()
          Gets the kualiConfigurationService attribute.
 boolean isBenefitsCalculationDisabled()
          This method returns the disabled setting of the System Parameter controlling Budget module Benefits Calculation.
 void setBenefitsCalculationDao(BenefitsCalculationDao benefitsCalculationDao)
          This method allows spring to initialize the Dao, so we don't have to look up the bean on each call from the application
 void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
          Sets the kualiConfigurationService attribute value.
 void setOptionsService(OptionsService optionsService)
          use this to return the "Expenditures/Expense" financial object type code from the options table this must be done by fiscal year, so unfortunately we have to make one call to OJB whenever one of the methods that needs this constant is called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BenefitsCalculationServiceImpl

public BenefitsCalculationServiceImpl()
Method Detail

isBenefitsCalculationDisabled

public boolean isBenefitsCalculationDisabled()
Description copied from interface: BenefitsCalculationService
This method returns the disabled setting of the System Parameter controlling Budget module Benefits Calculation. Disabling Benefits Calculation will cause any UI controls related to the Benefits Calculation functionality to not be displayed. Disabling will also cause associated business rules checks to behave differently or not be run.

Specified by:
isBenefitsCalculationDisabled in interface BenefitsCalculationService
Returns:
See Also:
org.kuali.kfs.module.bc.document.service.BenefitsCalculationService#getBenefitsCalculationDisabled()

calculateAnnualBudgetConstructionGeneralLedgerBenefits

public void calculateAnnualBudgetConstructionGeneralLedgerBenefits(String documentNumber,
                                                                   Integer fiscalYear,
                                                                   String chartOfAccounts,
                                                                   String accountNumber,
                                                                   String subAccountNumber)
Description copied from interface: BenefitsCalculationService
calculates the annual benefits for the budget construction general ledger key passed in, and stores them in the database

Specified by:
calculateAnnualBudgetConstructionGeneralLedgerBenefits in interface BenefitsCalculationService
Parameters:
documentNumber - the string containing the document number
fiscalYear - the integer value of the fiscal year
chartOfAccounts - the string containing the chart of accounts
accountNumber - the string containing the account number
subAccountNumber - the string containing the sub account number
See Also:
BenefitsCalculationService.calculateAnnualBudgetConstructionGeneralLedgerBenefits(java.lang.String, java.lang.Integer, java.lang.String, java.lang.String, java.lang.String)

calculateMonthlyBudgetConstructionGeneralLedgerBenefits

public void calculateMonthlyBudgetConstructionGeneralLedgerBenefits(String documentNumber,
                                                                    Integer fiscalYear,
                                                                    String chartOfAccounts,
                                                                    String accountNumber,
                                                                    String subAccountNumber)
Description copied from interface: BenefitsCalculationService
calculates the monthly budget benefits for the budget construction general ledger key passed in, and stores them in the database

Specified by:
calculateMonthlyBudgetConstructionGeneralLedgerBenefits in interface BenefitsCalculationService
Parameters:
documentNumber - the string containing the document number
fiscalYear - the integer value of the fiscal year
chartOfAccounts - the string containing the chart of accounts
accountNumber - the string containing the account number
subAccountNumber - the string containing the sub account number
See Also:
BenefitsCalculationService.calculateMonthlyBudgetConstructionGeneralLedgerBenefits(java.lang.String, java.lang.Integer, java.lang.String, java.lang.String, java.lang.String)

calculateAllBudgetConstructionGeneralLedgerBenefits

public void calculateAllBudgetConstructionGeneralLedgerBenefits(String documentNumber,
                                                                Integer fiscalYear,
                                                                String chartOfAccounts,
                                                                String accountNumber,
                                                                String subAccountNumber)
Description copied from interface: BenefitsCalculationService
calculates both the monthly budget and the annual budget budget construction general ledger benefits for the key passed in, and stores them in the database.

Specified by:
calculateAllBudgetConstructionGeneralLedgerBenefits in interface BenefitsCalculationService
Parameters:
documentNumber - the string containing the document number
fiscalYear - the integer value of the fiscal year
chartOfAccounts - the string containing the chart of accounts
accountNumber - the string containing the account number
See Also:
BenefitsCalculationService.calculateAllBudgetConstructionGeneralLedgerBenefits(java.lang.String, java.lang.Integer, java.lang.String, java.lang.String, java.lang.String)

getKualiConfigurationService

public org.kuali.rice.kns.service.KualiConfigurationService getKualiConfigurationService()
Gets the kualiConfigurationService attribute.

Returns:
Returns the kualiConfigurationService.

setKualiConfigurationService

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

Parameters:
kualiConfigurationService - The kualiConfigurationService to set.

setBenefitsCalculationDao

public void setBenefitsCalculationDao(BenefitsCalculationDao benefitsCalculationDao)
This method allows spring to initialize the Dao, so we don't have to look up the bean on each call from the application

Parameters:
benefitsCalculationDao - - the Dao for benefits calculation

setOptionsService

public void setOptionsService(OptionsService optionsService)
use this to return the "Expenditures/Expense" financial object type code from the options table this must be done by fiscal year, so unfortunately we have to make one call to OJB whenever one of the methods that needs this constant is called.

Parameters:
optionsService -


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