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

All Known Implementing Classes:
AssetGlobalServiceImpl

public interface AssetGlobalService

The interface defines methods for Asset Document


Method Summary
 void createGLPostables(AssetGlobal assetGlobal, CamsGeneralLedgerPendingEntrySourceBase assetGlobalGlPoster)
          Creates GL Postables
 boolean existsInGroup(String groupName, String memberName)
          This method checks if member exists in the given group.
 String getCapitalObjectAcquisitionCodeGroup()
           
 List<org.kuali.rice.kns.bo.PersistableBusinessObject> getCreateNewAssets(AssetGlobal assetGlobal)
          Returns assets for save for create new assets
 String getNewAcquisitionTypeCode()
           
 String getNonNewAcquisitionCodeGroup()
           
 List<org.kuali.rice.kns.bo.PersistableBusinessObject> getSeparateAssets(AssetGlobal assetGlobal)
          Returns assets for save for asset separate
 org.kuali.rice.kns.util.KualiDecimal getUniqueAssetsTotalAmount(AssetGlobal assetGlobal)
          Add and return the total amount for all unique assets created.
 boolean isAssetSeparate(AssetGlobal assetGlobal)
          Validates if the document type matches that of Asset Separate.
 boolean isAssetSeparateByPayment(AssetGlobal assetGlobal)
          Validates if the document type matches that of Asset Separate by payment
 org.kuali.rice.kns.util.KualiDecimal totalPaymentByAsset(AssetGlobal assetGlobal, boolean lastEntry)
          To calculate the total payment amounts for each asset.
 

Method Detail

totalPaymentByAsset

org.kuali.rice.kns.util.KualiDecimal totalPaymentByAsset(AssetGlobal assetGlobal,
                                                         boolean lastEntry)
To calculate the total payment amounts for each asset. lastEntry is used to handle decimal rounding. When calculate the entries except the last one, divide total by number of assets. When calculate the lastEntry, first sum asset total amount for assets except the last one, then subtract the sum from total.

Parameters:
assetGlobal -
lastEntry -
Returns:

existsInGroup

boolean existsInGroup(String groupName,
                      String memberName)
This method checks if member exists in the given group.

Parameters:
groupName -
memberName -
Returns:

createGLPostables

void createGLPostables(AssetGlobal assetGlobal,
                       CamsGeneralLedgerPendingEntrySourceBase assetGlobalGlPoster)
Creates GL Postables


isAssetSeparate

boolean isAssetSeparate(AssetGlobal assetGlobal)
Validates if the document type matches that of Asset Separate.

Parameters:
assetGlobal -
Returns:
boolean

isAssetSeparateByPayment

boolean isAssetSeparateByPayment(AssetGlobal assetGlobal)
Validates if the document type matches that of Asset Separate by payment

Parameters:
assetGlobal -
Returns:
boolean

getUniqueAssetsTotalAmount

org.kuali.rice.kns.util.KualiDecimal getUniqueAssetsTotalAmount(AssetGlobal assetGlobal)
Add and return the total amount for all unique assets created.

Parameters:
assetGlobal -
Returns:
KualiDecimal

getCreateNewAssets

List<org.kuali.rice.kns.bo.PersistableBusinessObject> getCreateNewAssets(AssetGlobal assetGlobal)
Returns assets for save for create new assets

Parameters:
assetGlobal -
Returns:

getSeparateAssets

List<org.kuali.rice.kns.bo.PersistableBusinessObject> getSeparateAssets(AssetGlobal assetGlobal)
Returns assets for save for asset separate

Parameters:
assetGlobal -
Returns:

getNewAcquisitionTypeCode

String getNewAcquisitionTypeCode()
Returns:
the parameter value for the new acquisition type code

getCapitalObjectAcquisitionCodeGroup

String getCapitalObjectAcquisitionCodeGroup()
Returns:
the parameter value for the capital object acquisition code group

getNonNewAcquisitionCodeGroup

String getNonNewAcquisitionCodeGroup()
Returns:
the parameter value for the not new acquisition code group


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