org.kuali.kfs.coa.document
Class AccountDelegateMaintainableImpl

java.lang.Object
  extended by org.kuali.rice.kns.maintenance.KualiMaintainableImpl
      extended by org.kuali.kfs.sys.document.FinancialSystemMaintainable
          extended by org.kuali.kfs.coa.document.AccountDelegateMaintainableImpl
All Implemented Interfaces:
Serializable, org.kuali.rice.kns.lookup.SelectiveReferenceRefresher, org.kuali.rice.kns.maintenance.Maintainable

public class AccountDelegateMaintainableImpl
extends FinancialSystemMaintainable

This class is a special implementation of Maintainable specifically for Account Delegates. It was created to correctly update the default Start Date on edits and copies, ala JIRA #KULRNE-62.

See Also:
Serialized Form

Field Summary
 
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
AccountDelegateMaintainableImpl()
           
 
Method Summary
 org.kuali.rice.kns.document.MaintenanceLock createGlobalAccountLock()
          This method created a MaintenanceLock for the chartOfAccountsCode and accountNumber for an AccountDelegateGlobal.
protected  String createLockingRepresentation(String[] fieldNames)
          This method create a locking representation for the field names supplied
protected  org.kuali.rice.kns.document.MaintenanceLock createMaintenanceLock(String[] fieldNames)
          This method creates a maintenance lock for the field names supplied
 List<org.kuali.rice.kns.document.MaintenanceLock> generateMaintenanceLocks()
          Generates the appropriate maintenance locks for the Delegate
 String getLockingDocumentId()
           
 void processAfterCopy(org.kuali.rice.kns.document.MaintenanceDocument document, Map<String,String[]> parameters)
          This method will reset AccountDelegate's Start Date to the current timestamp on edits and copies
 void processAfterEdit(org.kuali.rice.kns.document.MaintenanceDocument document, Map<String,String[]> parameters)
          This method will reset AccountDelegate's Start Date to the current timestamp on edits and copies
protected  String retrieveFieldValueForLock(String fieldName, org.kuali.rice.kns.service.DataDictionaryService ddService, org.kuali.rice.core.service.EncryptionService encryptionService)
          This method returns the field value of a given field, converting the value to a String and encrypting it if necessary
 void saveBusinessObject()
          Overridden so that after account delegate is saved, it updates the proper account delegate role Defers saving to a service to guarantee that the delegate saves in a separate transaction
protected  void setStartDateDefault()
          This method sets the start date on Delegate BO
 
Methods inherited from class org.kuali.kfs.sys.document.FinancialSystemMaintainable
answerSplitNodeQuestion, populateChartOfAccountsCodeFields, processAfterPost, processBeforeAddLine, refreshReferences
 
Methods inherited from class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
addMultipleValueLookupResults, addNewLineToCollection, clearBusinessObjectOfRestrictedValues, clearCollectionRestrictedValues, clearFieldRestrictedValues, decryptEncryptedData, deleteBusinessObject, doRouteStatusChange, generateAllAffectedReferences, getAffectedReferencesFromLookup, getAllRefreshableReferences, getBoClass, getBusinessObject, getBusinessObjectAuthorizationService, getBusinessObjectDictionaryService, getBusinessObjectMetaDataService, getBusinessObjectService, getCoreSections, getCustomLockDescriptor, getDataDictionaryService, getDocumentHelperService, getDocumentTitle, getDocumentTypeName, getDuplicateIdentifierFieldsFromDataDictionary, getEncryptionService, getInactiveRecordDisplay, getMaintainableTitle, getMaintenanceAction, getMaintenanceDocumentDictionaryService, getMaintenanceDocumentService, getMultiValueIdentifierList, getNewCollectionLine, getPersistenceStructureService, getPersonService, getSections, getShowInactiveRecords, getWorkflowEngineDocumentIdsToLock, hasBusinessObjectExisted, initNewCollectionLine, isBoNotesEnabled, isExternalBusinessObject, isOldBusinessObjectInDocument, isRelationshipRefreshable, performCollectionForceUpperCase, performFieldForceUpperCase, performFieldForceUpperCase, performForceUpperCase, populateBusinessObject, populateNewCollectionLines, populateNewSubCollectionLines, prepareBusinessObject, prepareBusinessObjectForAdditionFromMultipleValueLookup, prepareForSave, processAfterAddLine, processAfterNew, processAfterRetrieve, refresh, setBoClass, setBusinessObject, setDocumentNumber, setGenerateBlankRequiredValues, setGenerateDefaultValues, setMaintenanceAction, setNewCollectionLineDefaultValues, setShowInactiveRecords, setupNewFromExisting, shouldFieldBeEncrypted, useCustomLockDescriptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountDelegateMaintainableImpl

public AccountDelegateMaintainableImpl()
Method Detail

processAfterCopy

public void processAfterCopy(org.kuali.rice.kns.document.MaintenanceDocument document,
                             Map<String,String[]> parameters)
This method will reset AccountDelegate's Start Date to the current timestamp on edits and copies

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

processAfterEdit

public void processAfterEdit(org.kuali.rice.kns.document.MaintenanceDocument document,
                             Map<String,String[]> parameters)
This method will reset AccountDelegate's Start Date to the current timestamp on edits and copies

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

setStartDateDefault

protected void setStartDateDefault()
This method sets the start date on Delegate BO


generateMaintenanceLocks

public List<org.kuali.rice.kns.document.MaintenanceLock> generateMaintenanceLocks()
Generates the appropriate maintenance locks for the Delegate

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

getLockingDocumentId

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

createMaintenanceLock

protected org.kuali.rice.kns.document.MaintenanceLock createMaintenanceLock(String[] fieldNames)
This method creates a maintenance lock for the field names supplied

Parameters:
fieldNames -
Returns:
the maintenance lock for supplied field names

createLockingRepresentation

protected String createLockingRepresentation(String[] fieldNames)
This method create a locking representation for the field names supplied

Parameters:
fieldNames -
Returns:
locking representation string

retrieveFieldValueForLock

protected String retrieveFieldValueForLock(String fieldName,
                                           org.kuali.rice.kns.service.DataDictionaryService ddService,
                                           org.kuali.rice.core.service.EncryptionService encryptionService)
This method returns the field value of a given field, converting the value to a String and encrypting it if necessary

Parameters:
fieldName -
ddService -
Returns:
string field value for a lock

createGlobalAccountLock

public org.kuali.rice.kns.document.MaintenanceLock createGlobalAccountLock()
This method created a MaintenanceLock for the chartOfAccountsCode and accountNumber for an AccountDelegateGlobal.

Returns:
the MainenanceLock

saveBusinessObject

public void saveBusinessObject()
Overridden so that after account delegate is saved, it updates the proper account delegate role Defers saving to a service to guarantee that the delegate saves in a separate transaction

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


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