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

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

@Transactional
public class LaborLedgerEntryServiceImpl
extends Object
implements LaborLedgerEntryService

This class implements LaborLedgerEntryService to provide the access to labor ledger entries in data stores.

See Also:
LedgerEntry

Constructor Summary
LaborLedgerEntryServiceImpl()
           
 
Method Summary
 void deleteLedgerEntriesPriorToYear(Integer fiscalYear, String chartOfAccountsCode)
          delete the ledger entry records that were posted prior to the given fiscal year
 Iterator<LedgerEntry> find(Map<String,String> fieldValues)
          Find the ledger entries that satisfy the all entries in the given field-value pair
 List<String> findEmployeesWithPayType(Map<Integer,Set<String>> payPeriods, List<String> balanceTypes, Map<String,Set<String>> earnCodePayGroupMap)
          find the employees who were paid based on a set of specified pay type within the given report periods.
 Integer getMaxSequenceNumber(LedgerEntry ledgerEntry)
          The sequence number is one of the primary keys of ledger entry.
 boolean isEmployeeWithPayType(String emplid, Map<Integer,Set<String>> payPeriods, List<String> balanceTypes, Map<String,Set<String>> earnCodePayGroupMap)
          determine whether the given employee was paid based on a set of specified pay type within the given report periods.
 void save(LedgerEntry ledgerEntry)
          Save the given ledger entry or update it if it exsits
 void setLaborAccountingCycleCachingService(LaborAccountingCycleCachingService laborAccountingCycleCachingService)
           
 void setLaborLedgerEntryDao(LaborLedgerEntryDao laborLedgerEntryDao)
          Sets the laborLedgerEntryDao attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaborLedgerEntryServiceImpl

public LaborLedgerEntryServiceImpl()
Method Detail

save

public void save(LedgerEntry ledgerEntry)
Description copied from interface: LaborLedgerEntryService
Save the given ledger entry or update it if it exsits

Specified by:
save in interface LaborLedgerEntryService
Parameters:
ledgerEntry - the given ledger entry
See Also:
LaborLedgerEntryService.save(org.kuali.kfs.module.ld.businessobject.LedgerEntry)

getMaxSequenceNumber

public Integer getMaxSequenceNumber(LedgerEntry ledgerEntry)
Description copied from interface: LaborLedgerEntryService
The sequence number is one of the primary keys of ledger entry. The entries can be grouped by other keys. This method is used to get the maximum sequence number in the group of entries.

Specified by:
getMaxSequenceNumber in interface LaborLedgerEntryService
Parameters:
ledgerEntry - the given ledger entry
Returns:
the maximum sequence number in a group of entries. If the group doesn't exist, return 0.
See Also:
org.kuali.kfs.module.ld.service.LaborLedgerEntryService#getMaxSquenceNumber(org.kuali.kfs.module.ld.businessobject.LedgerEntry)

find

public Iterator<LedgerEntry> find(Map<String,String> fieldValues)
Description copied from interface: LaborLedgerEntryService
Find the ledger entries that satisfy the all entries in the given field-value pair

Specified by:
find in interface LaborLedgerEntryService
Parameters:
fieldValues - the given field-value pair
Returns:
the ledger entries that satisfy the all entries in the given field-value pair
See Also:
LaborLedgerEntryService.find(java.util.Map)

findEmployeesWithPayType

public List<String> findEmployeesWithPayType(Map<Integer,Set<String>> payPeriods,
                                             List<String> balanceTypes,
                                             Map<String,Set<String>> earnCodePayGroupMap)
Description copied from interface: LaborLedgerEntryService
find the employees who were paid based on a set of specified pay type within the given report periods. Here, a pay type can be determined by earn code and pay group.

Specified by:
findEmployeesWithPayType in interface LaborLedgerEntryService
Parameters:
payPeriods - the given pay periods
balanceTypes - the specified balance type codes
earnCodePayGroupMap - the combination of earn codes and pay groups, where pay group is the key and earn code set is the value
Returns:
the employees who were paid based on a set of specified pay type within the given report periods
See Also:
LaborLedgerEntryService.findEmployeesWithPayType(java.util.Map, java.util.List, java.util.Map)

isEmployeeWithPayType

public boolean isEmployeeWithPayType(String emplid,
                                     Map<Integer,Set<String>> payPeriods,
                                     List<String> balanceTypes,
                                     Map<String,Set<String>> earnCodePayGroupMap)
Description copied from interface: LaborLedgerEntryService
determine whether the given employee was paid based on a set of specified pay type within the given report periods. Here, a pay type can be determined by earn code and pay group.

Specified by:
isEmployeeWithPayType in interface LaborLedgerEntryService
Parameters:
emplid - the given employee id
payPeriods - the given pay periods
balanceTypes - the specified balance type codes
earnCodePayGroupMap - the combination of earn codes and pay groups, where pay group is the key and earn code set is the value
Returns:
true if the given employee was paid based on a set of specified pay type within the given report periods; otherwise, false
See Also:
LaborLedgerEntryService.isEmployeeWithPayType(java.lang.String, java.util.Map, java.util.List, java.util.Map)

deleteLedgerEntriesPriorToYear

public void deleteLedgerEntriesPriorToYear(Integer fiscalYear,
                                           String chartOfAccountsCode)
Description copied from interface: LaborLedgerEntryService
delete the ledger entry records that were posted prior to the given fiscal year

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

setLaborLedgerEntryDao

public void setLaborLedgerEntryDao(LaborLedgerEntryDao laborLedgerEntryDao)
Sets the laborLedgerEntryDao attribute value.

Parameters:
laborLedgerEntryDao - The laborLedgerEntryDao to set.

setLaborAccountingCycleCachingService

public void setLaborAccountingCycleCachingService(LaborAccountingCycleCachingService laborAccountingCycleCachingService)


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