|
||||||||||
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.CreateAccrualTransactionsServiceImpl
@Transactional public class CreateAccrualTransactionsServiceImpl
This class...
Field Summary | |
---|---|
protected ReportWriterService |
accrualTransactionsExceptionReportWriterService
|
protected ReportWriterService |
accrualTransactionsTotalReportWriterService
|
protected TransactionDocumentExceptionReportLine |
exceptionReportLine
|
protected boolean |
isFistTimeForWritingExceptionReport
|
protected boolean |
isFistTimeForWritingTotalReport
|
protected static org.apache.log4j.Logger |
LOG
|
protected org.kuali.rice.kns.service.ParameterService |
parameterService
|
protected TransactionDocumentTotalReportLine |
totalReportLine
|
Constructor Summary | |
---|---|
CreateAccrualTransactionsServiceImpl()
Constructs a CreateAccrualTransactionsServiceImpl.java. |
Method Summary | |
---|---|
protected boolean |
addTransactionLine(CashIncreaseDocument cashIncreaseDocument,
Security security,
String kemid,
org.kuali.rice.kns.util.KualiDecimal totalAmount)
Creates and adds a new transaction line to the cash increase document. |
boolean |
createAccrualTransactions()
Locates all active securities that have been accruing income and are scheduled to distribute income on the processing date and generate a transactional document that will credit the accrued income to the KEMID spendable income. |
protected CashIncreaseDocument |
createNewCashIncreaseDocument(String securityId,
String registrationCode)
Creates a new CashIncreaseDocument with source type Automated, transaction sub-type Cash, target security id set to the input security id. |
ReportWriterService |
getAccrualTransactionsExceptionReportWriterService()
Gets the accrualTransactionsExceptionReportWriterService. |
ReportWriterService |
getAccrualTransactionsTotalReportWriterService()
Gets the accrualTransactionsTotalReportWriterService. |
protected List<Security> |
getAllSecuritiesWithNextPayDateEqualCurrentDate()
Locates all Security records for which the next income pay date is equal to the current date. |
protected Map<String,List<HoldingTaxLot>> |
groupTaxLotsBasedOnKemidAndIPIndicator(List<HoldingTaxLot> taxLots)
Builds a map that groups tax lots based on kemid and income principal indicator ( a map from kemid and IP to taxlots). |
protected Map<String,List<HoldingTaxLot>> |
groupTaxLotsBasedOnRegistrationCode(List<HoldingTaxLot> taxLots)
Builds a map that groups tax lots based on registration code ( a map from registration code to taxlots) |
protected void |
initializeTotalAndExceptionReportLines(String theDocumentId,
String theSecurityId)
Initializes the total report line and the exception report line. |
void |
setAccrualTransactionsExceptionReportWriterService(ReportWriterService accrualTransactionsExceptionReportWriterService)
Sets the accrualTransactionsExceptionReportWriterService. |
void |
setAccrualTransactionsTotalReportWriterService(ReportWriterService accrualTransactionsTotalReportWriterService)
Sets the accrualTransactionsTotalReportWriterService. |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService. |
void |
setConfigService(org.kuali.rice.kns.service.KualiConfigurationService configService)
Sets the configService. |
void |
setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documenyService. |
void |
setHoldingTaxLotService(HoldingTaxLotService holdingTaxLotService)
Sets the holdingTaxLotService. |
void |
setKemService(KEMService kemService)
Sets the kemService. |
void |
setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService kualiRuleService)
Sets the kualiRuleService. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService. |
void |
setSecurityDao(SecurityDao securityDao)
Sets the securityDao. |
protected void |
submitCashIncreaseDocumentAndUpdateTaxLots(CashIncreaseDocument cashIncreaseDocument,
List<HoldingTaxLot> taxLotsForUpdate)
Submits the ECI doc and updates the values in the tax lots list. |
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.ParameterService parameterService
protected ReportWriterService accrualTransactionsExceptionReportWriterService
protected ReportWriterService accrualTransactionsTotalReportWriterService
protected TransactionDocumentExceptionReportLine exceptionReportLine
protected TransactionDocumentTotalReportLine totalReportLine
protected boolean isFistTimeForWritingTotalReport
protected boolean isFistTimeForWritingExceptionReport
Constructor Detail |
---|
public CreateAccrualTransactionsServiceImpl()
Method Detail |
---|
public boolean createAccrualTransactions()
CreateAccrualTransactionsService
createAccrualTransactions
in interface CreateAccrualTransactionsService
CreateAccrualTransactionsService.createAccrualTransactions()
protected Map<String,List<HoldingTaxLot>> groupTaxLotsBasedOnRegistrationCode(List<HoldingTaxLot> taxLots)
taxLots
-
protected Map<String,List<HoldingTaxLot>> groupTaxLotsBasedOnKemidAndIPIndicator(List<HoldingTaxLot> taxLots)
taxLots
-
protected boolean addTransactionLine(CashIncreaseDocument cashIncreaseDocument, Security security, String kemid, org.kuali.rice.kns.util.KualiDecimal totalAmount)
cashIncreaseDocument
- security
- kemid
- totalAmount
-
protected CashIncreaseDocument createNewCashIncreaseDocument(String securityId, String registrationCode)
securityId
-
protected void submitCashIncreaseDocumentAndUpdateTaxLots(CashIncreaseDocument cashIncreaseDocument, List<HoldingTaxLot> taxLotsForUpdate)
cashIncreaseDocument
- taxLotsForUpdate
- protected List<Security> getAllSecuritiesWithNextPayDateEqualCurrentDate()
protected void initializeTotalAndExceptionReportLines(String theDocumentId, String theSecurityId)
theDocumentId
- theSecurityId
- public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- public void setKemService(KEMService kemService)
kemService
- public void setHoldingTaxLotService(HoldingTaxLotService holdingTaxLotService)
holdingTaxLotService
- public void setSecurityDao(SecurityDao securityDao)
securityDao
- public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
documentService
- public void setConfigService(org.kuali.rice.kns.service.KualiConfigurationService configService)
configService
- public void setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService kualiRuleService)
kualiRuleService
- public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- public ReportWriterService getAccrualTransactionsExceptionReportWriterService()
public void setAccrualTransactionsExceptionReportWriterService(ReportWriterService accrualTransactionsExceptionReportWriterService)
accrualTransactionsExceptionReportWriterService
- public ReportWriterService getAccrualTransactionsTotalReportWriterService()
public void setAccrualTransactionsTotalReportWriterService(ReportWriterService accrualTransactionsTotalReportWriterService)
accrualTransactionsTotalReportWriterService
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |