org.kuali.kfs.module.endow.batch.service.impl
Class CreateRecurringCashTransferTransactionsServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.endow.batch.service.impl.CreateRecurringCashTransferTransactionsServiceImpl
All Implemented Interfaces:
CreateRecurringCashTransferTransactionsService

@Transactional
public class CreateRecurringCashTransferTransactionsServiceImpl
extends Object
implements CreateRecurringCashTransferTransactionsService


Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
CreateRecurringCashTransferTransactionsServiceImpl()
           
 
Method Summary
protected  boolean addGlTransactionLine(EndowmentRecurringCashTransferGLTarget endowmentRecurringCashTransferGLTarget, EndowmentToGLTransferOfFundsDocument endowmentToGLTransferOfFundsDocument, org.kuali.rice.kns.util.KualiDecimal totalAmount, String sourceKemid, String transferNumber)
           
protected  boolean addKemidTargetTransactionLine(EndowmentRecurringCashTransferKEMIDTarget endowmentRecurringCashTransferKEMIDTarget, CashTransferDocument cashTransferDoc, org.kuali.rice.kns.util.KualiDecimal totalAmount, String sourceKemid, String transferNumber)
           
protected  void addSourceTransactionLineForCashTransferDoc(EndowmentRecurringCashTransfer endowmentRecurringCashTransfer, CashTransferDocument cashTransferDoc, org.kuali.rice.kns.util.KualiDecimal totalAmount)
          This method...
protected  void addSourceTransactionLineForGLTransferOfFundsDocument(EndowmentRecurringCashTransfer endowmentRecurringCashTransfer, EndowmentToGLTransferOfFundsDocument gLTransferOfFundsDocument, org.kuali.rice.kns.util.KualiDecimal totalAmount)
           
protected  void calculateCashTransfers(Collection<EndowmentRecurringCashTransfer> cashTransfers)
           
protected  org.kuali.rice.kns.util.KualiDecimal calculateCashTransferTransactionAmount(EndowmentRecurringCashTransferKEMIDTarget kemidTarget, org.kuali.rice.kns.util.KualiDecimal cashEquivalents, String sourceKemid, Date lastProcessDate)
           
protected  void calculateGlCashTransfers(Collection<EndowmentRecurringCashTransfer> glCashTransfers)
           
protected  org.kuali.rice.kns.util.KualiDecimal calculateGlCashTransferTransactionAmount(EndowmentRecurringCashTransferGLTarget glTarget, org.kuali.rice.kns.util.KualiDecimal cashEquivalents, String sourceKemid, Date lastProcessDate)
           
protected  org.kuali.rice.kns.util.KualiDecimal calculateTotalCashEquivalents(EndowmentRecurringCashTransfer endowmentRecurringCashTransfer)
           
protected  org.kuali.rice.kns.util.KualiDecimal calculateTotalIncomeTransactionArchives(List<TransactionArchive> transactionArchiveList)
           
protected  CashTransferDocument createCashTransferDocument(String sourceKemid, String transferNumber)
           
protected  EndowmentToGLTransferOfFundsDocument createEndowmentToGLTransferOfFundsDocument(String sourceKemid, String transferNumber)
           
 boolean createRecurringCashTransferTransactions()
          Generates the necessary eDocs for the overnight investment of cash (cash sweep) by generating asset increase eDocs for the KEMIDs based upon the cash sweep model assigned to the KEMID record.
protected  List<String> extractGlobalVariableErrors()
          Extracts errors for error report writing.
protected  Collection<EndowmentRecurringCashTransfer> getAllRecurringCashTransferTransactionsForCurrentDate()
          This method retrieves all the recurring cash transfer transactions whose frequency code matches the current date.
protected  boolean getNoRouteParameterAsBoolean()
           
protected  List<TransactionArchive> retrieveTransactionArchives(String sourceKemid, Date lastProcessDate, String targetEtranCode)
           
protected  boolean routeCashTransferDoc(CashTransferDocument cashTransferDoc, String sourceKemid, String transferNumber, org.kuali.rice.kns.util.KualiDecimal totalAmount)
           
protected  boolean routeGLTransferOfFundsDocument(EndowmentToGLTransferOfFundsDocument gLTransferOfFundsDocument, String sourceKemid, String transferNumber, org.kuali.rice.kns.util.KualiDecimal totalAmount)
           
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setConfigService(org.kuali.rice.kns.service.KualiConfigurationService configService)
          Sets the configService.
 void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
           
 void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
          Sets the documentService attribute value.
 void setHoldingTaxLotService(HoldingTaxLotService holdingTaxLotService)
           
 void setKemidCurrentCashService(KemidCurrentCashService kemidCurrentCashService)
          Sets the kemidCurrentCashOpenRecordsService
 void setKemService(KEMService kemService)
          Sets the kemService attribute value.
 void setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService kualiRuleService)
          Sets the kualiRuleService attribute value.
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
          Sets the parameterService attribute value.
 void setRecurringCashTransferTransactionsExceptionReportWriterService(ReportWriterService recurringCashTransferTransactionsExceptionReportWriterService)
           
 void setRecurringCashTransferTransactionsTotalReportWriterService(ReportWriterService recurringCashTransferTransactionsTotalReportWriterService)
           
protected  void writeExceptionReportLine(String documentType, String sourceKemid, String transferNumber, String targetSeqNumber)
           
protected  void writeExceptionReportLine(String documentType, String sourceKemid, String transferNumber, String targetSeqNumber, String reason)
           
protected  void writeGrandTotalReportLine()
           
protected  void writeSubTotalReportLine()
           
protected  void writeTotalReportLine(String documentType, String documentId, String transferNumber, String sourcekemid, Integer targetLinesGenerated, org.kuali.rice.kns.util.KualiDecimal totalTransferAmount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static org.apache.log4j.Logger LOG
Constructor Detail

CreateRecurringCashTransferTransactionsServiceImpl

public CreateRecurringCashTransferTransactionsServiceImpl()
Method Detail

createRecurringCashTransferTransactions

public boolean createRecurringCashTransferTransactions()
Description copied from interface: CreateRecurringCashTransferTransactionsService
Generates the necessary eDocs for the overnight investment of cash (cash sweep) by generating asset increase eDocs for the KEMIDs based upon the cash sweep model assigned to the KEMID record.

Specified by:
createRecurringCashTransferTransactions in interface CreateRecurringCashTransferTransactionsService
Returns:
See Also:
org.kuali.kfs.module.endow.batch.service.CreateRecurringCashTransferTransactionsService#createCashSweepTransactions()

calculateCashTransfers

protected void calculateCashTransfers(Collection<EndowmentRecurringCashTransfer> cashTransfers)

calculateCashTransferTransactionAmount

protected org.kuali.rice.kns.util.KualiDecimal calculateCashTransferTransactionAmount(EndowmentRecurringCashTransferKEMIDTarget kemidTarget,
                                                                                      org.kuali.rice.kns.util.KualiDecimal cashEquivalents,
                                                                                      String sourceKemid,
                                                                                      Date lastProcessDate)

calculateGlCashTransfers

protected void calculateGlCashTransfers(Collection<EndowmentRecurringCashTransfer> glCashTransfers)

calculateGlCashTransferTransactionAmount

protected org.kuali.rice.kns.util.KualiDecimal calculateGlCashTransferTransactionAmount(EndowmentRecurringCashTransferGLTarget glTarget,
                                                                                        org.kuali.rice.kns.util.KualiDecimal cashEquivalents,
                                                                                        String sourceKemid,
                                                                                        Date lastProcessDate)

calculateTotalCashEquivalents

protected org.kuali.rice.kns.util.KualiDecimal calculateTotalCashEquivalents(EndowmentRecurringCashTransfer endowmentRecurringCashTransfer)

getAllRecurringCashTransferTransactionsForCurrentDate

protected Collection<EndowmentRecurringCashTransfer> getAllRecurringCashTransferTransactionsForCurrentDate()
This method retrieves all the recurring cash transfer transactions whose frequency code matches the current date.

Returns:
List of CashSweepModel business objects

retrieveTransactionArchives

protected List<TransactionArchive> retrieveTransactionArchives(String sourceKemid,
                                                               Date lastProcessDate,
                                                               String targetEtranCode)

calculateTotalIncomeTransactionArchives

protected org.kuali.rice.kns.util.KualiDecimal calculateTotalIncomeTransactionArchives(List<TransactionArchive> transactionArchiveList)

addSourceTransactionLineForCashTransferDoc

protected void addSourceTransactionLineForCashTransferDoc(EndowmentRecurringCashTransfer endowmentRecurringCashTransfer,
                                                          CashTransferDocument cashTransferDoc,
                                                          org.kuali.rice.kns.util.KualiDecimal totalAmount)
This method...

Parameters:
assetIncreaseDoc -
assetSaleOffsetCode -
kemid -
cashLimit -
currentCash -

addSourceTransactionLineForGLTransferOfFundsDocument

protected void addSourceTransactionLineForGLTransferOfFundsDocument(EndowmentRecurringCashTransfer endowmentRecurringCashTransfer,
                                                                    EndowmentToGLTransferOfFundsDocument gLTransferOfFundsDocument,
                                                                    org.kuali.rice.kns.util.KualiDecimal totalAmount)

addKemidTargetTransactionLine

protected boolean addKemidTargetTransactionLine(EndowmentRecurringCashTransferKEMIDTarget endowmentRecurringCashTransferKEMIDTarget,
                                                CashTransferDocument cashTransferDoc,
                                                org.kuali.rice.kns.util.KualiDecimal totalAmount,
                                                String sourceKemid,
                                                String transferNumber)

addGlTransactionLine

protected boolean addGlTransactionLine(EndowmentRecurringCashTransferGLTarget endowmentRecurringCashTransferGLTarget,
                                       EndowmentToGLTransferOfFundsDocument endowmentToGLTransferOfFundsDocument,
                                       org.kuali.rice.kns.util.KualiDecimal totalAmount,
                                       String sourceKemid,
                                       String transferNumber)

createCashTransferDocument

protected CashTransferDocument createCashTransferDocument(String sourceKemid,
                                                          String transferNumber)

routeCashTransferDoc

protected boolean routeCashTransferDoc(CashTransferDocument cashTransferDoc,
                                       String sourceKemid,
                                       String transferNumber,
                                       org.kuali.rice.kns.util.KualiDecimal totalAmount)

routeGLTransferOfFundsDocument

protected boolean routeGLTransferOfFundsDocument(EndowmentToGLTransferOfFundsDocument gLTransferOfFundsDocument,
                                                 String sourceKemid,
                                                 String transferNumber,
                                                 org.kuali.rice.kns.util.KualiDecimal totalAmount)

createEndowmentToGLTransferOfFundsDocument

protected EndowmentToGLTransferOfFundsDocument createEndowmentToGLTransferOfFundsDocument(String sourceKemid,
                                                                                          String transferNumber)

getNoRouteParameterAsBoolean

protected boolean getNoRouteParameterAsBoolean()

extractGlobalVariableErrors

protected List<String> extractGlobalVariableErrors()
Extracts errors for error report writing.

Returns:
a list of error messages

writeExceptionReportLine

protected void writeExceptionReportLine(String documentType,
                                        String sourceKemid,
                                        String transferNumber,
                                        String targetSeqNumber)

writeExceptionReportLine

protected void writeExceptionReportLine(String documentType,
                                        String sourceKemid,
                                        String transferNumber,
                                        String targetSeqNumber,
                                        String reason)

writeTotalReportLine

protected void writeTotalReportLine(String documentType,
                                    String documentId,
                                    String transferNumber,
                                    String sourcekemid,
                                    Integer targetLinesGenerated,
                                    org.kuali.rice.kns.util.KualiDecimal totalTransferAmount)

writeSubTotalReportLine

protected void writeSubTotalReportLine()

writeGrandTotalReportLine

protected void writeGrandTotalReportLine()

setBusinessObjectService

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

Parameters:
businessObjectService - The businessObjectService to set.

setKemService

public void setKemService(KEMService kemService)
Sets the kemService attribute value.

Parameters:
kemService - The kemService to set.

setDocumentService

public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documentService attribute value.

Parameters:
documentService - The documentService to set.

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value.

Parameters:
parameterService - The parameterService to set.

setKualiRuleService

public void setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService kualiRuleService)
Sets the kualiRuleService attribute value.

Parameters:
kualiRuleService - The kualiRuleService to set.

setKemidCurrentCashService

public void setKemidCurrentCashService(KemidCurrentCashService kemidCurrentCashService)
Sets the kemidCurrentCashOpenRecordsService

Parameters:
kemidCurrentCashOpenRecordsService - The kemidCurrentCashOpenRecordsService to set.

setHoldingTaxLotService

public void setHoldingTaxLotService(HoldingTaxLotService holdingTaxLotService)

setRecurringCashTransferTransactionsExceptionReportWriterService

public void setRecurringCashTransferTransactionsExceptionReportWriterService(ReportWriterService recurringCashTransferTransactionsExceptionReportWriterService)

setRecurringCashTransferTransactionsTotalReportWriterService

public void setRecurringCashTransferTransactionsTotalReportWriterService(ReportWriterService recurringCashTransferTransactionsTotalReportWriterService)

setDataDictionaryService

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

setConfigService

public void setConfigService(org.kuali.rice.kns.service.KualiConfigurationService configService)
Sets the configService.

Parameters:
configService -


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