org.kuali.kfs.module.endow.batch.service.impl
Class KemidFeeServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.endow.batch.service.impl.KemidFeeServiceImpl
All Implemented Interfaces:
KemidFeeService

public class KemidFeeServiceImpl
extends Object
implements KemidFeeService

This class is the service implementation for the KemidFeeService. This is the default, Kuali provided implementation.


Field Summary
protected  KemidCorpusValueService kemidCorpusValueService
           
protected  KEMService kemService
           
protected static org.apache.log4j.Logger LOG
           
protected  org.kuali.rice.kns.service.ParameterService parameterService
           
 
Constructor Summary
KemidFeeServiceImpl()
           
 
Method Summary
 boolean chargeFeeToKemid(FeeMethod feeMethod, KemidFee kemidFee)
          Determines if the fee to be charged or not to the kemid based on the contions: FEE_IMPL_DT is equal to or less than the current date and FEE_TERM_DT is null or greater than the current date.
 Collection<KemidFee> getAllKemIdFee()
          Gets all the KemidFee records as a collection
 Collection<KemidFee> getAllKemidForFeeMethodCode(String feeMethodCode)
          Retrieves all KemidFee records for the given feeMethodCode.
 org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
          This method gets the businessObjectService.
 KemidCorpusValueService getKemidCorpusValueService()
          Gets the kemidCorpusValueService attribute.
protected  KEMService getKemService()
          Gets the kemService.
protected  org.kuali.rice.kns.service.ParameterService getParameterService()
          Gets the parameterService attribute.
 boolean saveKemidFee(KemidFee kemidFee)
          Saves the kemidFee record to the table END_KEMID_FEE_T
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          This method sets the businessObjectService
 void setKemidCorpusValueService(KemidCorpusValueService kemidCorpusValueService)
          Sets the kemidCorpusValueService attribute value.
 void setKemService(KEMService kemService)
          Sets the kemService.
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
          Sets the parameterService attribute value.
protected  boolean systemParametersForUpdateWaiverFeeAmounts()
          This method checks if the System parameters have been set up for this batch job.
 boolean updateWaiverFeeYearToDateTotals()
          Updates the END_KEMID_FEE_T table records by setting the amounts in WAIVE_FEE_YTD to zero if current date is the first day of the institution's fiscal year
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static org.apache.log4j.Logger LOG

kemService

protected KEMService kemService

parameterService

protected org.kuali.rice.kns.service.ParameterService parameterService

kemidCorpusValueService

protected KemidCorpusValueService kemidCorpusValueService
Constructor Detail

KemidFeeServiceImpl

public KemidFeeServiceImpl()
Method Detail

getAllKemIdFee

public Collection<KemidFee> getAllKemIdFee()
Description copied from interface: KemidFeeService
Gets all the KemidFee records as a collection

Specified by:
getAllKemIdFee in interface KemidFeeService
Returns:
collection records
See Also:
KemidFeeService.getAllKemIdFee()

saveKemidFee

public boolean saveKemidFee(KemidFee kemidFee)
Description copied from interface: KemidFeeService
Saves the kemidFee record to the table END_KEMID_FEE_T

Specified by:
saveKemidFee in interface KemidFeeService
Returns:
true if saved else false...

getAllKemidForFeeMethodCode

public Collection<KemidFee> getAllKemidForFeeMethodCode(String feeMethodCode)
Description copied from interface: KemidFeeService
Retrieves all KemidFee records for the given feeMethodCode.

Specified by:
getAllKemidForFeeMethodCode in interface KemidFeeService
See Also:
org.kuali.kfs.module.endow.batch.KemidFeeService#KemidFeeService(String)

chargeFeeToKemid

public boolean chargeFeeToKemid(FeeMethod feeMethod,
                                KemidFee kemidFee)
Description copied from interface: KemidFeeService
Determines if the fee to be charged or not to the kemid based on the contions: FEE_IMPL_DT is equal to or less than the current date and FEE_TERM_DT is null or greater than the current date. IF there is a value greater than zero in END_KEMID_FEE_T: FEE_CORPUS_PCT_TLRNC and a record exists for the KEMID in END_KEMID_CORPUS_VAL_T and CURR_CORPUSPRIN_MVAL divided by CURR_CORPUS_VAL is less than END_KEMID_FEE_T: FEE_CORPUS_PCT_TLRNC, then skip the KEMID as no fee will be charged.

Specified by:
chargeFeeToKemid in interface KemidFeeService
Parameters:
feeMethod - feeMethod record, kemidFee kemidFee record
Returns:
true if fee to be charged to the kemid else return false
See Also:
org.kuali.kfs.module.endow.batch.KemidFeeService#ChargeFeeToKemid(KemidFee, boolean)

updateWaiverFeeYearToDateTotals

public boolean updateWaiverFeeYearToDateTotals()
Updates the END_KEMID_FEE_T table records by setting the amounts in WAIVE_FEE_YTD to zero if current date is the first day of the institution's fiscal year

Specified by:
updateWaiverFeeYearToDateTotals in interface KemidFeeService
Returns:
true if the amounts updated else return false
See Also:
KemidFeeService.updateWaiverFeeYearToDateTotals()

systemParametersForUpdateWaiverFeeAmounts

protected boolean systemParametersForUpdateWaiverFeeAmounts()
This method checks if the System parameters have been set up for this batch job.


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 -

getKemService

protected KEMService getKemService()
Gets the kemService.

Returns:
kemService

setKemService

public void setKemService(KEMService kemService)
Sets the kemService.

Parameters:
kemService -

getParameterService

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

Returns:
Returns the parameterService.

setParameterService

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

Parameters:
parameterService - The parameterService to set.

getKemidCorpusValueService

public KemidCorpusValueService getKemidCorpusValueService()
Gets the kemidCorpusValueService attribute.

Returns:
Returns the kemidCorpusValueService.

setKemidCorpusValueService

public void setKemidCorpusValueService(KemidCorpusValueService kemidCorpusValueService)
Sets the kemidCorpusValueService attribute value.

Parameters:
kemidCorpusValueService - The kemidCorpusValueService to set.


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