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

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

@Transactional
public class PooledFundValueServiceImpl
extends Object
implements PooledFundValueService


Constructor Summary
PooledFundValueServiceImpl()
           
 
Method Summary
 Date calculateValueEffectiveDate(Date valuationDate, String pooledSecurityID)
           
 String calculateValueEffectiveDateForAjax(String valuationDate, String pooledSecurityID)
          Computes the valueEffectiveDate for the AJAX call by getting the valuationDate as a String and returning the valueEffectiveDate as String
 org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
          This method gets the businessObjectService.
 PooledFundValue getByPrimaryKey(String id)
           
 Date getLatestValueEffectiveDate(String pooledSecurityID)
           
 List<PooledFundValue> getPooledFundValueWhereDistributionIncomeOnDateIsCurrentDate()
          Gets PooledFundValue entries where the distribution income on date is equal to current date.
 List<PooledFundValue> getPooledFundValueWhereLTProcessOnDateIsCurrentDate()
          Gets PooledFundValue entries where the long term process on date is equal to current date and value effective date is the most recent per security.
 List<PooledFundValue> getPooledFundValueWhereSTProcessOnDateIsCurrentDate()
          Gets PooledFundValue entries where the short term process on date is equal to current date and value effective date is the most recent per security.
 boolean isValuationDateTheLatest(String pooledSecurityID, Date theValuationDate)
           
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          This method sets the businessObjectService
 void setIncomeDistributionCompleted(List<PooledFundValue> pooledFundValueList, boolean completed)
          set PooledFundValue entries where the distribution income on date is equal to current date.
 void setPooledFundValueDao(PooledFundValueDao pooledFundValueDao)
          Sets the pooledFundValueDao.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PooledFundValueServiceImpl

public PooledFundValueServiceImpl()
Method Detail

getByPrimaryKey

public PooledFundValue getByPrimaryKey(String id)
Specified by:
getByPrimaryKey in interface PooledFundValueService
See Also:
PooledFundControlService.getByPrimaryKey(java.lang.String)

calculateValueEffectiveDateForAjax

public String calculateValueEffectiveDateForAjax(String valuationDate,
                                                 String pooledSecurityID)
Description copied from interface: PooledFundValueService
Computes the valueEffectiveDate for the AJAX call by getting the valuationDate as a String and returning the valueEffectiveDate as String

Specified by:
calculateValueEffectiveDateForAjax in interface PooledFundValueService
Returns:
the valueEffectiveDate as String
See Also:
PooledFundValueService.calculateValueEffectiveDateForAjax(java.lang.String, java.lang.String)

calculateValueEffectiveDate

public Date calculateValueEffectiveDate(Date valuationDate,
                                        String pooledSecurityID)
Specified by:
calculateValueEffectiveDate in interface PooledFundValueService

setIncomeDistributionCompleted

public void setIncomeDistributionCompleted(List<PooledFundValue> pooledFundValueList,
                                           boolean completed)
Description copied from interface: PooledFundValueService
set PooledFundValue entries where the distribution income on date is equal to current date.

Specified by:
setIncomeDistributionCompleted in interface PooledFundValueService

getBusinessObjectService

public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
This method gets the businessObjectService.

Returns:
businessObjectService

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
This method sets the businessObjectService

Parameters:
businessObjectService -

isValuationDateTheLatest

public boolean isValuationDateTheLatest(String pooledSecurityID,
                                        Date theValuationDate)
Specified by:
isValuationDateTheLatest in interface PooledFundValueService

getLatestValueEffectiveDate

public Date getLatestValueEffectiveDate(String pooledSecurityID)
Specified by:
getLatestValueEffectiveDate in interface PooledFundValueService

getPooledFundValueWhereSTProcessOnDateIsCurrentDate

public List<PooledFundValue> getPooledFundValueWhereSTProcessOnDateIsCurrentDate()
Description copied from interface: PooledFundValueService
Gets PooledFundValue entries where the short term process on date is equal to current date and value effective date is the most recent per security.

Specified by:
getPooledFundValueWhereSTProcessOnDateIsCurrentDate in interface PooledFundValueService
Returns:
a list of PooledFundValue entries that meet the criteria
See Also:
PooledFundValueService.getPooledFundValueWhereSTProcessOnDateIsCurrentDate()

getPooledFundValueWhereLTProcessOnDateIsCurrentDate

public List<PooledFundValue> getPooledFundValueWhereLTProcessOnDateIsCurrentDate()
Description copied from interface: PooledFundValueService
Gets PooledFundValue entries where the long term process on date is equal to current date and value effective date is the most recent per security.

Specified by:
getPooledFundValueWhereLTProcessOnDateIsCurrentDate in interface PooledFundValueService
Returns:
a list of PooledFundValue entries that meet the criteria
See Also:
PooledFundValueService.getPooledFundValueWhereLTProcessOnDateIsCurrentDate()

getPooledFundValueWhereDistributionIncomeOnDateIsCurrentDate

public List<PooledFundValue> getPooledFundValueWhereDistributionIncomeOnDateIsCurrentDate()
Description copied from interface: PooledFundValueService
Gets PooledFundValue entries where the distribution income on date is equal to current date.

Specified by:
getPooledFundValueWhereDistributionIncomeOnDateIsCurrentDate in interface PooledFundValueService
Returns:
a list of PooledFundValue entries that meet the criteria
See Also:
PooledFundValueService.getPooledFundValueWhereDistributionIncomeOnDateIsCurrentDate()

setPooledFundValueDao

public void setPooledFundValueDao(PooledFundValueDao pooledFundValueDao)
Sets the pooledFundValueDao.

Parameters:
pooledFundValueDao -


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