org.kuali.kfs.module.cam.service.impl
Class CapitalAssetManagementModuleServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.cam.service.impl.CapitalAssetManagementModuleServiceImpl
All Implemented Interfaces:
CapitalAssetManagementModuleService

public class CapitalAssetManagementModuleServiceImpl
extends Object
implements CapitalAssetManagementModuleService


Constructor Summary
CapitalAssetManagementModuleServiceImpl()
           
 
Method Summary
 void deleteAssetLocks(String documentNumber, String lockingInformation)
          Delete AssetLocks by document number and lockingInfomation for PurAp doc only.
 void deleteDocumentAssetLocks(org.kuali.rice.kns.document.Document document)
          Deletes the asset locks associated with a particular document
 void generateCapitalAssetLock(org.kuali.rice.kns.document.Document document, String documentTypeName)
          Creates the locks for each asset on a documents
protected  AssetLockService getAssetLockService()
           
protected  boolean isAccountLineEligibleForCABBatch(List<String> includedFinancialObjectSubTypeCodes, List<String> excludedChartCodes, List<String> excludedSubFundCodes, AccountingLineBase accountingLine)
          This method check if accounting line eligible for CAB batch taking into CAB
 boolean isAssetLocked(List<Long> assetNumbers, String documentTypeName, String excludingDocumentNumber)
          Check if the given asset Numbers are locked by other documents already.
 boolean isAssetLockedByCurrentDocument(String documentNumber, String lockingInformation)
          Check if the given document hold any asset locks.
 boolean isFpDocumentEligibleForAssetLock(AccountingDocument accountingDocument, String documentType)
          FP document eligible for asset lock when any of its accounting line is taken into CAB during CAB batch.
 boolean storeAssetLocks(List<Long> capitalAssetNumbers, String documentNumber, String documentType, String lockingInformation)
          Check and store AssetLocks if they are not locked by other blocking documents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapitalAssetManagementModuleServiceImpl

public CapitalAssetManagementModuleServiceImpl()
Method Detail

storeAssetLocks

public boolean storeAssetLocks(List<Long> capitalAssetNumbers,
                               String documentNumber,
                               String documentType,
                               String lockingInformation)
Description copied from interface: CapitalAssetManagementModuleService
Check and store AssetLocks if they are not locked by other blocking documents. Either store all of the asset locks or none of them being stored in case of dead lock. If any of the asset is blocked, the error message will be built including link(s) to the blocking document(s).

Specified by:
storeAssetLocks in interface CapitalAssetManagementModuleService
Returns:
return true if all of the asset locks can be granted.
See Also:
CapitalAssetManagementModuleService.storeAssetLocks(java.util.List, java.lang.String, java.lang.String, java.lang.String)

deleteAssetLocks

public void deleteAssetLocks(String documentNumber,
                             String lockingInformation)
Description copied from interface: CapitalAssetManagementModuleService
Delete AssetLocks by document number and lockingInfomation for PurAp doc only.

Specified by:
deleteAssetLocks in interface CapitalAssetManagementModuleService
See Also:
CapitalAssetManagementModuleService.deleteAssetLocks(java.lang.String, java.lang.String)

getAssetLockService

protected AssetLockService getAssetLockService()

isAssetLockedByCurrentDocument

public boolean isAssetLockedByCurrentDocument(String documentNumber,
                                              String lockingInformation)
Description copied from interface: CapitalAssetManagementModuleService
Check if the given document hold any asset locks.

Specified by:
isAssetLockedByCurrentDocument in interface CapitalAssetManagementModuleService
Returns:
See Also:
org.kuali.kfs.integration.cam.CapitalAssetManagementModuleService#isAssetLockedByDocument(java.lang.String, java.lang.String)

isAssetLocked

public boolean isAssetLocked(List<Long> assetNumbers,
                             String documentTypeName,
                             String excludingDocumentNumber)
Description copied from interface: CapitalAssetManagementModuleService
Check if the given asset Numbers are locked by other documents already.

Specified by:
isAssetLocked in interface CapitalAssetManagementModuleService
Returns:
See Also:
CapitalAssetManagementModuleService.isAssetLocked(java.util.List, java.lang.String, java.lang.String)

generateCapitalAssetLock

public void generateCapitalAssetLock(org.kuali.rice.kns.document.Document document,
                                     String documentTypeName)
Description copied from interface: CapitalAssetManagementModuleService
Creates the locks for each asset on a documents

Specified by:
generateCapitalAssetLock in interface CapitalAssetManagementModuleService
See Also:
org.kuali.kfs.integration.cam.CapitalAssetManagementModuleService#generateCapitalAssetLock(org.kuali.rice.kns.document.Document)

isFpDocumentEligibleForAssetLock

public boolean isFpDocumentEligibleForAssetLock(AccountingDocument accountingDocument,
                                                String documentType)
FP document eligible for asset lock when any of its accounting line is taken into CAB during CAB batch.

Specified by:
isFpDocumentEligibleForAssetLock in interface CapitalAssetManagementModuleService
Parameters:
accountingDocument -
Returns:

isAccountLineEligibleForCABBatch

protected boolean isAccountLineEligibleForCABBatch(List<String> includedFinancialObjectSubTypeCodes,
                                                   List<String> excludedChartCodes,
                                                   List<String> excludedSubFundCodes,
                                                   AccountingLineBase accountingLine)
This method check if accounting line eligible for CAB batch taking into CAB

Parameters:
includedFinancialBalanceTypeCodes -
includedFinancialObjectSubTypeCodes -
excludedChartCodes -
excludedDocTypeCodes -
excludedSubFundCodes -
accountingLine -
Returns:

deleteDocumentAssetLocks

public void deleteDocumentAssetLocks(org.kuali.rice.kns.document.Document document)
Description copied from interface: CapitalAssetManagementModuleService
Deletes the asset locks associated with a particular document

Specified by:
deleteDocumentAssetLocks in interface CapitalAssetManagementModuleService
See Also:
CapitalAssetManagementModuleService.deleteDocumentAssetLocks(org.kuali.rice.kns.document.Document)


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