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

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

@Transactional
public class EndowmenteDocPostingServiceImpl
extends Object
implements EndowmenteDocPostingService


Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
EndowmenteDocPostingServiceImpl()
           
 
Method Summary
protected  void calculateTransactionArchiveAmount(TransactionArchive tranArchive, BigDecimal transactionAmount)
          Helper method to figure out if transaction archive income/principal amount to be negated If document type is ECI, EAD, ELI, GLET, ECT AND line type code = T then copy transaction amount value to either income or principal based on ip indicator.
protected  KemidCurrentCash checkAndCalculateKemidCurrentCash(KemidCurrentCash kemidCurrentCash, EndowmentTransactionLine tranLine, String documentType, String piCode)
           
protected  TransactionArchive createTranArchive(EndowmentTransactionLine tranLine, String documentType, String subTypeCode)
          This method creates a new Transaction Archive BO from the transaction line, and line document.
protected  TransactionArchiveSecurity createTranArchiveSecurity(EndowmentTransactionSecurity tranSecurity, EndowmentTransactionLine tranLine, String documentType)
          This method will create a TransactionArchiveSecurity object from the transaction security and line object.
protected  EndowmentTransactionSecurity findSecurityTransactionRecord(EndowmentTransactionLine tranLine, String documentType)
          This method locates a Security Transaction (END_TRAN_SEC_T) record from the DB by using the document number.
 boolean processDocumentPosting()
           
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
          Sets the dataDictionaryService attribute value.
 void seteDocPostingExceptionReportWriterService(ReportWriterService eDocPostingExceptionReportWriterService)
          Sets the eDocPostingExceptionReportWriterService attribute value.
 void seteDocPostingProcessedReportWriterService(ReportWriterService eDocPostingProcessedReportWriterService)
          Sets the eDocPostingProcessedReportWriterService attribute value.
 void setKemService(KEMService kemService)
          Sets the kemService attribute value.
 void setPendingTransactionDocumentService(PendingTransactionDocumentService pendingTransactionDocumentService)
          Sets the pendingTransactionDocumentService attribute value.
 
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

EndowmenteDocPostingServiceImpl

public EndowmenteDocPostingServiceImpl()
Method Detail

processDocumentPosting

public boolean processDocumentPosting()
Specified by:
processDocumentPosting in interface EndowmenteDocPostingService
See Also:
org.kuali.kfs.module.endow.batch.service.EDocProcessPostingService#processDocumentPosting()

checkAndCalculateKemidCurrentCash

protected KemidCurrentCash checkAndCalculateKemidCurrentCash(KemidCurrentCash kemidCurrentCash,
                                                             EndowmentTransactionLine tranLine,
                                                             String documentType,
                                                             String piCode)

findSecurityTransactionRecord

protected EndowmentTransactionSecurity findSecurityTransactionRecord(EndowmentTransactionLine tranLine,
                                                                     String documentType)
This method locates a Security Transaction (END_TRAN_SEC_T) record from the DB by using the document number.

Parameters:
securityDoc -
tranLine -
Returns:
EndowmentTransactionSecurity
See Also:
KFSMI-6423

createTranArchiveSecurity

protected TransactionArchiveSecurity createTranArchiveSecurity(EndowmentTransactionSecurity tranSecurity,
                                                               EndowmentTransactionLine tranLine,
                                                               String documentType)
This method will create a TransactionArchiveSecurity object from the transaction security and line object.

Parameters:
tranSecurity -
tranLine -
Returns:
TransactionArchiveSecurity

createTranArchive

protected TransactionArchive createTranArchive(EndowmentTransactionLine tranLine,
                                               String documentType,
                                               String subTypeCode)
This method creates a new Transaction Archive BO from the transaction line, and line document.

Parameters:
lineDoc -
tranLine -
Returns:
Transaction Archive

calculateTransactionArchiveAmount

protected void calculateTransactionArchiveAmount(TransactionArchive tranArchive,
                                                 BigDecimal transactionAmount)
Helper method to figure out if transaction archive income/principal amount to be negated If document type is ECI, EAD, ELI, GLET, ECT AND line type code = T then copy transaction amount value to either income or principal based on ip indicator. If document type is EAI, ELD, or ECDD then negate the amount OR if document type is ECT or EGLT AND line type code = F then negate the amounts and copy the value to income or principal based on ip indicator.

Parameters:
tranArchive, - transacationAmount

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.

setPendingTransactionDocumentService

public void setPendingTransactionDocumentService(PendingTransactionDocumentService pendingTransactionDocumentService)
Sets the pendingTransactionDocumentService attribute value.

Parameters:
pendingTransactionDocumentService - The pendingTransactionDocumentService to set.

setDataDictionaryService

public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value.

Parameters:
dataDictionaryService - The dataDictionaryService to set.

seteDocPostingExceptionReportWriterService

public void seteDocPostingExceptionReportWriterService(ReportWriterService eDocPostingExceptionReportWriterService)
Sets the eDocPostingExceptionReportWriterService attribute value.

Parameters:
eDocPostingExceptionReportWriterService - The eDocPostingExceptionReportWriterService to set.

seteDocPostingProcessedReportWriterService

public void seteDocPostingProcessedReportWriterService(ReportWriterService eDocPostingProcessedReportWriterService)
Sets the eDocPostingProcessedReportWriterService attribute value.

Parameters:
eDocPostingProcessedReportWriterService - The eDocPostingProcessedReportWriterService to set.


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