org.kuali.kfs.module.ld.service.impl
Class LaborLedgerBalanceServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.ld.service.impl.LaborLedgerBalanceServiceImpl
All Implemented Interfaces:
LaborLedgerBalanceService

public class LaborLedgerBalanceServiceImpl
extends Object
implements LaborLedgerBalanceService


Constructor Summary
LaborLedgerBalanceServiceImpl()
           
 
Method Summary
 LedgerBalance addLedgerBalance(Collection<LedgerBalance> ledgerBalanceCollection, LaborTransaction transaction)
          convert the given transaction information into a ledger balance and add it into the given ledger balance collection with
 void deleteLedgerBalancesPriorToYear(Integer fiscalYear, String chartOfAccountsCode)
          delete the ledger balance records that were posted prior to the given fiscal year
 List<List<String>> findAccountsInFundGroups(Integer fiscalYear, Map<String,String> fieldValues, List<String> subFundGroupCodes, List<String> fundGroupCodes)
          find the accounts (chart of accounts code + account number) in the given fund groups
 Iterator findBalance(Map fieldValues, boolean isConsolidated)
          This method gets the size of balance entries according to input fields and values
 Iterator<LedgerBalance> findBalancesForFiscalYear(Integer fiscalYear)
           
 Iterator<LedgerBalance> findBalancesForFiscalYear(Integer fiscalYear, Map<String,String> fieldValues)
           
 Iterator<LedgerBalanceForYearEndBalanceForward> findBalancesForFiscalYear(Integer fiscalYear, Map<String,String> fieldValues, List<String> subFundGroupCodes, List<String> fundGroupCodes)
           
 List<LaborBalanceSummary> findBalanceSummary(Integer fiscalYear, Collection<String> balanceTypes)
          find the summary of the ledger balances for the given fiscal year and balance types
 List<EmployeeFunding> findEmployeeFunding(Map fieldValues, boolean isConsolidated)
          find the funding by employee
 List<EmployeeFunding> findEmployeeFundingWithCSFTracker(Map fieldValues, boolean isConsolidated)
          find the employee funding with the corresponding CSF trakers
<T extends LedgerBalance>
T
findLedgerBalance(Collection<T> ledgerBalanceCollection, LaborTransaction transaction)
          find a ledger balance from the given ledger balance collection with the given transaction information
<T extends LedgerBalance>
T
findLedgerBalance(Collection<T> ledgerBalanceCollection, LaborTransaction transaction, List<String> keyList)
          find a ledger balance from the given ledger balance collection with the given transaction information
 Collection<LedgerBalance> findLedgerBalances(Map<String,List<String>> fieldValues, Map<String,List<String>> excludedFieldValues, Set<Integer> fiscalYears, List<String> balanceTypeList, List<String> positionObjectGroupCodes)
          find all ledger balances matching the given criteria within the given fiscal years
 Integer getBalanceRecordCount(Map fieldValues, boolean isConsolidated)
          This method finds the summary records of balance entries according to input fields and values
 void save(LedgerBalance ledgerBalance)
          save the given ledger balance into the underlying data store
 void setLaborCalculatedSalaryFoundationTrackerService(LaborCalculatedSalaryFoundationTrackerService laborCalculatedSalaryFoundationTrackerService)
          Sets the laborCalculatedSalaryFoundationTrackerService attribute value.
 void setLaborLedgerBalanceDao(LaborLedgerBalanceDao laborLedgerBalanceDao)
          Sets the laborLedgerBalanceDao attribute value.
<T extends LedgerBalance>
void
updateLedgerBalance(T ledgerBalance, LaborTransaction transaction)
          update the given ledger balance with the given transaction information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaborLedgerBalanceServiceImpl

public LaborLedgerBalanceServiceImpl()
Method Detail

findBalancesForFiscalYear

public Iterator<LedgerBalance> findBalancesForFiscalYear(Integer fiscalYear)
Specified by:
findBalancesForFiscalYear in interface LaborLedgerBalanceService
Parameters:
fiscalYear - the given fiscal year
Returns:
an Iterator over all balances for a given year
See Also:
LaborLedgerBalanceService.findBalancesForFiscalYear(java.lang.Integer)

findBalancesForFiscalYear

public Iterator<LedgerBalance> findBalancesForFiscalYear(Integer fiscalYear,
                                                         Map<String,String> fieldValues)
Specified by:
findBalancesForFiscalYear in interface LaborLedgerBalanceService
Parameters:
fiscalYear - the given fiscal year
fieldValues - the input fields and values
Returns:
an Iterator over all balances for a given year and search criteria
See Also:
LaborLedgerBalanceService.findBalancesForFiscalYear(java.lang.Integer, java.util.Map)

findBalance

public Iterator findBalance(Map fieldValues,
                            boolean isConsolidated)
Description copied from interface: LaborLedgerBalanceService
This method gets the size of balance entries according to input fields and values

Specified by:
findBalance in interface LaborLedgerBalanceService
Parameters:
fieldValues - the input fields and values
isConsolidated - consolidation option is applied or not
Returns:
the size of balance entries
See Also:
LaborLedgerBalanceService.findBalance(java.util.Map, boolean)

getBalanceRecordCount

public Integer getBalanceRecordCount(Map fieldValues,
                                     boolean isConsolidated)
Description copied from interface: LaborLedgerBalanceService
This method finds the summary records of balance entries according to input fields and values

Specified by:
getBalanceRecordCount in interface LaborLedgerBalanceService
Parameters:
fieldValues - the input fields and values
isConsolidated - consolidation option is applied or not
Returns:
the summary records of balance entries
See Also:
LaborLedgerBalanceService.getBalanceRecordCount(java.util.Map, boolean)

findLedgerBalance

public <T extends LedgerBalance> T findLedgerBalance(Collection<T> ledgerBalanceCollection,
                                                     LaborTransaction transaction,
                                                     List<String> keyList)
Description copied from interface: LaborLedgerBalanceService
find a ledger balance from the given ledger balance collection with the given transaction information

Specified by:
findLedgerBalance in interface LaborLedgerBalanceService
Parameters:
ledgerBalanceCollection - the given ledger balance collection
transaction - the given transaction information
keyList - the given list of keys that need to be compared
Returns:
a matching ledger balance from the given ledger balance
See Also:
LaborLedgerBalanceService.findLedgerBalance(java.util.Collection, org.kuali.kfs.module.ld.businessobject.LaborTransaction)

findLedgerBalance

public <T extends LedgerBalance> T findLedgerBalance(Collection<T> ledgerBalanceCollection,
                                                     LaborTransaction transaction)
Description copied from interface: LaborLedgerBalanceService
find a ledger balance from the given ledger balance collection with the given transaction information

Specified by:
findLedgerBalance in interface LaborLedgerBalanceService
Parameters:
ledgerBalanceCollection - the given ledger balance collection
transaction - the given transaction information
Returns:
a matching ledger balance from the given ledger balance
See Also:
LaborLedgerBalanceService.findLedgerBalance(java.util.Collection, org.kuali.kfs.module.ld.businessobject.LaborTransaction)

updateLedgerBalance

@Transactional
public <T extends LedgerBalance> void updateLedgerBalance(T ledgerBalance,
                                                                        LaborTransaction transaction)
Description copied from interface: LaborLedgerBalanceService
update the given ledger balance with the given transaction information

Specified by:
updateLedgerBalance in interface LaborLedgerBalanceService
Parameters:
ledgerBalance - the given ledger balance
transaction - the given transaction information
See Also:
LaborLedgerBalanceService.updateLedgerBalance(org.kuali.kfs.module.ld.businessobject.LedgerBalance, org.kuali.kfs.module.ld.businessobject.LaborTransaction)

addLedgerBalance

@Transactional
public LedgerBalance addLedgerBalance(Collection<LedgerBalance> ledgerBalanceCollection,
                                                    LaborTransaction transaction)
Description copied from interface: LaborLedgerBalanceService
convert the given transaction information into a ledger balance and add it into the given ledger balance collection with

Specified by:
addLedgerBalance in interface LaborLedgerBalanceService
Parameters:
ledgerBalanceCollection - the given ledger balance collection
transaction - the given transaction information
Returns:
the ledger balance that has been added; otherwise, null;
See Also:
LaborLedgerBalanceService.addLedgerBalance(java.util.Collection, org.kuali.kfs.module.ld.businessobject.LaborTransaction)

findEmployeeFunding

public List<EmployeeFunding> findEmployeeFunding(Map fieldValues,
                                                 boolean isConsolidated)
Description copied from interface: LaborLedgerBalanceService
find the funding by employee

Specified by:
findEmployeeFunding in interface LaborLedgerBalanceService
Parameters:
fieldValues - the given field values
Returns:
the funding by employee
See Also:
org.kuali.kfs.module.ld.service.LaborLedgerBalanceService#findEmployeeFunding(java.util.Map)

findEmployeeFundingWithCSFTracker

public List<EmployeeFunding> findEmployeeFundingWithCSFTracker(Map fieldValues,
                                                               boolean isConsolidated)
Description copied from interface: LaborLedgerBalanceService
find the employee funding with the corresponding CSF trakers

Specified by:
findEmployeeFundingWithCSFTracker in interface LaborLedgerBalanceService
Parameters:
fieldValues - the given field values
Returns:
the employee funding with the corresponding CSF trakers
See Also:
org.kuali.kfs.module.ld.service.LaborLedgerBalanceService#findEmployeeFundingWithCSFTracker(java.util.Map)

findBalanceSummary

public List<LaborBalanceSummary> findBalanceSummary(Integer fiscalYear,
                                                    Collection<String> balanceTypes)
Description copied from interface: LaborLedgerBalanceService
find the summary of the ledger balances for the given fiscal year and balance types

Specified by:
findBalanceSummary in interface LaborLedgerBalanceService
Parameters:
fiscalYear - the given fiscal year
balanceTypes - the given balance type codes
Returns:
the ledger balances for the given fiscal year and balance types
See Also:
LaborLedgerBalanceService.findBalanceSummary(java.lang.Integer, java.util.Collection)

save

@Transactional
public void save(LedgerBalance ledgerBalance)
Description copied from interface: LaborLedgerBalanceService
save the given ledger balance into the underlying data store

Specified by:
save in interface LaborLedgerBalanceService
Parameters:
ledgerBalance - the given ledger balance
See Also:
LaborLedgerBalanceService.save(org.kuali.kfs.module.ld.businessobject.LedgerBalance)

findBalancesForFiscalYear

public Iterator<LedgerBalanceForYearEndBalanceForward> findBalancesForFiscalYear(Integer fiscalYear,
                                                                                 Map<String,String> fieldValues,
                                                                                 List<String> subFundGroupCodes,
                                                                                 List<String> fundGroupCodes)
Specified by:
findBalancesForFiscalYear in interface LaborLedgerBalanceService
Parameters:
fiscalYear - the given fiscal year
fieldValues - the input fields and values
subFundGroupCodes - the given list of qualified sub fund group codes
fundGroupCodes - the given list of qualified group codes
Returns:
an Iterator over all balances for a given year and search criteria that include the accounts of balances must belong to the given sub fund group or fund group
See Also:
LaborLedgerBalanceService.findBalancesForFiscalYear(java.lang.Integer, java.util.Map, java.util.List, java.util.List)

findAccountsInFundGroups

public List<List<String>> findAccountsInFundGroups(Integer fiscalYear,
                                                   Map<String,String> fieldValues,
                                                   List<String> subFundGroupCodes,
                                                   List<String> fundGroupCodes)
Description copied from interface: LaborLedgerBalanceService
find the accounts (chart of accounts code + account number) in the given fund groups

Specified by:
findAccountsInFundGroups in interface LaborLedgerBalanceService
Parameters:
fiscalYear - the given fiscal year
fieldValues - the input fields and values
subFundGroupCodes - the given list of qualified sub fund group codes
fundGroupCodes - the given list of qualified group codes
Returns:
the accounts (chart of accounts code + account number) in the given fund groups
See Also:
LaborLedgerBalanceService.findAccountsInFundGroups(java.lang.Integer, java.util.Map, java.util.List, java.util.List)

findLedgerBalances

public Collection<LedgerBalance> findLedgerBalances(Map<String,List<String>> fieldValues,
                                                    Map<String,List<String>> excludedFieldValues,
                                                    Set<Integer> fiscalYears,
                                                    List<String> balanceTypeList,
                                                    List<String> positionObjectGroupCodes)
Description copied from interface: LaborLedgerBalanceService
find all ledger balances matching the given criteria within the given fiscal years

Specified by:
findLedgerBalances in interface LaborLedgerBalanceService
Parameters:
fieldValues - the given field values
excludedFieldValues - the given field values that must not be matched
fiscalYears - the given fiscal years
balanceTypeList - the given balance type code list
positionObjectGroupCodes - the specified position obejct group codes
Returns:
all ledger balances matching the given criteria within the given fiscal years
See Also:
LaborLedgerBalanceService.findLedgerBalances(java.util.Map, java.util.Map, java.util.Set, java.util.List, java.util.List)

deleteLedgerBalancesPriorToYear

@Transactional
public void deleteLedgerBalancesPriorToYear(Integer fiscalYear,
                                                          String chartOfAccountsCode)
Description copied from interface: LaborLedgerBalanceService
delete the ledger balance records that were posted prior to the given fiscal year

Specified by:
deleteLedgerBalancesPriorToYear in interface LaborLedgerBalanceService
Parameters:
fiscalYear - the given fiscal year
chartOfAccountsCode - the given chart of account code
See Also:
LaborLedgerBalanceService.deleteLedgerBalancesPriorToYear(java.lang.Integer, java.lang.String)

setLaborLedgerBalanceDao

public void setLaborLedgerBalanceDao(LaborLedgerBalanceDao laborLedgerBalanceDao)
Sets the laborLedgerBalanceDao attribute value.

Parameters:
laborLedgerBalanceDao - The laborLedgerBalanceDao to set.

setLaborCalculatedSalaryFoundationTrackerService

public void setLaborCalculatedSalaryFoundationTrackerService(LaborCalculatedSalaryFoundationTrackerService laborCalculatedSalaryFoundationTrackerService)
Sets the laborCalculatedSalaryFoundationTrackerService attribute value.

Parameters:
laborCalculatedSalaryFoundationTrackerService - The laborCalculatedSalaryFoundationTrackerService to set.


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