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

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

@Transactional
public class LaborLedgerPendingEntryServiceImpl
extends Object
implements LaborLedgerPendingEntryService

Service implementation of LaborLedgerPendingEntryService.


Constructor Summary
LaborLedgerPendingEntryServiceImpl()
           
 
Method Summary
 void delete(String documentHeaderId)
          delete pending entries with the given document header id
 void deleteByFinancialDocumentApprovedCode(String financialDocumentApprovedCode)
          Delete the pending entries with the given financial document approved code
 Iterator<LaborLedgerPendingEntry> findApprovedPendingLedgerEntries()
          Get all entries that have been approved but still in pending entry queue
 Collection findPendingEntries(Map fieldValues, boolean isApproved)
          Use fieldValues to create a query for matching records of LaborLedgerPendingEntry instances
 Iterator findPendingLedgerEntriesForLedgerBalance(Map fieldValues, boolean isApproved)
          This method checks for pending ledger entries that match the current balance inquiry
 boolean generateLaborLedgerPendingEntries(LaborLedgerPostingDocument document)
          Invokes generateEntries method on the salary expense transfer document.
 boolean hasPendingLaborLedgerEntry(Map fieldValues)
          determine if there is any pending entry that has not been processed for the given criteria
 boolean hasPendingLaborLedgerEntry(String chartOfAccountsCode, String accountNumber)
          Does the given account have any labor ledger entries? It is necessary to check this before closing an account.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setLaborLedgerPendingEntryDao(LaborLedgerPendingEntryDao laborLedgerPendingEntryDao)
          Sets the laborLedgerPendingEntryDao attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaborLedgerPendingEntryServiceImpl

public LaborLedgerPendingEntryServiceImpl()
Method Detail

hasPendingLaborLedgerEntry

public boolean hasPendingLaborLedgerEntry(String chartOfAccountsCode,
                                          String accountNumber)
Description copied from interface: LaborLedgerPendingEntryService
Does the given account have any labor ledger entries? It is necessary to check this before closing an account.

Specified by:
hasPendingLaborLedgerEntry in interface LaborLedgerPendingEntryService
Returns:
See Also:
org.kuali.kfs.module.ld.service.LaborLedgerPendingEntryService#hasPendingLaborLedgerEntry(org.kuali.kfs.coa.businessobject.Account)

hasPendingLaborLedgerEntry

public boolean hasPendingLaborLedgerEntry(Map fieldValues)
Description copied from interface: LaborLedgerPendingEntryService
determine if there is any pending entry that has not been processed for the given criteria

Specified by:
hasPendingLaborLedgerEntry in interface LaborLedgerPendingEntryService
Parameters:
fieldValues - the given search criteria
Returns:
true if there is one or more pending entries that have not been processed for the given criteria; otherwise, false
See Also:
LaborLedgerPendingEntryService.hasPendingLaborLedgerEntry(java.util.Map)

generateLaborLedgerPendingEntries

public boolean generateLaborLedgerPendingEntries(LaborLedgerPostingDocument document)
Invokes generateEntries method on the salary expense transfer document.

Specified by:
generateLaborLedgerPendingEntries in interface LaborLedgerPendingEntryService
Parameters:
document - - document whose pending entries need generated
Returns:
whether the business rules succeeded

delete

public void delete(String documentHeaderId)
Description copied from interface: LaborLedgerPendingEntryService
delete pending entries with the given document header id

Specified by:
delete in interface LaborLedgerPendingEntryService

findPendingEntries

public Collection findPendingEntries(Map fieldValues,
                                     boolean isApproved)
Description copied from interface: LaborLedgerPendingEntryService
Use fieldValues to create a query for matching records of LaborLedgerPendingEntry instances

Specified by:
findPendingEntries in interface LaborLedgerPendingEntryService
Parameters:
fieldValues - properties to match against
isApproved - Retrieve approved or unapproved entries?

findPendingLedgerEntriesForLedgerBalance

public Iterator findPendingLedgerEntriesForLedgerBalance(Map fieldValues,
                                                         boolean isApproved)
Description copied from interface: LaborLedgerPendingEntryService
This method checks for pending ledger entries that match the current balance inquiry

Specified by:
findPendingLedgerEntriesForLedgerBalance in interface LaborLedgerPendingEntryService
Returns:
See Also:
org.kuali.module.gl.service.GeneralLedgerPendingEntryService#findPendingLedgerEntriesForAccountBalance(java.util.Map, boolean, boolean)

findApprovedPendingLedgerEntries

public Iterator<LaborLedgerPendingEntry> findApprovedPendingLedgerEntries()
Description copied from interface: LaborLedgerPendingEntryService
Get all entries that have been approved but still in pending entry queue

Specified by:
findApprovedPendingLedgerEntries in interface LaborLedgerPendingEntryService
Returns:
all approved pending entries
See Also:
LaborLedgerPendingEntryService.findApprovedPendingLedgerEntries()

deleteByFinancialDocumentApprovedCode

public void deleteByFinancialDocumentApprovedCode(String financialDocumentApprovedCode)
Description copied from interface: LaborLedgerPendingEntryService
Delete the pending entries with the given financial document approved code

Specified by:
deleteByFinancialDocumentApprovedCode in interface LaborLedgerPendingEntryService
See Also:
LaborLedgerPendingEntryService.deleteByFinancialDocumentApprovedCode(java.lang.String)

setLaborLedgerPendingEntryDao

public void setLaborLedgerPendingEntryDao(LaborLedgerPendingEntryDao laborLedgerPendingEntryDao)
Sets the laborLedgerPendingEntryDao attribute value.

Parameters:
laborLedgerPendingEntryDao - The laborLedgerPendingEntryDao to set.

setBusinessObjectService

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

Parameters:
businessObjectService - The businessObjectService to set.


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