|
||||||||||
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.IncomeDistributionForPooledFundServiceImpl
@Transactional public class IncomeDistributionForPooledFundServiceImpl
Field Summary | |
---|---|
protected org.kuali.rice.kns.service.BusinessObjectService |
businessObjectService
|
protected org.kuali.rice.kns.service.DocumentService |
documentService
|
protected HoldingTaxLotService |
holdingTaxLotService
|
protected IncomeDistributionForPooledFundDao |
incomeDistributionForPooledFundDao
|
protected ReportWriterService |
incomeDistributionForPooledFundExceptionReportWriterService
|
protected ReportWriterService |
incomeDistributionForPooledFundTotalReportWriterService
|
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 PooledFundValueService |
pooledFundValueService
|
Constructor Summary | |
---|---|
IncomeDistributionForPooledFundServiceImpl()
|
Method Summary | ||
---|---|---|
protected void |
addSecurityDetailToECI(CashIncreaseDocument cashIncreaseDocument,
String typeCode,
String securityId,
String registrationCode)
Adds security to ECI |
|
protected void |
addSecurityDetailToECT(CashTransferDocument cashTransferDocument,
String securityId,
String registrationCode)
Adds security to ECT |
|
protected void |
addTransactionLinesToECI(CashIncreaseDocument cashIncreaseDocument,
List<CashTransferDocument> cashTransferDocumentList,
List<HoldingTaxLot> holdingTaxLotList,
Date effectiveDate)
Adds transaction lines and create ECT if necessary |
|
protected void |
addTransactionLinesToECT(List<CashTransferDocument> cashTransferDocumentList,
CashTransferDocument cashTransferDocument,
HoldingTaxLot holdingTaxLot,
List<KemidPayoutInstruction> kemidPayoutInstructionList,
org.kuali.rice.kns.util.KualiDecimal toalTransactionAmount)
Adds transaction lines to ECT |
|
protected boolean |
createECI(String securityId,
Date effectiveDate,
String registrationCode,
List<HoldingTaxLot> holdingTaxLotList)
Creates an ECI per security id and registration code |
|
protected CashTransferDocument |
createECT(HoldingTaxLot holdingTaxLot,
org.kuali.rice.kns.util.KualiDecimal transactionAmount,
List<CashTransferDocument> cashTransferDocumentList,
List<KemidPayoutInstruction> kemidPayoutInstructionList)
Creates ECT |
|
boolean |
createIncomeDistributionForPooledFund()
This batch creates pooled fund distribution transactions |
|
protected org.kuali.rice.kns.util.KualiDecimal |
getTransactionAmount(List<HoldingTaxLot> holdingTaxLotList,
Date effectiveDate)
Calculates the total of holding units * distribution amount |
|
protected void |
groupHoldingTaxLot(List<HoldingTaxLot> holdingTaxLotList,
Map<String,Map<String,List<HoldingTaxLot>>> kemidMap)
Groups holdingTaxLotList by kemid and incomePrincipalIndicator where the value of holding units > 0 |
|
protected
|
initializeCashDocument(String documentType,
int counter)
Initialize a cash document. |
|
protected void |
initializeReports(String documentType)
Initialize reports |
|
boolean |
isNoRoute(String paramNoRouteInd)
checks no route indicator |
|
protected void |
prepareTotalReport(org.kuali.rice.kns.util.KualiDecimal transactionAmount,
org.kuali.rice.kns.util.KualiDecimal units)
Adds income and units |
|
protected
|
resetExceptionlReport(C cashDocument)
Resets the exception report |
|
protected
|
resetTotalReport(C cashDocument)
Resets the total report |
|
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. |
|
protected void |
setDocumentTypeForReport(String documentType)
Set the document type to reports |
|
void |
setHoldingTaxLotService(HoldingTaxLotService holdingTaxLotService)
Sets the holdingTaxLotService attribute value. |
|
void |
setIncomeDistributionForPooledFundDao(IncomeDistributionForPooledFundDao incomeDistributionForPooledFundDao)
Sets the incomeDistributionForPooledFundDao attribute value. |
|
void |
setIncomeDistributionForPooledFundExceptionReportWriterService(ReportWriterService incomeDistributionForPooledFundExceptionReportWriterService)
Sets the incomeDistributionForPooledFundExceptionReportWriterService attribute value. |
|
void |
setIncomeDistributionForPooledFundTotalReportWriterService(ReportWriterService incomeDistributionForPooledFundTotalReportWriterService)
Sets the incomeDistributionForPooledFundTotalReportWriterService 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 |
setPooledFundValueService(PooledFundValueService pooledFundValueService)
Sets the pooledFundValueService attribute value. |
|
protected
|
submitCashDocument(T cashDocument,
String documentType,
String noRouteInd)
Submits Cash document |
|
protected boolean |
validateECI(CashIncreaseDocument cashIncreaseDocument)
validates the ECI business rules |
|
protected boolean |
validateECT(CashTransferDocument cashTransferDocument)
validates the ECT business rules |
|
protected
|
validateTransactionLine(C cashDocument,
T endowmentTransactionLine,
String trnsactionPropertyName)
Validates Cash Transaction line |
|
protected void |
writeExceptionReport(String kemid,
org.kuali.rice.kns.util.KualiDecimal transactionAmount,
org.kuali.rice.kns.util.KualiDecimal units)
Write exception errors |
|
protected
|
writeSubmitError(T cashDocument,
String documentType)
Write errors that occur during the submission |
|
protected void |
writeValidationErrorReason()
Writes the validation errors |
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 HoldingTaxLotService holdingTaxLotService
protected PooledFundValueService pooledFundValueService
protected IncomeDistributionForPooledFundDao incomeDistributionForPooledFundDao
protected ReportWriterService incomeDistributionForPooledFundExceptionReportWriterService
protected ReportWriterService incomeDistributionForPooledFundTotalReportWriterService
Constructor Detail |
---|
public IncomeDistributionForPooledFundServiceImpl()
Method Detail |
---|
public boolean createIncomeDistributionForPooledFund()
createIncomeDistributionForPooledFund
in interface IncomeDistributionForPooledFundService
IncomeDistributionForPooledFundService.createIncomeDistributionForPooledFund()
protected boolean createECI(String securityId, Date effectiveDate, String registrationCode, List<HoldingTaxLot> holdingTaxLotList)
securityId
- registrationCode
- holdingTaxLotList
- protected void addTransactionLinesToECI(CashIncreaseDocument cashIncreaseDocument, List<CashTransferDocument> cashTransferDocumentList, List<HoldingTaxLot> holdingTaxLotList, Date effectiveDate)
cashIncreaseDocument
- cashTransferDocumentList
- holdingTaxLotList
- protected CashTransferDocument createECT(HoldingTaxLot holdingTaxLot, org.kuali.rice.kns.util.KualiDecimal transactionAmount, List<CashTransferDocument> cashTransferDocumentList, List<KemidPayoutInstruction> kemidPayoutInstructionList)
holdingTaxLot
- transactionAmount
- cashTransferDocumentList
- protected void addTransactionLinesToECT(List<CashTransferDocument> cashTransferDocumentList, CashTransferDocument cashTransferDocument, HoldingTaxLot holdingTaxLot, List<KemidPayoutInstruction> kemidPayoutInstructionList, org.kuali.rice.kns.util.KualiDecimal toalTransactionAmount)
cashTransferDocumentList
- cashTransferDocument
- holdingTaxLot
- kemidPayoutInstructionList
- toalTransactionAmount
- protected org.kuali.rice.kns.util.KualiDecimal getTransactionAmount(List<HoldingTaxLot> holdingTaxLotList, Date effectiveDate)
holdingTaxLotList
-
protected void addSecurityDetailToECI(CashIncreaseDocument cashIncreaseDocument, String typeCode, String securityId, String registrationCode)
cashIncreaseDocument
- typeCode
- securityId
- registrationCode
- protected void addSecurityDetailToECT(CashTransferDocument cashTransferDocument, String securityId, String registrationCode)
cashTransferDocument
- typeCode
- securityId
- registrationCode
- protected <C extends EndowmentSecurityDetailsDocumentBase> C initializeCashDocument(String documentType, int counter)
C
- documentType
- counter
-
protected <T extends EndowmentSecurityDetailsDocumentBase> void submitCashDocument(T cashDocument, String documentType, String noRouteInd)
T
- cashDocument
- protected void groupHoldingTaxLot(List<HoldingTaxLot> holdingTaxLotList, Map<String,Map<String,List<HoldingTaxLot>>> kemidMap)
holdingTaxLotList
- kemidMap
- 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 validateECT(CashTransferDocument cashTransferDocument)
cashTransferDocument
-
public boolean isNoRoute(String paramNoRouteInd)
protected <C extends EndowmentSecurityDetailsDocumentBase> void resetTotalReport(C cashDocument)
C
- cashDocument
- protected void prepareTotalReport(org.kuali.rice.kns.util.KualiDecimal transactionAmount, org.kuali.rice.kns.util.KualiDecimal units)
transactionAmount
- units
- protected <C extends EndowmentSecurityDetailsDocumentBase> void resetExceptionlReport(C cashDocument)
C
- cashDocument
- protected void writeExceptionReport(String kemid, org.kuali.rice.kns.util.KualiDecimal transactionAmount, org.kuali.rice.kns.util.KualiDecimal units)
kemid
- transactionAmount
- units
- protected void initializeReports(String documentType)
documentType
- securityId
- protected void setDocumentTypeForReport(String documentType)
documentType
- protected void writeValidationErrorReason()
protected <T extends EndowmentSecurityDetailsDocumentBase> void writeSubmitError(T cashDocument, String documentType)
T
- cashDocument
- documentType
- public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
documentService
- The documentService to set.public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The parameterService to set.public void setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService kualiRuleService)
kualiRuleService
- The kualiRuleService to set.public void setKemService(KEMService kemService)
kemService
- The kemService to set.public void setHoldingTaxLotService(HoldingTaxLotService holdingTaxLotService)
holdingTaxLotService
- The holdingTaxLotService to set.public void setPooledFundValueService(PooledFundValueService pooledFundValueService)
pooledFundValueService
- The pooledFundValueService to set.public void setIncomeDistributionForPooledFundDao(IncomeDistributionForPooledFundDao incomeDistributionForPooledFundDao)
incomeDistributionForPooledFundDao
- The incomeDistributionForPooledFundDao to set.public void setIncomeDistributionForPooledFundExceptionReportWriterService(ReportWriterService incomeDistributionForPooledFundExceptionReportWriterService)
incomeDistributionForPooledFundExceptionReportWriterService
- The
incomeDistributionForPooledFundExceptionReportWriterService to set.public void setIncomeDistributionForPooledFundTotalReportWriterService(ReportWriterService incomeDistributionForPooledFundTotalReportWriterService)
incomeDistributionForPooledFundTotalReportWriterService
- The incomeDistributionForPooledFundTotalReportWriterService to
set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |