org.kuali.kfs.module.cam.document.service.impl
Class AssetDateServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.cam.document.service.impl.AssetDateServiceImpl
All Implemented Interfaces:
AssetDateService

public class AssetDateServiceImpl
extends Object
implements AssetDateService


Constructor Summary
AssetDateServiceImpl()
           
 
Method Summary
 void checkAndUpdateDepreciationDate(Asset oldAsset, Asset newAsset)
          In Asset Edit, DepreciationDate shall be updated whenever In-service Date changed.
 void checkAndUpdateFiscalYearAndPeriod(Asset oldAsset, Asset newAsset)
          In Asset Edit, Fiscal year and period code shall be updated whenever In-service Date changed.
 void checkAndUpdateLastInventoryDate(Asset oldAsset, Asset newAsset)
          Last inventory Date shall be updated whenever changes made to location or tag number
 Date computeDepreciationDate(AssetType assetType, AssetDepreciationConvention depreciationConvention, Date inServiceDate)
          This method computes the depreciation date based on input parameters
 AssetService getAssetService()
           
 org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
          Gets the businessObjectService attribute.
 org.kuali.rice.kns.service.DateTimeService getDateTimeService()
          Gets the dateTimeService attribute.
 UniversityDateService getUniversityDateService()
           
 void setAssetService(AssetService assetService)
           
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
          Sets the dateTimeService attribute value.
 void setUniversityDateService(UniversityDateService universityDateService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetDateServiceImpl

public AssetDateServiceImpl()
Method Detail

checkAndUpdateFiscalYearAndPeriod

public void checkAndUpdateFiscalYearAndPeriod(Asset oldAsset,
                                              Asset newAsset)
Description copied from interface: AssetDateService
In Asset Edit, Fiscal year and period code shall be updated whenever In-service Date changed.

Specified by:
checkAndUpdateFiscalYearAndPeriod in interface AssetDateService
See Also:
AssetDateService.checkAndUpdateFiscalYearAndPeriod(org.kuali.kfs.module.cam.businessobject.Asset, org.kuali.kfs.module.cam.businessobject.Asset)

checkAndUpdateLastInventoryDate

public void checkAndUpdateLastInventoryDate(Asset oldAsset,
                                            Asset newAsset)
Description copied from interface: AssetDateService
Last inventory Date shall be updated whenever changes made to location or tag number

Specified by:
checkAndUpdateLastInventoryDate in interface AssetDateService
See Also:
org.kuali.module.cams.service.AssetDetailInformationService#checkAndUpdateLastInventoryDate(org.kuali.kfs.module.cam.businessobject.Asset, org.kuali.kfs.module.cam.businessobject.Asset)

checkAndUpdateDepreciationDate

public void checkAndUpdateDepreciationDate(Asset oldAsset,
                                           Asset newAsset)
Description copied from interface: AssetDateService
In Asset Edit, DepreciationDate shall be updated whenever In-service Date changed.

Specified by:
checkAndUpdateDepreciationDate in interface AssetDateService
See Also:
org.kuali.module.cams.service.AssetDetailInformationService#checkAndUpdateDepreciationDate(org.kuali.kfs.module.cam.businessobject.Asset, org.kuali.kfs.module.cam.businessobject.Asset)

computeDepreciationDate

public Date computeDepreciationDate(AssetType assetType,
                                    AssetDepreciationConvention depreciationConvention,
                                    Date inServiceDate)
Description copied from interface: AssetDateService
This method computes the depreciation date based on input parameters

Specified by:
computeDepreciationDate in interface AssetDateService
Parameters:
assetType - Asset Type Object
depreciationConvention - Depreciation Convention for the asset
inServiceDate - Current in-service date value
Returns:
Computed Asset Depreciation Date
See Also:
AssetDateService.computeDepreciationDate(org.kuali.kfs.module.cam.businessobject.AssetType, org.kuali.kfs.module.cam.businessobject.AssetDepreciationConvention, java.sql.Date)

getAssetService

public AssetService getAssetService()

setAssetService

public void setAssetService(AssetService assetService)

getUniversityDateService

public UniversityDateService getUniversityDateService()

setUniversityDateService

public void setUniversityDateService(UniversityDateService universityDateService)

getDateTimeService

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

Returns:
Returns the dateTimeService.

setDateTimeService

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

Parameters:
dateTimeService - The dateTimeService to set.

getBusinessObjectService

public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
Gets the businessObjectService attribute.

Returns:
Returns the businessObjectService.

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.


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