org.kuali.kfs.module.ld.document.service.impl
Class LaborPendingEntryConverterServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.ld.document.service.impl.LaborPendingEntryConverterServiceImpl
All Implemented Interfaces:
LaborPendingEntryConverterService

public class LaborPendingEntryConverterServiceImpl
extends Object
implements LaborPendingEntryConverterService

Default implementation of the LaborPendingEntryConverterService


Field Summary
protected  org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
           
protected  org.kuali.rice.kns.service.DateTimeService dateTimeService
           
protected  HomeOriginationService homeOriginationService
           
protected  LaborBenefitsCalculationService laborBenefitsCalculationService
           
protected  ObjectCodeService objectCodeService
           
protected  OptionsService optionsService
           
protected  YearEndPendingEntryService yearEndPendingEntryService
           
 
Constructor Summary
LaborPendingEntryConverterServiceImpl()
           
 
Method Summary
 LaborLedgerPendingEntry getBenefitA21PendingEntry(LaborLedgerPostingDocument document, ExpenseTransferAccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, org.kuali.rice.kns.util.KualiDecimal benefitAmount, String fringeBenefitObjectCode)
          convert the given document and accounting line into the benefit pending entry for effort reporting
 LaborLedgerPendingEntry getBenefitA21ReversalPendingEntry(LaborLedgerPostingDocument document, ExpenseTransferAccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, org.kuali.rice.kns.util.KualiDecimal benefitAmount, String fringeBenefitObjectCode)
          convert the given document and accounting line into the benefit reversal pending entries for effort reporting
 LaborLedgerPendingEntry getBenefitClearingPendingEntry(LaborLedgerPostingDocument document, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, String accountNumber, String chartOfAccountsCode, String benefitTypeCode, org.kuali.rice.kns.util.KualiDecimal clearingAmount)
          convert the given document into benefit clearing pending entries with the given account, chart, amount and benefit type
 LaborLedgerPendingEntry getBenefitPendingEntry(LaborLedgerPostingDocument document, ExpenseTransferAccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, org.kuali.rice.kns.util.KualiDecimal benefitAmount, String fringeBenefitObjectCode)
          convert the given document and accounting line into the benefit pending entries
 org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
           
 org.kuali.rice.kns.service.DateTimeService getDateTimeService()
           
 LaborLedgerPendingEntry getDefaultPendingEntry(LaborLedgerPostingDocument document)
          construct a LaborLedgerPendingEntry object based on the information in the given document.
 LaborLedgerPendingEntry getDefaultPendingEntry(LaborLedgerPostingDocument document, ExpenseTransferAccountingLine accountingLine)
          construct a LaborLedgerPendingEntry object based on the information in the given document and accounting line.
 LaborLedgerPendingEntry getExpenseA21PendingEntry(LaborLedgerPostingDocument document, ExpenseTransferAccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
          convert the given document and accounting line into the expense pending entries for effort reporting
 LaborLedgerPendingEntry getExpenseA21ReversalPendingEntry(LaborLedgerPostingDocument document, ExpenseTransferAccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
          convert the given document and accounting line into the expense reversal pending entries for effort reporting
 LaborLedgerPendingEntry getExpensePendingEntry(LaborLedgerPostingDocument document, ExpenseTransferAccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
          convert the given document and accounting line into the expense pending entries
 HomeOriginationService getHomeOriginationService()
           
 LaborBenefitsCalculationService getLaborBenefitsCalculationService()
           
protected  Integer getNextSequenceNumber(GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
          This method gets the next sequence number and increments.
 ObjectCodeService getObjectCodeService()
           
 OptionsService getOptionsService()
           
 LaborLedgerPendingEntry getSimpleDefaultPendingEntry()
          construct a LaborLedgerPendingEntry object based on the information in the given document and accounting line.
 YearEndPendingEntryService getYearEndPendingEntryService()
           
protected  void overrideEntryForYearEndIfNecessary(LaborLedgerPostingDocument document, LaborLedgerPendingEntry pendingEntry)
          Updates the given LLPE for year end documents
protected  String pickValue(String targetValue, String backupValue)
          Pick one from target and backup values based on the availability of target value
 void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
           
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
           
 void setHomeOriginationService(HomeOriginationService homeOriginationService)
           
 void setLaborBenefitsCalculationService(LaborBenefitsCalculationService laborBenefitsCalculationService)
           
 void setObjectCodeService(ObjectCodeService objectCodeService)
           
 void setOptionsService(OptionsService optionsService)
           
 void setYearEndPendingEntryService(YearEndPendingEntryService yearEndPendingEntryService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

homeOriginationService

protected HomeOriginationService homeOriginationService

laborBenefitsCalculationService

protected LaborBenefitsCalculationService laborBenefitsCalculationService

optionsService

protected OptionsService optionsService

objectCodeService

protected ObjectCodeService objectCodeService

dataDictionaryService

protected org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService

dateTimeService

protected org.kuali.rice.kns.service.DateTimeService dateTimeService

yearEndPendingEntryService

protected YearEndPendingEntryService yearEndPendingEntryService
Constructor Detail

LaborPendingEntryConverterServiceImpl

public LaborPendingEntryConverterServiceImpl()
Method Detail

getBenefitA21PendingEntry

public LaborLedgerPendingEntry getBenefitA21PendingEntry(LaborLedgerPostingDocument document,
                                                         ExpenseTransferAccountingLine accountingLine,
                                                         GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
                                                         org.kuali.rice.kns.util.KualiDecimal benefitAmount,
                                                         String fringeBenefitObjectCode)
Description copied from interface: LaborPendingEntryConverterService
convert the given document and accounting line into the benefit pending entry for effort reporting

Specified by:
getBenefitA21PendingEntry in interface LaborPendingEntryConverterService
Parameters:
document - the given accounting document
accountingLine - the given accounting line
sequenceHelper - the given sequence helper
benefitAmount - the given benefit amount
fringeBenefitObjectCode - the given fringe benefit object code
Returns:
a set of benefit pending entries for effort reporting
See Also:
LaborPendingEntryConverterService.getBenefitA21PendingEntry(org.kuali.kfs.module.ld.document.LaborLedgerPostingDocument, org.kuali.kfs.module.ld.businessobject.ExpenseTransferAccountingLine, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper, org.kuali.rice.kns.util.KualiDecimal, java.lang.String)

getBenefitA21ReversalPendingEntry

public LaborLedgerPendingEntry getBenefitA21ReversalPendingEntry(LaborLedgerPostingDocument document,
                                                                 ExpenseTransferAccountingLine accountingLine,
                                                                 GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
                                                                 org.kuali.rice.kns.util.KualiDecimal benefitAmount,
                                                                 String fringeBenefitObjectCode)
Description copied from interface: LaborPendingEntryConverterService
convert the given document and accounting line into the benefit reversal pending entries for effort reporting

Specified by:
getBenefitA21ReversalPendingEntry in interface LaborPendingEntryConverterService
Parameters:
document - the given accounting document
accountingLine - the given accounting line
sequenceHelper - the given sequence helper
benefitAmount - the given benefit amount
fringeBenefitObjectCode - the given fringe benefit object code
Returns:
a set of benefit reversal pending entries for effort reporting
See Also:
LaborPendingEntryConverterService.getBenefitA21ReversalPendingEntry(org.kuali.kfs.module.ld.document.LaborLedgerPostingDocument, org.kuali.kfs.module.ld.businessobject.ExpenseTransferAccountingLine, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper, org.kuali.rice.kns.util.KualiDecimal, java.lang.String)

getBenefitClearingPendingEntry

public LaborLedgerPendingEntry getBenefitClearingPendingEntry(LaborLedgerPostingDocument document,
                                                              GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
                                                              String accountNumber,
                                                              String chartOfAccountsCode,
                                                              String benefitTypeCode,
                                                              org.kuali.rice.kns.util.KualiDecimal clearingAmount)
Description copied from interface: LaborPendingEntryConverterService
convert the given document into benefit clearing pending entries with the given account, chart, amount and benefit type

Specified by:
getBenefitClearingPendingEntry in interface LaborPendingEntryConverterService
Parameters:
document - the given accounting document
sequenceHelper - the given sequence helper
accountNumber - the given account number that the benefit clearing amount can be charged
chartOfAccountsCode - the given chart of accounts code that the benefit clearing amount can be charged
benefitTypeCode - the given benefit type code
clearingAmount - the benefit clearing amount
Returns:
a set of benefit clearing pending entries
See Also:
LaborPendingEntryConverterService.getBenefitClearingPendingEntry(org.kuali.kfs.module.ld.document.LaborLedgerPostingDocument, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper, java.lang.String, java.lang.String, java.lang.String, org.kuali.rice.kns.util.KualiDecimal)

overrideEntryForYearEndIfNecessary

protected void overrideEntryForYearEndIfNecessary(LaborLedgerPostingDocument document,
                                                  LaborLedgerPendingEntry pendingEntry)
Updates the given LLPE for year end documents

Parameters:
document - the document to check if it is YearEnd
pendingEntry - the pending entry to update

getBenefitPendingEntry

public LaborLedgerPendingEntry getBenefitPendingEntry(LaborLedgerPostingDocument document,
                                                      ExpenseTransferAccountingLine accountingLine,
                                                      GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
                                                      org.kuali.rice.kns.util.KualiDecimal benefitAmount,
                                                      String fringeBenefitObjectCode)
Description copied from interface: LaborPendingEntryConverterService
convert the given document and accounting line into the benefit pending entries

Specified by:
getBenefitPendingEntry in interface LaborPendingEntryConverterService
Parameters:
document - the given accounting document
accountingLine - the given accounting line
sequenceHelper - the given sequence helper
benefitAmount - the given benefit amount
fringeBenefitObjectCode - the given fringe benefit object code
Returns:
a set of benefit pending entries
See Also:
LaborPendingEntryConverterService.getBenefitPendingEntry(org.kuali.kfs.module.ld.document.LaborLedgerPostingDocument, org.kuali.kfs.module.ld.businessobject.ExpenseTransferAccountingLine, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper, org.kuali.rice.kns.util.KualiDecimal, java.lang.String)

getDefaultPendingEntry

public LaborLedgerPendingEntry getDefaultPendingEntry(LaborLedgerPostingDocument document,
                                                      ExpenseTransferAccountingLine accountingLine)
Description copied from interface: LaborPendingEntryConverterService
construct a LaborLedgerPendingEntry object based on the information in the given document and accounting line. The object can be used as a template

Specified by:
getDefaultPendingEntry in interface LaborPendingEntryConverterService
Parameters:
document - the given document
accountingLine - the given accounting line
Returns:
a LaborLedgerPendingEntry object based on the information in the given document and accounting line
See Also:
LaborPendingEntryConverterService.getDefaultPendingEntry(org.kuali.kfs.module.ld.document.LaborLedgerPostingDocument, org.kuali.kfs.module.ld.businessobject.ExpenseTransferAccountingLine)

getDefaultPendingEntry

public LaborLedgerPendingEntry getDefaultPendingEntry(LaborLedgerPostingDocument document)
Description copied from interface: LaborPendingEntryConverterService
construct a LaborLedgerPendingEntry object based on the information in the given document. The object can be used as a template

Specified by:
getDefaultPendingEntry in interface LaborPendingEntryConverterService
Parameters:
document - the given document
Returns:
a LaborLedgerPendingEntry object based on the information in the given document
See Also:
LaborPendingEntryConverterService.getDefaultPendingEntry(org.kuali.kfs.module.ld.document.LaborLedgerPostingDocument)

getExpenseA21PendingEntry

public LaborLedgerPendingEntry getExpenseA21PendingEntry(LaborLedgerPostingDocument document,
                                                         ExpenseTransferAccountingLine accountingLine,
                                                         GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
Description copied from interface: LaborPendingEntryConverterService
convert the given document and accounting line into the expense pending entries for effort reporting

Specified by:
getExpenseA21PendingEntry in interface LaborPendingEntryConverterService
Parameters:
document - the given accounting document
accountingLine - the given accounting line
sequenceHelper - the given sequence helper
Returns:
a set of expense pending entries for effort reporting
See Also:
LaborPendingEntryConverterService.getExpenseA21PendingEntry(org.kuali.kfs.module.ld.document.LaborLedgerPostingDocument, org.kuali.kfs.module.ld.businessobject.ExpenseTransferAccountingLine, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)

getExpenseA21ReversalPendingEntry

public LaborLedgerPendingEntry getExpenseA21ReversalPendingEntry(LaborLedgerPostingDocument document,
                                                                 ExpenseTransferAccountingLine accountingLine,
                                                                 GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
Description copied from interface: LaborPendingEntryConverterService
convert the given document and accounting line into the expense reversal pending entries for effort reporting

Specified by:
getExpenseA21ReversalPendingEntry in interface LaborPendingEntryConverterService
Parameters:
document - the given accounting document
accountingLine - the given accounting line
sequenceHelper - the given sequence helper
Returns:
a set of expense reversal pending entries for effort reporting
See Also:
LaborPendingEntryConverterService.getExpenseA21ReversalPendingEntry(org.kuali.kfs.module.ld.document.LaborLedgerPostingDocument, org.kuali.kfs.module.ld.businessobject.ExpenseTransferAccountingLine, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)

getExpensePendingEntry

public LaborLedgerPendingEntry getExpensePendingEntry(LaborLedgerPostingDocument document,
                                                      ExpenseTransferAccountingLine accountingLine,
                                                      GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
Description copied from interface: LaborPendingEntryConverterService
convert the given document and accounting line into the expense pending entries

Specified by:
getExpensePendingEntry in interface LaborPendingEntryConverterService
Parameters:
document - the given accounting document
accountingLine - the given accounting line
sequenceHelper - the given sequence helper
Returns:
a set of expense pending entries
See Also:
LaborPendingEntryConverterService.getExpensePendingEntry(org.kuali.kfs.module.ld.document.LaborLedgerPostingDocument, org.kuali.kfs.module.ld.businessobject.ExpenseTransferAccountingLine, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)

getSimpleDefaultPendingEntry

public LaborLedgerPendingEntry getSimpleDefaultPendingEntry()
Description copied from interface: LaborPendingEntryConverterService
construct a LaborLedgerPendingEntry object based on the information in the given document and accounting line. The object can be used as a template

Specified by:
getSimpleDefaultPendingEntry in interface LaborPendingEntryConverterService
Returns:
a LaborLedgerPendingEntry object based on the information in the given document and accounting line
See Also:
LaborPendingEntryConverterService.getSimpleDefaultPendingEntry()

pickValue

protected String pickValue(String targetValue,
                           String backupValue)
Pick one from target and backup values based on the availability of target value

Parameters:
targetValue - the given target value
backupValue - the backup value of the target value
Returns:
target value if it is not null; otherwise, return its backup

getNextSequenceNumber

protected Integer getNextSequenceNumber(GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
This method gets the next sequence number and increments.

Parameters:
sequenceHelper - the given sequence helper
Returns:
the next sequence number and increments

getHomeOriginationService

public HomeOriginationService getHomeOriginationService()

setHomeOriginationService

public void setHomeOriginationService(HomeOriginationService homeOriginationService)

getLaborBenefitsCalculationService

public LaborBenefitsCalculationService getLaborBenefitsCalculationService()

setLaborBenefitsCalculationService

public void setLaborBenefitsCalculationService(LaborBenefitsCalculationService laborBenefitsCalculationService)

getOptionsService

public OptionsService getOptionsService()

setOptionsService

public void setOptionsService(OptionsService optionsService)

getObjectCodeService

public ObjectCodeService getObjectCodeService()

setObjectCodeService

public void setObjectCodeService(ObjectCodeService objectCodeService)

getDataDictionaryService

public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()

setDataDictionaryService

public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)

getDateTimeService

public org.kuali.rice.kns.service.DateTimeService getDateTimeService()

setDateTimeService

public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)

getYearEndPendingEntryService

public YearEndPendingEntryService getYearEndPendingEntryService()

setYearEndPendingEntryService

public void setYearEndPendingEntryService(YearEndPendingEntryService yearEndPendingEntryService)


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