org.kuali.kfs.module.endow.document.service.impl
Class EndowmentTransactionDocumentServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.endow.document.service.impl.EndowmentTransactionDocumentServiceImpl
All Implemented Interfaces:
EndowmentTransactionDocumentService
Direct Known Subclasses:
EndowmentTransactionLinesDocumentServiceImpl

public class EndowmentTransactionDocumentServiceImpl
extends Object
implements EndowmentTransactionDocumentService

This class is the service implementation for the EndowmentTransactionCodeService. This is the default, Kuali provided implementation.


Constructor Summary
EndowmentTransactionDocumentServiceImpl()
           
 
Method Summary
 org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
          Gets the businessObjectService.
 EndowmentTransactionCodeService getEndowmentTransactionCodeService()
          Gets the endowmentTransactionCodeService.
 KEMIDService getKemidService()
          Gets the kemidService.
 String[] getSecurity(String securityID)
          This method gets an endowment transaction by the primary key: endowment transaction code
 String[] getSecurityForHoldingHistoryValueAdjustment(String securityId)
          Gets the security, class and valuationMethod details based on the securityId.
 boolean matchChartBetweenKEMIDAndETranCode(String kemid, String etranCode, String ipIndicator)
          Check if there is a GLLink record in the EndowmentTransactionCode that the chart code in the record matches the chart code in the KemidGeneralLedgerAccount associated with a KEMID given the IP indicator info.
 boolean matchChartBetweenSecurityAndETranCode(Security security, String kemid, String ipIndicator)
          Check if there is a GLLink record in the EndowmentTransactionCode that the chart code in the record matches the chart code in the GeneralLedgerAccount associated with a Security given the IP indicator info.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService
 void setEndowmentTransactionCodeService(EndowmentTransactionCodeService endowmentTransactionCodeService)
          Sets the endowmentTransactionCodeService.
 void setKemidService(KEMIDService kemidService)
          Sets the kemidService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndowmentTransactionDocumentServiceImpl

public EndowmentTransactionDocumentServiceImpl()
Method Detail

getSecurity

public String[] getSecurity(String securityID)
Description copied from interface: EndowmentTransactionDocumentService
This method gets an endowment transaction by the primary key: endowment transaction code

Specified by:
getSecurity in interface EndowmentTransactionDocumentService
Returns:
the endowment transaction

getSecurityForHoldingHistoryValueAdjustment

public String[] getSecurityForHoldingHistoryValueAdjustment(String securityId)
Gets the security, class and valuationMethod details based on the securityId.

Specified by:
getSecurityForHoldingHistoryValueAdjustment in interface EndowmentTransactionDocumentService
Returns:
String[]
See Also:
EndowmentTransactionDocumentService.getSecurity(java.lang.String)

matchChartBetweenKEMIDAndETranCode

public boolean matchChartBetweenKEMIDAndETranCode(String kemid,
                                                  String etranCode,
                                                  String ipIndicator)
Description copied from interface: EndowmentTransactionDocumentService
Check if there is a GLLink record in the EndowmentTransactionCode that the chart code in the record matches the chart code in the KemidGeneralLedgerAccount associated with a KEMID given the IP indicator info.

Specified by:
matchChartBetweenKEMIDAndETranCode in interface EndowmentTransactionDocumentService
Returns:
true or false
See Also:
Check if the chart code matches based on the following rule: The ETRAN Code used must have an appropriately identified general ledger object code record; one that matches the Chart for the KEMID associated general ledger account. - If the END_TRAN_LN_T: TRAN_IP_IND_CD is equal to I, the chart must match the chart of the active END_KEMID_GL_LNK_T record where the IP_IND_CD is equal to I. - If the END_TRAN_LN_T: TRAN_IP_IND_CD is equal to P, the chart must match the chart of the active END_KEMID_GL_LNK_T record where the IP_IND_CD is equal to P. Assume that all inputs are valid.

matchChartBetweenSecurityAndETranCode

public boolean matchChartBetweenSecurityAndETranCode(Security security,
                                                     String kemid,
                                                     String ipIndicator)
Description copied from interface: EndowmentTransactionDocumentService
Check if there is a GLLink record in the EndowmentTransactionCode that the chart code in the record matches the chart code in the GeneralLedgerAccount associated with a Security given the IP indicator info.

Specified by:
matchChartBetweenSecurityAndETranCode in interface EndowmentTransactionDocumentService
Returns:
See Also:
Check if the chart code matches based on the following rule: The Securities ETRAN Code used must have an appropriately identified general ledger object code record; one that matches the Chart for the KEMID associated general ledger account. - If the END_TRAN_LN_T: TRAN_IP_IND_CD is equal to I, the chart must match the chart of the active END_KEMID_GL_LNK_T record where the IP_IND_CD is equal to I. - If the END_TRAN_LN_T: TRAN_IP_IND_CD is equal to P, the chart must match the chart of the active END_KEMID_GL_LNK_T record where the IP_IND_CD is equal to P. Assume that all inputs are valid.

getBusinessObjectService

public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
Gets the businessObjectService.

Returns:
businessObjectService

setBusinessObjectService

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

Parameters:
businessObjectService -

getKemidService

public KEMIDService getKemidService()
Gets the kemidService.

Returns:
kemidService

setKemidService

public void setKemidService(KEMIDService kemidService)
Sets the kemidService.

Parameters:
kemidService -

getEndowmentTransactionCodeService

public EndowmentTransactionCodeService getEndowmentTransactionCodeService()
Gets the endowmentTransactionCodeService.

Returns:
endowmentTransactionCodeService

setEndowmentTransactionCodeService

public void setEndowmentTransactionCodeService(EndowmentTransactionCodeService endowmentTransactionCodeService)
Sets the endowmentTransactionCodeService.

Parameters:
endowmentTransactionCodeService -


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