|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.endow.batch.service.impl.PooledFundControlTransactionsServiceImpl
@Transactional public class PooledFundControlTransactionsServiceImpl
Field Summary | |
---|---|
protected org.kuali.rice.kns.service.BusinessObjectService |
businessObjectService
|
protected org.kuali.rice.kns.service.DocumentService |
documentService
|
protected KEMService |
kemService
|
protected org.kuali.rice.kns.service.KualiRuleService |
kualiRuleService
|
protected static org.apache.log4j.Logger |
LOG
|
protected org.kuali.rice.kns.service.ParameterService |
parameterService
|
protected PooledFundControlTransactionsDao |
pooledFundControlTransactionsDao
|
protected ReportWriterService |
pooledFundControlTransactionsExceptionReportWriterService
|
protected ReportWriterService |
pooledFundControlTransactionsTotalReportWriterService
|
Constructor Summary | |
---|---|
PooledFundControlTransactionsServiceImpl()
|
Method Summary | ||
---|---|---|
protected boolean |
createCashDocumentBasedOnHoldingCost(String documentName,
String DocDescription,
String securityLineType,
String noRouteInd,
String ipInd)
Creates an ECI or an ECDD eDoc according to the total amount of holding cost |
|
protected boolean |
createCashDocumentForIncomeDistribution()
Creates an ECI or an ECDD eDoc according to the total amount of income/principle cash for transaction type ECI and ECDD |
|
protected boolean |
createCashDocumentForPurchase()
Creates an ECI or an ECDD eDoc according to the total amount of holding cost for EAI |
|
protected boolean |
createCashDocumentForSale()
Creates an ECI or an ECDD eDoc according to the total amount of holding cost for EAD |
|
protected boolean |
createCashDocumentForSaleGainLoss()
Creates an ECI or an ECDD eDoc according to the total amount of gain/loss for transaction type EAD |
|
protected boolean |
createECDD(PooledFundControl pooledFundControl,
org.kuali.rice.kns.util.KualiDecimal totalAmount,
String paramDescriptionName,
String securityLineType,
String paramNoRouteInd,
String incomePrincipalIndicator)
Creates ECDD |
|
protected boolean |
createECI(PooledFundControl pooledFundControl,
org.kuali.rice.kns.util.KualiDecimal totalAmount,
String paramDescriptionName,
String securityLineTypeCode,
String paramNoRouteInd,
String incomePrincipalIndicator)
Creates ECI |
|
boolean |
generatePooledFundControlTransactions()
|
|
org.kuali.rice.kns.service.DocumentService |
getDocumentService()
Gets the documentService attribute. |
|
protected String |
getEtranTypeCode(PooledFundControl pooledFundControl,
String docComponentType)
Gets the transaction type code based on the document component type |
|
protected
|
initializeCashDocument(String documentType,
int counter)
Initialize a cash document. |
|
protected void |
initializeReports()
Initializes reports |
|
boolean |
isNoRoute(String paramNoRouteInd)
check if it is no route |
|
protected void |
populateECDD(CashDecreaseDocument cashDecreaseDocument,
PooledFundControl pooledFundControl,
org.kuali.rice.kns.util.KualiDecimal totalAmount,
String securityLineTypeCode,
String transactionIPIndicatorCode,
String etranTypeCode)
Populates security and transaction lines |
|
protected void |
populateECI(CashIncreaseDocument cashIncreaseDocument,
PooledFundControl pooledFundControl,
org.kuali.rice.kns.util.KualiDecimal totalAmount,
String securityLineTypeCode,
String transactionIPIndicatorCode,
String etranTypeCode)
Populates security and transaction lines |
|
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value. |
|
void |
setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documentService attribute value. |
|
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 |
setPooledFundControlTransactionsDao(PooledFundControlTransactionsDao pooledFundControlTransactionsDao)
Sets the pooledFundControlTransactionsDaoOjb attribute value. |
|
void |
setPooledFundControlTransactionsExceptionReportWriterService(ReportWriterService pooledFundControlTransactionsExceptionReportWriterService)
Sets the pooledFundControlTransactionsExceptionReportWriterService attribute value. |
|
void |
setPooledFundControlTransactionsTotalReportWriterService(ReportWriterService pooledFundControlTransactionsTotalReportWriterService)
Sets the pooledFundControlTransactionsTotalReportWriterService attribute value. |
|
protected
|
submitCashDocument(T cashDocument,
String documentType,
String paramNoRouteInd)
Submits the document |
|
protected boolean |
validateECDD(CashDecreaseDocument cashDecreaseDocument)
validate the ECDD business rules |
|
protected boolean |
validateECI(CashIncreaseDocument cashIncreaseDocument)
validate the ECI business rules |
|
protected
|
validateTransactionLine(C cashDocument,
T endowmentTransactionLine,
String trnsactionPropertyName)
Validate Cash Transaction line |
|
protected
|
writeDocumentValdiationErrorReport(T cashDocument,
String documentType)
Writes document validation errors |
|
protected
|
writeSubmissionErrorReport(T cashDocument,
String documentType,
String errorMessage)
Writes the submission errors |
|
protected
|
writeTotalReport(C cashDocument,
String documentType,
String incomePrincipalIndicator)
Writes the total report |
|
protected void |
writeTransactionLineValidationErrorReport(String documentType,
String documentId,
String securityId,
String kemid,
org.kuali.rice.kns.util.KualiDecimal transactionAmount)
Writes transaction line validation errors per each |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger LOG
protected org.kuali.rice.kns.service.BusinessObjectService businessObjectService
protected org.kuali.rice.kns.service.DocumentService documentService
protected org.kuali.rice.kns.service.ParameterService parameterService
protected org.kuali.rice.kns.service.KualiRuleService kualiRuleService
protected KEMService kemService
protected PooledFundControlTransactionsDao pooledFundControlTransactionsDao
protected ReportWriterService pooledFundControlTransactionsExceptionReportWriterService
protected ReportWriterService pooledFundControlTransactionsTotalReportWriterService
Constructor Detail |
---|
public PooledFundControlTransactionsServiceImpl()
Method Detail |
---|
public boolean generatePooledFundControlTransactions()
generatePooledFundControlTransactions
in interface PooledFundControlTransactionsService
protected boolean createCashDocumentForPurchase()
protected boolean createCashDocumentForSale()
protected boolean createCashDocumentBasedOnHoldingCost(String documentName, String DocDescription, String securityLineType, String noRouteInd, String ipInd)
documentName
- DocDescription
- noRouteInd
- ipInd
- protected boolean createCashDocumentForSaleGainLoss()
protected boolean createCashDocumentForIncomeDistribution()
protected boolean createECI(PooledFundControl pooledFundControl, org.kuali.rice.kns.util.KualiDecimal totalAmount, String paramDescriptionName, String securityLineTypeCode, String paramNoRouteInd, String incomePrincipalIndicator)
pooledFundControl
- totalAmount
- paramDescriptionName
- securityLineType
- paramNoRouteInd
- incomePrincipalIndicator
-
protected boolean createECDD(PooledFundControl pooledFundControl, org.kuali.rice.kns.util.KualiDecimal totalAmount, String paramDescriptionName, String securityLineType, String paramNoRouteInd, String incomePrincipalIndicator)
pooledFundControl
- totalAmount
- paramDescriptionName
- securityLineType
- paramNoRouteInd
- incomePrincipalIndicator
-
protected void populateECI(CashIncreaseDocument cashIncreaseDocument, PooledFundControl pooledFundControl, org.kuali.rice.kns.util.KualiDecimal totalAmount, String securityLineTypeCode, String transactionIPIndicatorCode, String etranTypeCode)
cashIncreaseDocument
- pooledFundControl
- totalAmount
- securityLineTypeCode
- transactionIPIndicatorCode
- protected void populateECDD(CashDecreaseDocument cashDecreaseDocument, PooledFundControl pooledFundControl, org.kuali.rice.kns.util.KualiDecimal totalAmount, String securityLineTypeCode, String transactionIPIndicatorCode, String etranTypeCode)
cashDecreaseDocument
- pooledFundControl
- totalAmount
- securityLineTypeCode
- transactionIPIndicatorCode
- protected <C extends EndowmentSecurityDetailsDocumentBase> C initializeCashDocument(String documentType, int counter)
C
- documentType
- counter
-
protected <T extends EndowmentSecurityDetailsDocumentBase> boolean submitCashDocument(T cashDocument, String documentType, String paramNoRouteInd)
T
- cashDocument
- documentType
- paramNoRouteInd
-
protected <C extends EndowmentSecurityDetailsDocumentBase,T extends EndowmentTransactionLineBase> boolean validateTransactionLine(C cashDocument, T endowmentTransactionLine, String trnsactionPropertyName)
C
- T
- cashDocument
- endowmentTransactionLine
- trnsactionPropertyName
-
protected boolean validateECI(CashIncreaseDocument cashIncreaseDocument)
cashIncreaseDocument
-
protected boolean validateECDD(CashDecreaseDocument cashDecreaseDocument)
cashDecreaseDocument
-
protected String getEtranTypeCode(PooledFundControl pooledFundControl, String docComponentType)
pooledFundControl
- docComponentType
-
public boolean isNoRoute(String paramNoRouteInd)
protected <C extends EndowmentSecurityDetailsDocumentBase> void writeTotalReport(C cashDocument, String documentType, String incomePrincipalIndicator)
C
- cashDocument
- documentType
- protected void writeTransactionLineValidationErrorReport(String documentType, String documentId, String securityId, String kemid, org.kuali.rice.kns.util.KualiDecimal transactionAmount)
documentType
- kemid
- transactionAmount
- protected <T extends EndowmentSecurityDetailsDocumentBase> void writeDocumentValdiationErrorReport(T cashDocument, String documentType)
T
- cashDocument
- documentType
- protected <T extends EndowmentSecurityDetailsDocumentBase> void writeSubmissionErrorReport(T cashDocument, String documentType, String errorMessage)
T
- cashDocument
- documentType
- protected void initializeReports()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public void setPooledFundControlTransactionsDao(PooledFundControlTransactionsDao pooledFundControlTransactionsDao)
pooledFundControlTransactionsDaoOjb
- The pooledFundControlTransactionsDaoOjb to set.public org.kuali.rice.kns.service.DocumentService getDocumentService()
public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
documentService
- The documentService to set.public void setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService kualiRuleService)
kualiRuleService
- The kualiRuleService to set.public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The parameterService to set.public void setPooledFundControlTransactionsExceptionReportWriterService(ReportWriterService pooledFundControlTransactionsExceptionReportWriterService)
pooledFundControlTransactionsExceptionReportWriterService
- The pooledFundControlTransactionsExceptionReportWriterService to set.public void setPooledFundControlTransactionsTotalReportWriterService(ReportWriterService pooledFundControlTransactionsTotalReportWriterService)
pooledFundControlTransactionsTotalReportWriterService
- The pooledFundControlTransactionsTotalReportWriterService to set.public void setKemService(KEMService kemService)
kemService
- The kemService to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |