|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.module.cam.document.service.impl.AssetServiceImpl
public class AssetServiceImpl
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
LOG
|
| Constructor Summary | |
|---|---|
AssetServiceImpl()
|
|
| Method Summary | |
|---|---|
List<Asset> |
findActiveAssetsMatchingTagNumber(String campusTagNumber)
This method returns all active assets found matching this tab number |
Collection<Asset> |
findAssetsMatchingTagNumber(String campusTagNumber)
This method returns all active and not active assets found matching this tab number |
List<String> |
getCurrentRouteLevels(org.kuali.rice.kns.workflow.service.KualiWorkflowDocument workflowDocument)
A helper method for determining the route levels for a given document. |
List<String> |
getDocumentNumbersThatSeparatedThisAsset(Long capitalAssetNumber)
|
org.kuali.rice.kns.service.ParameterService |
getParameterService()
|
PaymentSummaryService |
getPaymentSummaryService()
|
boolean |
isAssetDepreciableLifeLimitZero(Asset asset)
Test if Depreciable Life Limit is "0" This method... |
boolean |
isAssetDepreciationStarted(Asset asset)
Check if asset has started depreciation already. |
boolean |
isAssetFabrication(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
|
boolean |
isAssetLoaned(Asset asset)
|
boolean |
isAssetMovableCheckByAsset(Asset asset)
|
boolean |
isAssetMovableCheckByPayment(String financialObjectSubTypeCode)
This will check the financial object sub type code in system parameters return TRUE if found in MOVABLE_EQUIPMENT_OBJECT_SUB_TYPE_CODES return FALSE if found in NON_MOVABLE_EQUIPMENT_OBJECT_SUB_TYPE_CODES throw ValidationException if not defined in neither one of them |
boolean |
isAssetRetired(Asset asset)
|
boolean |
isAssetTaggedInPriorFiscalYear(Asset asset)
The Asset Type Code is allowed to be changed only: (1)If the tag number has not been assigned or (2)The asset is tagged, and the asset created in the current fiscal year |
boolean |
isAssetTypeCodeChanged(Asset oldAsset,
Asset newAsset)
Test if assetTypeCode is changed. |
boolean |
isCapitalAsset(Asset asset)
|
boolean |
isCapitalAssetNumberDuplicate(Long capitalAssetNumber1,
Long capitalAssetNumber2)
Test two capitalAssetNumber equal. |
boolean |
isDocumentEnrouting(org.kuali.rice.kns.document.Document document)
Checks if given mainenanceDocument has started routing. |
boolean |
isFinancialObjectSubTypeCodeChanged(Asset oldAsset,
Asset newAsset)
Test if financialObjectSubTypeCode is changed. |
boolean |
isInServiceDateChanged(Asset oldAsset,
Asset newAsset)
|
boolean |
isObjectSubTypeCompatible(List<String> financialObjectSubTypeCode)
This will check if the list of financial object sub type code are compatible with each other. |
boolean |
isOffCampusLocationEntered(Asset asset)
Test if any of the off campus location field is entered. |
boolean |
isTagNumberCheckExclude(Asset asset)
The Tag Number check excludes value of "N" and retired assets. |
void |
setAssetSummaryFields(Asset asset)
This method calls the service codes to calculate the summary fields for each asset |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
|
void |
setFiscalPeriod(Asset asset)
sets the posting year and posting month based on the asset creation date |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
void |
setPaymentSummaryService(PaymentSummaryService paymentSummaryService)
|
void |
setSeparateHistory(Asset asset)
For the given Asset sets the separateHistory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger LOG
| Constructor Detail |
|---|
public AssetServiceImpl()
| Method Detail |
|---|
public org.kuali.rice.kns.service.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
public boolean isAssetMovableCheckByAsset(Asset asset)
isAssetMovableCheckByAsset in interface AssetServicepublic boolean isAssetDepreciationStarted(Asset asset)
AssetService
isAssetDepreciationStarted in interface AssetServiceAssetService.isAssetDepreciationStarted(org.kuali.kfs.module.cam.businessobject.Asset)public boolean isCapitalAsset(Asset asset)
isCapitalAsset in interface AssetServicepublic boolean isAssetRetired(Asset asset)
isAssetRetired in interface AssetService
public boolean isInServiceDateChanged(Asset oldAsset,
Asset newAsset)
isInServiceDateChanged in interface AssetServicepublic boolean isAssetFabrication(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
isAssetFabrication in interface AssetServiceAssetService.isAssetFabrication(org.kuali.rice.kns.document.MaintenanceDocument)public boolean isAssetLoaned(Asset asset)
isAssetLoaned in interface AssetServiceAssetService.isAssetLoaned(org.kuali.kfs.module.cam.businessobject.Asset)public boolean isAssetTaggedInPriorFiscalYear(Asset asset)
AssetService
isAssetTaggedInPriorFiscalYear in interface AssetServiceAssetService.isAssetTaggedInPriorFiscalYear(org.kuali.kfs.module.cam.businessobject.Asset)public boolean isTagNumberCheckExclude(Asset asset)
AssetService
isTagNumberCheckExclude in interface AssetServiceAssetService.isTagNumberCheckExclude(org.kuali.kfs.module.cam.businessobject.Asset)public boolean isOffCampusLocationEntered(Asset asset)
AssetService
isOffCampusLocationEntered in interface AssetServiceAssetService.isOffCampusLocationEntered(org.kuali.kfs.module.cam.businessobject.Asset)
public boolean isFinancialObjectSubTypeCodeChanged(Asset oldAsset,
Asset newAsset)
AssetService
isFinancialObjectSubTypeCodeChanged in interface AssetServiceAssetService.isFinancialObjectSubTypeCodeChanged(org.kuali.kfs.module.cam.businessobject.Asset,
org.kuali.kfs.module.cam.businessobject.Asset)
public boolean isAssetTypeCodeChanged(Asset oldAsset,
Asset newAsset)
AssetService
isAssetTypeCodeChanged in interface AssetServiceAssetService.isAssetTypeCodeChanged(org.kuali.kfs.module.cam.businessobject.Asset,
org.kuali.kfs.module.cam.businessobject.Asset)public boolean isAssetDepreciableLifeLimitZero(Asset asset)
AssetService
isAssetDepreciableLifeLimitZero in interface AssetService
public boolean isCapitalAssetNumberDuplicate(Long capitalAssetNumber1,
Long capitalAssetNumber2)
AssetService
isCapitalAssetNumberDuplicate in interface AssetServiceAssetService.isCapitalAssetNumberDuplicate(java.lang.Long, java.lang.Long)public void setAssetSummaryFields(Asset asset)
setAssetSummaryFields in interface AssetServiceasset - public PaymentSummaryService getPaymentSummaryService()
public void setPaymentSummaryService(PaymentSummaryService paymentSummaryService)
public boolean isAssetMovableCheckByPayment(String financialObjectSubTypeCode)
AssetService
isAssetMovableCheckByPayment in interface AssetServiceorg.kuali.kfs.module.cam.document.service.AssetService#isMovableFinancialObjectSubtypeCode(java.lang.String)public List<Asset> findActiveAssetsMatchingTagNumber(String campusTagNumber)
AssetService
findActiveAssetsMatchingTagNumber in interface AssetServicecampusTagNumber - Campus Tag Number
public Collection<Asset> findAssetsMatchingTagNumber(String campusTagNumber)
AssetService
findAssetsMatchingTagNumber in interface AssetServicecampusTagNumber - Campus Tag Number
AssetService.findAssetsMatchingTagNumber(java.lang.String)public boolean isObjectSubTypeCompatible(List<String> financialObjectSubTypeCode)
AssetService
isObjectSubTypeCompatible in interface AssetServiceAssetService.isObjectSubTypeCompatible(java.util.List)public void setSeparateHistory(Asset asset)
AssetService
setSeparateHistory in interface AssetServiceasset - for which to set the separateHistoryAssetService.setSeparateHistory(org.kuali.kfs.module.cam.businessobject.Asset)public List<String> getDocumentNumbersThatSeparatedThisAsset(Long capitalAssetNumber)
getDocumentNumbersThatSeparatedThisAsset in interface AssetServicecapitalAssetNumber - to check whether it got separated
org.kuali.kfs.module.cam.document.service.AssetService#getDocumentNumberThatSeparatedThisAsset(java.lang.Long)public void setFiscalPeriod(Asset asset)
setFiscalPeriod in interface AssetServiceasset - public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
public List<String> getCurrentRouteLevels(org.kuali.rice.kns.workflow.service.KualiWorkflowDocument workflowDocument)
AssetService
getCurrentRouteLevels in interface AssetServiceAssetService.getCurrentRouteLevels(org.kuali.rice.kns.workflow.service.KualiWorkflowDocument)public boolean isDocumentEnrouting(org.kuali.rice.kns.document.Document document)
AssetService
isDocumentEnrouting in interface AssetServiceorg.kuali.kfs.module.cam.document.service.AssetService#isMaintenanceDocumentEnroute(org.kuali.rice.kns.document.MaintenanceDocument)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||