org.kuali.kfs.module.cam.document
Class AssetGlobalMaintainableImpl

java.lang.Object
  extended by org.kuali.rice.kns.maintenance.KualiMaintainableImpl
      extended by org.kuali.rice.kns.maintenance.KualiGlobalMaintainableImpl
          extended by org.kuali.kfs.sys.document.FinancialSystemGlobalMaintainable
              extended by org.kuali.kfs.sys.document.LedgerPostingMaintainable
                  extended by org.kuali.kfs.module.cam.document.AssetGlobalMaintainableImpl
All Implemented Interfaces:
Serializable, org.kuali.rice.kns.lookup.SelectiveReferenceRefresher, org.kuali.rice.kns.maintenance.Maintainable

public class AssetGlobalMaintainableImpl
extends LedgerPostingMaintainable

This class overrides the base KualiGlobalMaintainableImpl to generate the specific maintenance locks for Global assets

See Also:
Serialized Form

Field Summary
protected static String REQUIRES_REVIEW
           
 
Fields inherited from class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
boClass, businessObject, businessObjectAuthorizationService, businessObjectDictionaryService, businessObjectMetaDataService, businessObjectService, dataDictionaryService, docTypeName, documentHelperService, documentNumber, encryptionService, inactiveRecordDisplay, maintenanceAction, maintenanceDocumentDictionaryService, maintenanceDocumentService, newCollectionLines, persistenceStructureService, personService
 
Constructor Summary
AssetGlobalMaintainableImpl()
           
 
Method Summary
 void addNewLineToCollection(String collectionName)
          Hook for quantity and setting asset numbers.
protected  boolean answerSplitNodeQuestion(String nodeName)
          If the Add Asset Global document is submit from CAB, bypass all the approvers.
 void doRouteStatusChange(org.kuali.rice.kns.bo.DocumentHeader documentHeader)
           
 List<org.kuali.rice.kns.document.MaintenanceLock> generateMaintenanceLocks()
          We are using a substitute mechanism for asset locking which can lock on assets when rule check passed.
protected  CapitalAssetManagementModuleService getCapitalAssetManagementModuleService()
           
 Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObject> getPrimaryEditedBusinessObjectClass()
           
 List<Long> getWorkflowEngineDocumentIdsToLock()
          Lock on purchase order document since post processor will update PO document by adding notes.
protected  boolean isAccountAndOrganizationReviewRequired()
          check whether or not isCapitalAssetBuilderOriginIndicator
 void prepareForSave()
           
 void processAfterNew(org.kuali.rice.kns.document.MaintenanceDocument document, Map<String,String[]> parameters)
          Get Asset from AssetGlobal
 void processAfterPost(org.kuali.rice.kns.document.MaintenanceDocument document, Map<String,String[]> parameters)
           
 void processAfterRetrieve()
           
protected  void recalculateTotalAmount(AssetGlobal assetGlobal)
          Recalculate amounts in the Recalculate Total Amount Tab
 void setEqualSeparateSourceAmounts(org.kuali.rice.kns.util.KualiDecimal[] equalSourceAmountsArray, AssetGlobal assetGlobal)
          Separates the current asset amount equally into new unique assets.
 void setGenerateDefaultValues(String docTypeName)
           
 void setupNewFromExisting(org.kuali.rice.kns.document.MaintenanceDocument document, Map<String,String[]> parameters)
           
 
Methods inherited from class org.kuali.kfs.sys.document.FinancialSystemGlobalMaintainable
populateChartOfAccountsCodeFields, processBeforeAddLine, refreshReferences
 
Methods inherited from class org.kuali.rice.kns.maintenance.KualiGlobalMaintainableImpl
prepareGlobalsForSave, processGlobalsAfterRetrieve, saveBusinessObject
 
Methods inherited from class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
addMultipleValueLookupResults, clearBusinessObjectOfRestrictedValues, clearCollectionRestrictedValues, clearFieldRestrictedValues, decryptEncryptedData, deleteBusinessObject, generateAllAffectedReferences, getAffectedReferencesFromLookup, getAllRefreshableReferences, getBoClass, getBusinessObject, getBusinessObjectAuthorizationService, getBusinessObjectDictionaryService, getBusinessObjectMetaDataService, getBusinessObjectService, getCoreSections, getCustomLockDescriptor, getDataDictionaryService, getDocumentHelperService, getDocumentTitle, getDocumentTypeName, getDuplicateIdentifierFieldsFromDataDictionary, getEncryptionService, getInactiveRecordDisplay, getLockingDocumentId, getMaintainableTitle, getMaintenanceAction, getMaintenanceDocumentDictionaryService, getMaintenanceDocumentService, getMultiValueIdentifierList, getNewCollectionLine, getPersistenceStructureService, getPersonService, getSections, getShowInactiveRecords, hasBusinessObjectExisted, initNewCollectionLine, isBoNotesEnabled, isExternalBusinessObject, isOldBusinessObjectInDocument, isRelationshipRefreshable, performCollectionForceUpperCase, performFieldForceUpperCase, performFieldForceUpperCase, performForceUpperCase, populateBusinessObject, populateNewCollectionLines, populateNewSubCollectionLines, prepareBusinessObject, prepareBusinessObjectForAdditionFromMultipleValueLookup, processAfterAddLine, processAfterCopy, processAfterEdit, refresh, setBoClass, setBusinessObject, setDocumentNumber, setGenerateBlankRequiredValues, setMaintenanceAction, setNewCollectionLineDefaultValues, setShowInactiveRecords, shouldFieldBeEncrypted, useCustomLockDescriptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUIRES_REVIEW

protected static final String REQUIRES_REVIEW
See Also:
Constant Field Values
Constructor Detail

AssetGlobalMaintainableImpl

public AssetGlobalMaintainableImpl()
Method Detail

getWorkflowEngineDocumentIdsToLock

public List<Long> getWorkflowEngineDocumentIdsToLock()
Lock on purchase order document since post processor will update PO document by adding notes.

Specified by:
getWorkflowEngineDocumentIdsToLock in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
getWorkflowEngineDocumentIdsToLock in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
See Also:
KualiMaintainableImpl.getWorkflowEngineDocumentIdsToLock()

answerSplitNodeQuestion

protected boolean answerSplitNodeQuestion(String nodeName)
                                   throws UnsupportedOperationException
If the Add Asset Global document is submit from CAB, bypass all the approvers.

Overrides:
answerSplitNodeQuestion in class FinancialSystemGlobalMaintainable
Throws:
UnsupportedOperationException

isAccountAndOrganizationReviewRequired

protected boolean isAccountAndOrganizationReviewRequired()
check whether or not isCapitalAssetBuilderOriginIndicator


processAfterNew

public void processAfterNew(org.kuali.rice.kns.document.MaintenanceDocument document,
                            Map<String,String[]> parameters)
Get Asset from AssetGlobal

Specified by:
processAfterNew in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
processAfterNew in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
See Also:
KualiMaintainableImpl.processAfterNew(org.kuali.rice.kns.document.MaintenanceDocument, java.util.Map)

setGenerateDefaultValues

public void setGenerateDefaultValues(String docTypeName)
Specified by:
setGenerateDefaultValues in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
setGenerateDefaultValues in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl

setupNewFromExisting

public void setupNewFromExisting(org.kuali.rice.kns.document.MaintenanceDocument document,
                                 Map<String,String[]> parameters)
Specified by:
setupNewFromExisting in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
setupNewFromExisting in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl

addNewLineToCollection

public void addNewLineToCollection(String collectionName)
Hook for quantity and setting asset numbers.

Specified by:
addNewLineToCollection in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
addNewLineToCollection in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
See Also:
KualiMaintainableImpl.addNewLineToCollection(java.lang.String)

generateMaintenanceLocks

public List<org.kuali.rice.kns.document.MaintenanceLock> generateMaintenanceLocks()
We are using a substitute mechanism for asset locking which can lock on assets when rule check passed. Return empty list from this method.

Specified by:
generateMaintenanceLocks in interface org.kuali.rice.kns.maintenance.Maintainable
Specified by:
generateMaintenanceLocks in class org.kuali.rice.kns.maintenance.KualiGlobalMaintainableImpl
See Also:
Maintainable.generateMaintenanceLocks()

getCapitalAssetManagementModuleService

protected CapitalAssetManagementModuleService getCapitalAssetManagementModuleService()

prepareForSave

public void prepareForSave()
Specified by:
prepareForSave in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
prepareForSave in class org.kuali.rice.kns.maintenance.KualiGlobalMaintainableImpl
See Also:
KualiGlobalMaintainableImpl.prepareForSave()

processAfterRetrieve

public void processAfterRetrieve()
Specified by:
processAfterRetrieve in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
processAfterRetrieve in class org.kuali.rice.kns.maintenance.KualiGlobalMaintainableImpl
See Also:
KualiGlobalMaintainableImpl.processAfterRetrieve()

processAfterPost

public void processAfterPost(org.kuali.rice.kns.document.MaintenanceDocument document,
                             Map<String,String[]> parameters)
Specified by:
processAfterPost in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
processAfterPost in class FinancialSystemGlobalMaintainable
See Also:
KualiMaintainableImpl.processAfterPost(org.kuali.rice.kns.document.MaintenanceDocument, java.util.Map)

recalculateTotalAmount

protected void recalculateTotalAmount(AssetGlobal assetGlobal)
Recalculate amounts in the Recalculate Total Amount Tab

Parameters:
assetGlobal -

setEqualSeparateSourceAmounts

public void setEqualSeparateSourceAmounts(org.kuali.rice.kns.util.KualiDecimal[] equalSourceAmountsArray,
                                          AssetGlobal assetGlobal)
Separates the current asset amount equally into new unique assets.

Parameters:
kualiDecimalArray -
assetGlobal -

doRouteStatusChange

public void doRouteStatusChange(org.kuali.rice.kns.bo.DocumentHeader documentHeader)
Specified by:
doRouteStatusChange in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
doRouteStatusChange in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
See Also:
KualiMaintainableImpl.doRouteStatusChange(org.kuali.rice.kns.bo.DocumentHeader)

getPrimaryEditedBusinessObjectClass

public Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObject> getPrimaryEditedBusinessObjectClass()
Specified by:
getPrimaryEditedBusinessObjectClass in class org.kuali.rice.kns.maintenance.KualiGlobalMaintainableImpl
See Also:
KualiGlobalMaintainableImpl.getPrimaryEditedBusinessObjectClass()


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