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

java.lang.Object
  extended by org.kuali.kfs.module.endow.document.service.impl.UpdateHoldingAdjustmentDocumentTaxLotsServiceImpl
All Implemented Interfaces:
UpdateHoldingAdjustmentDocumentTaxLotsService

public class UpdateHoldingAdjustmentDocumentTaxLotsServiceImpl
extends Object
implements UpdateHoldingAdjustmentDocumentTaxLotsService


Constructor Summary
UpdateHoldingAdjustmentDocumentTaxLotsServiceImpl()
           
 
Method Summary
protected  void calculateLotHoldingCostForTransactionAmount(EndowmentTransactionLine transLine, boolean isSource, BigDecimal taxLotsTotalUnits)
          Helper method to calculate lot holding cost when transaction amount given
protected  void calculateLotHoldingCostForUnitAdjustmentAmount(EndowmentTransactionLine transLine, boolean isSource)
          Helper method to calculate lot holding cost when unit adjustment amount given
protected  BigDecimal calculateTotalLotsTotalUnits(List<HoldingTaxLot> holdingTaxLots)
          Helper method to calculate the TotalLots total units
protected  void createEndowmentHoldingLotRecord(HoldingAdjustmentDocument holdingAdjustmentDocument, EndowmentTransactionLine transLine, List<HoldingTaxLot> holdingTaxLots)
          This method...
 SecurityService getSecurityService()
          Gets the securityService.
 HoldingTaxLotService getTaxLotService()
          Gets the taxLotService.
protected  List<HoldingTaxLot> retrieveAllTaxLotsWithPositiveCost(EndowmentTransactionLine transLine, EndowmentTransactionSecurity endowmentTransactionSecurity)
          Helper method to retrieve all tax lots with positive cost holding tax lot lines
protected  List<HoldingTaxLot> retrieveTaxLotLineForUpdate(EndowmentTransactionLine transLine, EndowmentTransactionSecurity endowmentTransactionSecurity)
          Helper method to retrieve all the tax lot records with units greater than zero from endowment holding tax lot table for a specific lot number
 void setSecurityService(SecurityService securityService)
          Sets the securityService.
 void setTaxLotService(HoldingTaxLotService taxLotService)
          Sets the taxLotService.
protected  void updateTransactionAmountWithLotHoldingCost(boolean isSource, EndowmentTransactionLine transLine)
          Helper method to update the transaction amount with the total holding cost
 void updateTransactionLineTaxLotsByTransactionAmount(boolean isUpdate, HoldingAdjustmentDocument holdingAdjustmentDocument, EndowmentTransactionLine transLine, boolean isSource)
          Updates the tax lots related to the given transaction line in the Holding Adjustment document when Transaction Amount is entered.
 void updateTransactionLineTaxLotsByUnitAdjustmentAmount(boolean isUpdate, HoldingAdjustmentDocument holdingAdjustmentDocument, EndowmentTransactionLine transLine, boolean isSource)
          Updates the tax lots related to the given transaction line in the Holding Adjustment document when Unit Adjustment Amount is entered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateHoldingAdjustmentDocumentTaxLotsServiceImpl

public UpdateHoldingAdjustmentDocumentTaxLotsServiceImpl()
Method Detail

updateTransactionLineTaxLotsByUnitAdjustmentAmount

public void updateTransactionLineTaxLotsByUnitAdjustmentAmount(boolean isUpdate,
                                                               HoldingAdjustmentDocument holdingAdjustmentDocument,
                                                               EndowmentTransactionLine transLine,
                                                               boolean isSource)
Description copied from interface: UpdateHoldingAdjustmentDocumentTaxLotsService
Updates the tax lots related to the given transaction line in the Holding Adjustment document when Unit Adjustment Amount is entered.

Specified by:
updateTransactionLineTaxLotsByUnitAdjustmentAmount in interface UpdateHoldingAdjustmentDocumentTaxLotsService
Parameters:
isUpdate - boolean indicator if update
holdingAdjustmentDocument - the Holding Adjustment Document for which we compute the transaction line related tax lots
transLine - the transaction line for which we update the tax lots
isSource - boolean indicator if the transaction lines are source
See Also:
org.kuali.kfs.module.endow.document.service.UpdateHoldingAdjustmentDocumentTaxLotsService#updateTransactionLineTaxLotsByUnitAdjustmentAmount(boolean, org.kuali.kfs.module.endow.document.EndowmentUnitShareAdjustmentDocument, org.kuali.kfs.module.endow.businessobject.EndowmentTransactionLine, boolean)

updateTransactionLineTaxLotsByTransactionAmount

public void updateTransactionLineTaxLotsByTransactionAmount(boolean isUpdate,
                                                            HoldingAdjustmentDocument holdingAdjustmentDocument,
                                                            EndowmentTransactionLine transLine,
                                                            boolean isSource)
Description copied from interface: UpdateHoldingAdjustmentDocumentTaxLotsService
Updates the tax lots related to the given transaction line in the Holding Adjustment document when Transaction Amount is entered.

Specified by:
updateTransactionLineTaxLotsByTransactionAmount in interface UpdateHoldingAdjustmentDocumentTaxLotsService
Parameters:
isUpdate - boolean indicator if update
holdingAdjustmentDocument - the Holding Adjustment Document for which we compute the transaction line related tax lots
transLine - the transaction line for which we update the tax lots
isSource - boolean indicator if the transaction lines are source
See Also:
org.kuali.kfs.module.endow.document.service.UpdateHoldingAdjustmentDocumentTaxLotsService#updateTransactionLineTaxLotsByTransactionAmount(boolean, org.kuali.kfs.module.endow.document.EndowmentUnitShareAdjustmentDocument, org.kuali.kfs.module.endow.businessobject.EndowmentTransactionLine, boolean)

calculateTotalLotsTotalUnits

protected BigDecimal calculateTotalLotsTotalUnits(List<HoldingTaxLot> holdingTaxLots)
Helper method to calculate the TotalLots total units

Parameters:
holdingTaxLots -
Returns:
taxLotsTotalUnits

retrieveTaxLotLineForUpdate

protected List<HoldingTaxLot> retrieveTaxLotLineForUpdate(EndowmentTransactionLine transLine,
                                                          EndowmentTransactionSecurity endowmentTransactionSecurity)
Helper method to retrieve all the tax lot records with units greater than zero from endowment holding tax lot table for a specific lot number

Parameters:
transLine - The endowment transaction line
endowmentTransactionSecurity - endowment transaction security
Returns:
holdingTaxLots

retrieveAllTaxLotsWithPositiveCost

protected List<HoldingTaxLot> retrieveAllTaxLotsWithPositiveCost(EndowmentTransactionLine transLine,
                                                                 EndowmentTransactionSecurity endowmentTransactionSecurity)
Helper method to retrieve all tax lots with positive cost holding tax lot lines

Parameters:
transLine - The endowment transaction line
endowmentTransactionSecurity - endowment transaction security
Returns:
holdingTaxLots

updateTransactionAmountWithLotHoldingCost

protected void updateTransactionAmountWithLotHoldingCost(boolean isSource,
                                                         EndowmentTransactionLine transLine)
Helper method to update the transaction amount with the total holding cost

Parameters:
transLine - The endowment transaction line
isSource - whether this is source or target transaction line

calculateLotHoldingCostForUnitAdjustmentAmount

protected void calculateLotHoldingCostForUnitAdjustmentAmount(EndowmentTransactionLine transLine,
                                                              boolean isSource)
Helper method to calculate lot holding cost when unit adjustment amount given

Parameters:
transLine -
isSource -

calculateLotHoldingCostForTransactionAmount

protected void calculateLotHoldingCostForTransactionAmount(EndowmentTransactionLine transLine,
                                                           boolean isSource,
                                                           BigDecimal taxLotsTotalUnits)
Helper method to calculate lot holding cost when transaction amount given

Parameters:
transLine -
isSource -

createEndowmentHoldingLotRecord

protected void createEndowmentHoldingLotRecord(HoldingAdjustmentDocument holdingAdjustmentDocument,
                                               EndowmentTransactionLine transLine,
                                               List<HoldingTaxLot> holdingTaxLots)
This method...

Parameters:
holdingAdjustmentDocument -
transLine -
holdingTaxLots -

getTaxLotService

public HoldingTaxLotService getTaxLotService()
Gets the taxLotService.

Returns:
taxLotService

setTaxLotService

public void setTaxLotService(HoldingTaxLotService taxLotService)
Sets the taxLotService.

Parameters:
taxLotService -

getSecurityService

public SecurityService getSecurityService()
Gets the securityService.

Returns:
securityService

setSecurityService

public void setSecurityService(SecurityService securityService)
Sets the securityService.

Parameters:
securityService -


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