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

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

public class KEMServiceImpl
extends Object
implements KEMService


Constructor Summary
KEMServiceImpl()
           
 
Method Summary
 BigDecimal getAvailableCashPercent()
          Gets the AVAILABLE_CASH_PERCENT system parameter
 Date getCurrentDate()
          Gets the current date based on a system parameter USE_PROCESS_DATE_IND:
1) If USE_PROCESS_DATE_IND = Y (true), get the value from CURRENT_PROCESS_DATE.
 Date getCurrentProcessDate()
          Gets the current process date from the CURRENT_PROCESS_DATE parameter
 String getCurrentSystemProcessDate()
          Gets the current system process date.
 String getCurrentSystemProcessDateFormated()
           
 Date getCurrentSystemProcessDateObject()
           
 org.kuali.rice.kns.service.DateTimeService getDateTimeService()
          Gets the dateTimeService.
 Date getFirstDayAfterFiscalYearEndDayAndMonth()
          Gets the first day after the fiscal year end day and month as set in the system parameter.
 Date getFiscalYearEndDayAndMonth()
          Gets the FISCAL_YEAR_END_DAY_AND_MONTH system parameter
 BigDecimal getMarketValue(String securityId)
          Computes the market value as the Sum of the HLDG _MVAL for all records for the Security in END_CURR_TAX_LOT_BAL_T.
 BigDecimal getMarketValue(String kemid, String securityId, String registrationCode, org.kuali.rice.kns.util.KualiInteger lotNumber, String ipIndicator)
          Gets the market value as the HLDG _MVAL for the record in END_CURR_TAX_LOT_BAL_T for the given kemid, securityId, registrationCode, lotNumber, ipIndicator.
 int getMaxNumberOfTransactionLinesPerDocument()
          Gets MAXIMUM_TRANSACTION_LINES value from the system parameter.
 int getNumberOfDaysInCalendarYear()
          Gets the number of days in the calendar year.
 org.kuali.rice.kns.service.ParameterService getParameterService()
          Gets the parameterService.
 long getTotalNumberOfPaymentsForFiscalYear()
          Gets the DISTRIBUTION_TIMES_PER_YEAR system parameter
 String mod10(String prefix)
          Computes the check digit based on the given prefix.
 void setCurrentTaxLotService(CurrentTaxLotService currentTaxLotService)
          Gets the currentTaxLotService.
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
          Sets dateTimeService.
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
          Sets the parameterService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KEMServiceImpl

public KEMServiceImpl()
Method Detail

getMarketValue

public BigDecimal getMarketValue(String securityId)
Description copied from interface: KEMService
Computes the market value as the Sum of the HLDG _MVAL for all records for the Security in END_CURR_TAX_LOT_BAL_T.

Specified by:
getMarketValue in interface KEMService
Returns:
the market value for the given security
See Also:
KEMService.getMarketValue(java.lang.String)

getMarketValue

public BigDecimal getMarketValue(String kemid,
                                 String securityId,
                                 String registrationCode,
                                 org.kuali.rice.kns.util.KualiInteger lotNumber,
                                 String ipIndicator)
Description copied from interface: KEMService
Gets the market value as the HLDG _MVAL for the record in END_CURR_TAX_LOT_BAL_T for the given kemid, securityId, registrationCode, lotNumber, ipIndicator.

Specified by:
getMarketValue in interface KEMService
Returns:
the market value for the given kemid, securityId, registrationCode, lotNumber, ipIndicator.
See Also:
KEMService.getMarketValue(java.lang.String, java.lang.String, java.lang.String, org.kuali.rice.kns.util.KualiInteger, java.lang.String)

mod10

public String mod10(String prefix)
Description copied from interface: KEMService
Computes the check digit based on the given prefix.

Specified by:
mod10 in interface KEMService
Returns:
the string formed by the prefix + check digit
See Also:
KEMService.mod10(java.lang.String)

getCurrentSystemProcessDate

public String getCurrentSystemProcessDate()
Description copied from interface: KEMService
Gets the current system process date.

Specified by:
getCurrentSystemProcessDate in interface KEMService
Returns:
a String representing the value of the current system process date
See Also:
KEMService.getCurrentSystemProcessDate()

getCurrentSystemProcessDateFormated

public String getCurrentSystemProcessDateFormated()
                                           throws Exception
Specified by:
getCurrentSystemProcessDateFormated in interface KEMService
Throws:
Exception
See Also:
KEMService.getCurrentSystemProcessDate()

getCurrentSystemProcessDateObject

public Date getCurrentSystemProcessDateObject()
Specified by:
getCurrentSystemProcessDateObject in interface KEMService

getCurrentDate

public Date getCurrentDate()
Description copied from interface: KEMService
Gets the current date based on a system parameter USE_PROCESS_DATE_IND:
1) If USE_PROCESS_DATE_IND = Y (true), get the value from CURRENT_PROCESS_DATE.
2) If USE_PROCESS_DATE_IND = N (false), get the current date from the local system using standard Java API.

Specified by:
getCurrentDate in interface KEMService
Returns:
the current date
See Also:
KEMService.getCurrentDate()

getCurrentProcessDate

public Date getCurrentProcessDate()
Description copied from interface: KEMService
Gets the current process date from the CURRENT_PROCESS_DATE parameter

Specified by:
getCurrentProcessDate in interface KEMService
Returns:
current process date
See Also:
KEMService.getCurrentProcessDate()

getAvailableCashPercent

public BigDecimal getAvailableCashPercent()
Description copied from interface: KEMService
Gets the AVAILABLE_CASH_PERCENT system parameter

Specified by:
getAvailableCashPercent in interface KEMService
Returns:
AVAILABLE_CASH_PERCENT value
See Also:
Gets the AVAILABLE_CASH_PERCENT system parameter

getFiscalYearEndDayAndMonth

public Date getFiscalYearEndDayAndMonth()
Description copied from interface: KEMService
Gets the FISCAL_YEAR_END_DAY_AND_MONTH system parameter

Specified by:
getFiscalYearEndDayAndMonth in interface KEMService
Returns:
FISCAL_YEAR_END_DAY_AND_MONTH value
See Also:
Gets the FISCAL_YEAR_END_DAY_AND_MONTH system parameter

getTotalNumberOfPaymentsForFiscalYear

public long getTotalNumberOfPaymentsForFiscalYear()
Description copied from interface: KEMService
Gets the DISTRIBUTION_TIMES_PER_YEAR system parameter

Specified by:
getTotalNumberOfPaymentsForFiscalYear in interface KEMService
Returns:
DISTRIBUTION_TIMES_PER_YEAR value
See Also:
org.kuali.kfs.module.endow.document.service.org.kuali.kfs.module.endow.document.service.KEMService#getTotalNumberOfPaymentsForFiscalYear()

getNumberOfDaysInCalendarYear

public int getNumberOfDaysInCalendarYear()
Description copied from interface: KEMService
Gets the number of days in the calendar year.

Specified by:
getNumberOfDaysInCalendarYear in interface KEMService
Returns:
the number of days in the calendar year
See Also:
KEMService.getNumberOfDaysInCalendarYear()

getFirstDayAfterFiscalYearEndDayAndMonth

public Date getFirstDayAfterFiscalYearEndDayAndMonth()
Gets the first day after the fiscal year end day and month as set in the system parameter.

Specified by:
getFirstDayAfterFiscalYearEndDayAndMonth in interface KEMService
Returns:
Date
See Also:
KEMService.getFirstDayAfterFiscalYearEndDayAndMonth()

getMaxNumberOfTransactionLinesPerDocument

public int getMaxNumberOfTransactionLinesPerDocument()
Description copied from interface: KEMService
Gets MAXIMUM_TRANSACTION_LINES value from the system parameter.

Specified by:
getMaxNumberOfTransactionLinesPerDocument in interface KEMService
Returns:
maximumNumberOfTransactionLines
See Also:
KEMService.getMaxNumberOfTransactionLinesPerDocument()

getDateTimeService

public org.kuali.rice.kns.service.DateTimeService getDateTimeService()
Gets the dateTimeService.

Returns:
dateTimeService

setDateTimeService

public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets dateTimeService.

Parameters:
dateTimeService -

getParameterService

public org.kuali.rice.kns.service.ParameterService getParameterService()
Gets the parameterService.

Returns:
parameterService

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService.

Parameters:
parameterService -

setCurrentTaxLotService

public void setCurrentTaxLotService(CurrentTaxLotService currentTaxLotService)
Gets the currentTaxLotService.

Parameters:
currentTaxLotService -


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