|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.endow.document.service.impl.SecurityServiceImpl
public class SecurityServiceImpl
This class provides service for Security maintenance
Constructor Summary | |
---|---|
SecurityServiceImpl()
|
Method Summary | |
---|---|
void |
computeValueBasedOnValuationMethod(Security security)
Calculates market value or unit value based on the security valuation method |
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
This method gets the businessObjectService. |
Security |
getByPrimaryKey(String id)
Gets a Security by primary key. |
KEMService |
getKemService()
Gets the kemService. |
List<Security> |
getSecuritiesByClassCodeWithUnitsGreaterThanZero(List<String> classCodes)
Gets all the Securities with the class code in the classCodes array and the units held greater than zero. |
BigDecimal |
getSecurityMarketValue(Security security)
Computes the market value. |
BigDecimal |
getSecurityUnitValue(Security security)
Computes the unit value based on the market value. |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
This method sets the businessObjectService |
void |
setKemService(KEMService kemService)
Sets the kemService. |
void |
setSecurityDao(SecurityDao securityDao)
Sets the securityDao. |
Security |
updateIncomeChangeDate(Security security)
Updates incomeChangeDate to currentDate |
Security |
updateInterestRate(Security security,
BigDecimal interestRate)
This method will update the interest rate or amount |
Security |
updateUnitValue(Security security,
BigDecimal newUnitValue,
Date newValueDate,
String newUnitValueSource)
This method will perform the following updates: 1) Copy current Security Unit Value to Previous Unit Value 2) Copy current Security Value Date to Previous Unit Value Date 3) Copy newUnitValue to current Security Unit Value 4) Copy newValueDate to current Security Unit Value Date 5) Copy newUnitValueSource to Unit Value Source |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityServiceImpl()
Method Detail |
---|
public Security getByPrimaryKey(String id)
SecurityService
getByPrimaryKey
in interface SecurityService
PooledFundControlService.getByPrimaryKey(java.lang.String)
public Security updateUnitValue(Security security, BigDecimal newUnitValue, Date newValueDate, String newUnitValueSource)
SecurityService
updateUnitValue
in interface SecurityService
security
- the BO that needs to be updated.newUnitValue
- the new unit value for that securitynewValueDate
- the new value date for that securitynewUnitValueSource
- the new unit value source for that security
SecurityService.updateUnitValue(org.kuali.kfs.module.endow.businessobject.Security,
java.math.BigDecimal, java.sql.Date, java.lang.String)
public Security updateInterestRate(Security security, BigDecimal interestRate)
updateInterestRate
in interface SecurityService
public void computeValueBasedOnValuationMethod(Security security)
SecurityService
computeValueBasedOnValuationMethod
in interface SecurityService
security
- the security for which we calculate the market value or unit valueSecurityService.computeValueBasedOnValuationMethod(org.kuali.kfs.module.endow.businessobject.Security)
public Security updateIncomeChangeDate(Security security)
SecurityService
updateIncomeChangeDate
in interface SecurityService
org.kuali.kfs.module.endow.document.service.SecurityService#updateIncomeChangeDate(java.lang.String)
public BigDecimal getSecurityMarketValue(Security security)
security
- the security for which we calculate the market value
public BigDecimal getSecurityUnitValue(Security security)
security
- the security for which we calculate the unit value
public List<Security> getSecuritiesByClassCodeWithUnitsGreaterThanZero(List<String> classCodes)
SecurityService
getSecuritiesByClassCodeWithUnitsGreaterThanZero
in interface SecurityService
SecurityService.getSecuritiesByClassCodeWithUnitsGreaterThanZero(java.util.List)
public KEMService getKemService()
public void setKemService(KEMService kemService)
kemService
- public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- public void setSecurityDao(SecurityDao securityDao)
securityDao
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |