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

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

public class EndowmentTransactionLinesDocumentServiceImpl
extends EndowmentTransactionDocumentServiceImpl
implements EndowmentTransactionLinesDocumentService


Constructor Summary
EndowmentTransactionLinesDocumentServiceImpl()
           
 
Method Summary
 boolean canKEMIDHaveAPrincipalActivity(String kemid, String ipIndicator)
          Check if a KEMID can have a principal activity
 boolean getCorpusIndicatorValueforAnEndowmentTransactionLine(String kemid, String etranCode, String ipIndicator)
          Get the value of CorpusIndicator
 EndowmentTransactionCodeService getEndowmentTransactionCodeService()
          Gets the endowmentTransactionCodeService.
 KEMIDService getKemidService()
          Gets the kemidService.
 void setEndowmentTransactionCodeService(EndowmentTransactionCodeService endowmentTransactionCodeService)
          Sets the endowmentTransactionCodeService.
 void setKemidService(KEMIDService kemidService)
          Sets the kemidService.
 
Methods inherited from class org.kuali.kfs.module.endow.document.service.impl.EndowmentTransactionDocumentServiceImpl
getBusinessObjectService, getSecurity, getSecurityForHoldingHistoryValueAdjustment, matchChartBetweenKEMIDAndETranCode, matchChartBetweenSecurityAndETranCode, setBusinessObjectService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.kfs.module.endow.document.service.EndowmentTransactionDocumentService
getSecurity, getSecurityForHoldingHistoryValueAdjustment, matchChartBetweenKEMIDAndETranCode, matchChartBetweenSecurityAndETranCode
 

Constructor Detail

EndowmentTransactionLinesDocumentServiceImpl

public EndowmentTransactionLinesDocumentServiceImpl()
Method Detail

getCorpusIndicatorValueforAnEndowmentTransactionLine

public boolean getCorpusIndicatorValueforAnEndowmentTransactionLine(String kemid,
                                                                    String etranCode,
                                                                    String ipIndicator)
Description copied from interface: EndowmentTransactionLinesDocumentService
Get the value of CorpusIndicator

Specified by:
getCorpusIndicatorValueforAnEndowmentTransactionLine in interface EndowmentTransactionLinesDocumentService
Returns:
the value of CorpusIndicator -- true or false
See Also:
Get the value of CorpusIndicator based on the following rule: If the KEMID is a true endowment (the END_KEMID_T: TYP_CD has an END_TYP_T: PRIN_RESTR_CD where the END_TYP_RESTR_CD_T: PERM is equal to Yes,) AND if the ETRAN code record has the END_ETRAN_CD_T: CORPUS_IND set to Yes, then transaction lines where the END_TRAN_LN_T: TRAN_IP_IND_CD is equal to P will affect the corpus value for the KEMID. Upon adding the transaction line, the END_TRAN_LN_T: CORPUS_IND for the transaction line will be set to Yes.

canKEMIDHaveAPrincipalActivity

public boolean canKEMIDHaveAPrincipalActivity(String kemid,
                                              String ipIndicator)
Description copied from interface: EndowmentTransactionLinesDocumentService
Check if a KEMID can have a principal activity

Specified by:
canKEMIDHaveAPrincipalActivity in interface EndowmentTransactionLinesDocumentService
Returns:
true or false
See Also:
IF the END _TRAN_LN_T: TRAN_IP_IND_CD for the transaction line is equal to P, then the KEMID must have a type code (END_KEMID_T: TYP_CD) that does not have the END_TYPE_T: TYP_PRIN_RESTR_CD equal to NA which implies that the KEMID cannot have any activity in Principal. This would guarantee that the KEMID has an active general ledger account with the Income/Principal indicator equal to "P".

getKemidService

public KEMIDService getKemidService()
Gets the kemidService.

Overrides:
getKemidService in class EndowmentTransactionDocumentServiceImpl
Returns:
kemidService

setKemidService

public void setKemidService(KEMIDService kemidService)
Sets the kemidService.

Overrides:
setKemidService in class EndowmentTransactionDocumentServiceImpl
Parameters:
kemidService -

getEndowmentTransactionCodeService

public EndowmentTransactionCodeService getEndowmentTransactionCodeService()
Gets the endowmentTransactionCodeService.

Overrides:
getEndowmentTransactionCodeService in class EndowmentTransactionDocumentServiceImpl
Returns:
endowmentTransactionCodeService

setEndowmentTransactionCodeService

public void setEndowmentTransactionCodeService(EndowmentTransactionCodeService endowmentTransactionCodeService)
Sets the endowmentTransactionCodeService.

Overrides:
setEndowmentTransactionCodeService in class EndowmentTransactionDocumentServiceImpl
Parameters:
endowmentTransactionCodeService -


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