org.kuali.kfs.module.cam.document.service
Interface AssetService

All Known Implementing Classes:
AssetServiceImpl

public interface AssetService

The interface defines methods for Asset Document


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)
           
 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 setFiscalPeriod(Asset asset)
          Sets the fiscal year and month in the asset object based on the creation date of the asset
 void setSeparateHistory(Asset asset)
          For the given Asset sets the separateHistory.
 

Method Detail

isAssetDepreciationStarted

boolean isAssetDepreciationStarted(Asset asset)
Check if asset has started depreciation already.

Parameters:
asset -
Returns:

isDocumentEnrouting

boolean isDocumentEnrouting(org.kuali.rice.kns.document.Document document)
Checks if given mainenanceDocument has started routing.

Parameters:
document -
Returns:

getCurrentRouteLevels

List<String> getCurrentRouteLevels(org.kuali.rice.kns.workflow.service.KualiWorkflowDocument workflowDocument)
A helper method for determining the route levels for a given document.

Parameters:
workflowDocument -
Returns:
List

isAssetMovableCheckByAsset

boolean isAssetMovableCheckByAsset(Asset asset)

isCapitalAsset

boolean isCapitalAsset(Asset asset)

isAssetRetired

boolean isAssetRetired(Asset asset)

isInServiceDateChanged

boolean isInServiceDateChanged(Asset oldAsset,
                               Asset newAsset)

isAssetFabrication

boolean isAssetFabrication(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
Returns:
if MaintenanceDocument is an asset fabrication or not

isAssetLoaned

boolean isAssetLoaned(Asset asset)
Returns:
if the asset is on loan or not

isAssetTaggedInPriorFiscalYear

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

Returns:

isTagNumberCheckExclude

boolean isTagNumberCheckExclude(Asset asset)
The Tag Number check excludes value of "N" and retired assets.

Returns:

isOffCampusLocationEntered

boolean isOffCampusLocationEntered(Asset asset)
Test if any of the off campus location field is entered.

Parameters:
asset -
Returns:

isFinancialObjectSubTypeCodeChanged

boolean isFinancialObjectSubTypeCodeChanged(Asset oldAsset,
                                            Asset newAsset)
Test if financialObjectSubTypeCode is changed.

Parameters:
oldAsset -
newAsset -
Returns:

isAssetTypeCodeChanged

boolean isAssetTypeCodeChanged(Asset oldAsset,
                               Asset newAsset)
Test if assetTypeCode is changed.

Parameters:
oldAsset -
newAsset -
Returns:

isAssetDepreciableLifeLimitZero

boolean isAssetDepreciableLifeLimitZero(Asset asset)
Test if Depreciable Life Limit is "0" This method...

Parameters:
asset -
Returns:

isCapitalAssetNumberDuplicate

boolean isCapitalAssetNumberDuplicate(Long capitalAssetNumber1,
                                      Long capitalAssetNumber2)
Test two capitalAssetNumber equal.

Parameters:
capitalAssetNumber1 -
capitalAssetNumber2 -
Returns:

setAssetSummaryFields

void setAssetSummaryFields(Asset asset)
This method calls the service codes to calculate the summary fields for each asset

Parameters:
asset -

isAssetMovableCheckByPayment

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
  • Parameters:
    financialObjectSubType -
    Returns:
    boolean

    isObjectSubTypeCompatible

    boolean isObjectSubTypeCompatible(List<String> financialObjectSubTypeCode)
    This will check if the list of financial object sub type code are compatible with each other.
  • return TRUE if all Object sub type code are compatible with each other.
  • return FALSE if any non copatible object sub type code are found.

    Parameters:
    financialObjectSubTypeCode -
    Returns:

  • findActiveAssetsMatchingTagNumber

    List<Asset> findActiveAssetsMatchingTagNumber(String campusTagNumber)
    This method returns all active assets found matching this tab number

    Parameters:
    campusTagNumber - Campus Tag Number
    Returns:
    List of assets found matching tag number

    findAssetsMatchingTagNumber

    Collection<Asset> findAssetsMatchingTagNumber(String campusTagNumber)
    This method returns all active and not active assets found matching this tab number

    Parameters:
    campusTagNumber - Campus Tag Number
    Returns:
    List of assets found matching tag number

    setSeparateHistory

    void setSeparateHistory(Asset asset)
    For the given Asset sets the separateHistory.

    Parameters:
    asset - for which to set the separateHistory

    getDocumentNumbersThatSeparatedThisAsset

    List<String> getDocumentNumbersThatSeparatedThisAsset(Long capitalAssetNumber)
    Parameters:
    capitalAssetNumber - to check whether it got separated
    Returns:
    the list of document numbers that separated the particular asset

    setFiscalPeriod

    void setFiscalPeriod(Asset asset)
    Sets the fiscal year and month in the asset object based on the creation date of the asset

    Parameters:
    asset -


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