|
||||||||||
| 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.CreateGainLossDistributionTransactionsServiceImpl
@Transactional public class CreateGainLossDistributionTransactionsServiceImpl
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
LOG
|
| Constructor Summary | |
|---|---|
CreateGainLossDistributionTransactionsServiceImpl()
Constructs a CreateGainLossDistributionTransactionsServiceImpl.java. |
|
| Method Summary | |
|---|---|
protected void |
addSecurityDetails(HoldingAdjustmentDocument holdingAdjustmentDocument,
String securityId,
String registrationCode)
Creates and add a source security details to the holding adjustment document. |
protected boolean |
addTransactionLine(boolean isShortTerm,
HoldingAdjustmentDocument holdingAdjustmentDocument,
HoldingTaxLot holdingTaxLot,
PooledFundValue pooledFundValue)
Creates and adds a transaction line to the holding adjustment document. |
protected EndowmentTransactionLine |
createEndowmentTransactionLine(boolean isLoss,
boolean isShortTerm,
HoldingAdjustmentDocument holdingAdjustmentDocument,
HoldingTaxLot holdingTaxLot,
PooledFundValue pooledFundValue)
creates a transaction line and setups the data based on isLoss if isLoss = true then creates source line else creates target line. |
protected HoldingAdjustmentDocument |
generateHoldingAdjustmentDocument(boolean isShortTerm,
String securityId)
Generates a HoldingAdjustmentDocument. |
ReportWriterService |
getGainLossDistributionExceptionReportWriterService()
Gets the gainLossDistributionExceptionReportWriterService. |
ReportWriterService |
getGainLossDistributionTotalsReportWriterService()
Gets the gainLossDistributionTotalsReportWriterService. |
protected String |
getHoldingAdjustmentDocumentTypeName()
Gets the HoldingAdjustmentDocument type. |
protected Map<String,List<HoldingTaxLot>> |
groupTaxLotsByRegistrationCode(List<HoldingTaxLot> holdingTaxLots)
Groups tax lots by registration code. |
protected void |
initializeReportLines(String theDocumentId,
String theSecurityId)
Initializes the distributionTotalReportLine and exceptionReportLine for further use. |
boolean |
processGainLossDistribution()
Creates Gains and Losses Distribution. |
protected boolean |
processGainLossDistribution(boolean isShortTerm)
Processes Short/Long Term Gains and Losses. |
protected boolean |
processLongTermGainLossDistribution()
Processes Long Term Gains and Losses. |
protected boolean |
processShortTermGainLossDistribution()
Processes Short Term Gains and Losses. |
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 documentService. |
void |
setGainLossDistributionExceptionReportWriterService(ReportWriterService gainLossDistributionExceptionReportWriterService)
Sets the gainLossDistributionExceptionReportWriterService. |
void |
setGainLossDistributionTotalsReportWriterService(ReportWriterService gainLossDistributionTotalsReportWriterService)
Sets the gainLossDistributionTotalsReportWriterService. |
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 |
setPooledFundValueService(PooledFundValueService pooledFundValueService)
Sets the pooledFundValueService. |
void |
setUpdateHoldingAdjustmentDocumentTaxLotsService(UpdateHoldingAdjustmentDocumentTaxLotsService updateHoldingAdjustmentDocumentTaxLotsService)
Sets the updateHoldingAdjustmentDocumentTaxLotsService. |
protected void |
validateAndRouteHoldingAdjustmentDocument(HoldingAdjustmentDocument holdingAdjustmentDocument,
PooledFundValue pooledFundValue,
boolean isShortTerm)
Validates and Routes the HoldingAdjustmentDocument. |
| 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
| Constructor Detail |
|---|
public CreateGainLossDistributionTransactionsServiceImpl()
| Method Detail |
|---|
public boolean processGainLossDistribution()
CreateGainLossDistributionTransactionsService
processGainLossDistribution in interface CreateGainLossDistributionTransactionsServiceCreateGainLossDistributionTransactionsService.processGainLossDistribution()protected boolean processShortTermGainLossDistribution()
protected boolean processLongTermGainLossDistribution()
protected boolean processGainLossDistribution(boolean isShortTerm)
protected Map<String,List<HoldingTaxLot>> groupTaxLotsByRegistrationCode(List<HoldingTaxLot> holdingTaxLots)
holdingTaxLots -
protected HoldingAdjustmentDocument generateHoldingAdjustmentDocument(boolean isShortTerm,
String securityId)
protected void addSecurityDetails(HoldingAdjustmentDocument holdingAdjustmentDocument,
String securityId,
String registrationCode)
holdingAdjustmentDocument - securityId - registrationCode -
protected EndowmentTransactionLine createEndowmentTransactionLine(boolean isLoss,
boolean isShortTerm,
HoldingAdjustmentDocument holdingAdjustmentDocument,
HoldingTaxLot holdingTaxLot,
PooledFundValue pooledFundValue)
protected boolean addTransactionLine(boolean isShortTerm,
HoldingAdjustmentDocument holdingAdjustmentDocument,
HoldingTaxLot holdingTaxLot,
PooledFundValue pooledFundValue)
isShortTerm - holdingAdjustmentDocument - holdingTaxLot - gainloss -
protected void validateAndRouteHoldingAdjustmentDocument(HoldingAdjustmentDocument holdingAdjustmentDocument,
PooledFundValue pooledFundValue,
boolean isShortTerm)
holdingAdjustmentDocument - pooledFundValue - protected String getHoldingAdjustmentDocumentTypeName()
public void setPooledFundValueService(PooledFundValueService pooledFundValueService)
pooledFundValueService - public void setHoldingTaxLotService(HoldingTaxLotService holdingTaxLotService)
holdingTaxLotService - public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService - public void setConfigService(org.kuali.rice.kns.service.KualiConfigurationService configService)
configService - public void setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService kualiRuleService)
kualiRuleService - public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService - public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
documentService - public void setGainLossDistributionExceptionReportWriterService(ReportWriterService gainLossDistributionExceptionReportWriterService)
gainLossDistributionExceptionReportWriterService - public ReportWriterService getGainLossDistributionExceptionReportWriterService()
public void setUpdateHoldingAdjustmentDocumentTaxLotsService(UpdateHoldingAdjustmentDocumentTaxLotsService updateHoldingAdjustmentDocumentTaxLotsService)
updateHoldingAdjustmentDocumentTaxLotsService - public void setKemService(KEMService kemService)
kemService -
protected void initializeReportLines(String theDocumentId,
String theSecurityId)
theDocumentId - theSecurityId - public ReportWriterService getGainLossDistributionTotalsReportWriterService()
public void setGainLossDistributionTotalsReportWriterService(ReportWriterService gainLossDistributionTotalsReportWriterService)
gainLossDistributionTotalsReportWriterService -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||