org.kuali.kfs.coa.document
Class OrganizationReversionGlobalMaintainableImpl

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.coa.document.OrganizationReversionGlobalMaintainableImpl
All Implemented Interfaces:
Serializable, org.kuali.rice.kns.lookup.SelectiveReferenceRefresher, org.kuali.rice.kns.maintenance.Maintainable

public class OrganizationReversionGlobalMaintainableImpl
extends FinancialSystemGlobalMaintainable

This class provides some specific functionality for the OrganizationReversionGlobal maintenance document inner class for doing comparisons on OrganizationReversionCategory generateMaintenanceLocks - generates the appropriate maintenance locks on OrganizationReversion setBusinessObject - populates the OrganizationReversionGlobalDetails isRelationshipRefreshable - makes sure that organizationReversionGlobalDetails isn't wiped out accidentally processGlobalsAfterRetrieve - provides special handling for the details (which aren't a true collection)

See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger LOG
           
 
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
OrganizationReversionGlobalMaintainableImpl()
           
 
Method Summary
 List<org.kuali.rice.kns.document.MaintenanceLock> generateMaintenanceLocks()
          This implementation locks all organization reversions that would be accessed by this global organization reversion.
 Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObject> getPrimaryEditedBusinessObjectClass()
           
protected  boolean isRelationshipRefreshable(Class boClass, String relationshipName)
          Prevents Organization Reversion Change Details from being refreshed by a look up (because doing that refresh before a save would wipe out the list of organization reversion change details).
protected  void processGlobalsAfterRetrieve()
          The org reversion detail collection does not behave like a true collection (no add lines).
 void setBusinessObject(org.kuali.rice.kns.bo.PersistableBusinessObject businessObject)
          Just like OrganizationReversionMaintainableImpl's setBusinessObject method populates the list of details so there is one detail per active Organization Reversion Category, this method populates a list of Organization Reversion Change details.
 
Methods inherited from class org.kuali.kfs.sys.document.FinancialSystemGlobalMaintainable
answerSplitNodeQuestion, populateChartOfAccountsCodeFields, processAfterPost, processBeforeAddLine, refreshReferences
 
Methods inherited from class org.kuali.rice.kns.maintenance.KualiGlobalMaintainableImpl
prepareForSave, prepareGlobalsForSave, processAfterRetrieve, saveBusinessObject
 
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, getLockingDocumentId, getMaintainableTitle, getMaintenanceAction, getMaintenanceDocumentDictionaryService, getMaintenanceDocumentService, getMultiValueIdentifierList, getNewCollectionLine, getPersistenceStructureService, getPersonService, getSections, getShowInactiveRecords, getWorkflowEngineDocumentIdsToLock, hasBusinessObjectExisted, initNewCollectionLine, isBoNotesEnabled, isExternalBusinessObject, isOldBusinessObjectInDocument, performCollectionForceUpperCase, performFieldForceUpperCase, performFieldForceUpperCase, performForceUpperCase, populateBusinessObject, populateNewCollectionLines, populateNewSubCollectionLines, prepareBusinessObject, prepareBusinessObjectForAdditionFromMultipleValueLookup, processAfterAddLine, processAfterCopy, processAfterEdit, processAfterNew, refresh, setBoClass, 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
 

Field Detail

LOG

protected static org.apache.log4j.Logger LOG
Constructor Detail

OrganizationReversionGlobalMaintainableImpl

public OrganizationReversionGlobalMaintainableImpl()
Method Detail

generateMaintenanceLocks

public List<org.kuali.rice.kns.document.MaintenanceLock> generateMaintenanceLocks()
This implementation locks all organization reversions that would be accessed by this global organization reversion. It does not lock any OrganizationReversionDetail objects, as we expect that those will be inaccessible

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

setBusinessObject

public void setBusinessObject(org.kuali.rice.kns.bo.PersistableBusinessObject businessObject)
Just like OrganizationReversionMaintainableImpl's setBusinessObject method populates the list of details so there is one detail per active Organization Reversion Category, this method populates a list of Organization Reversion Change details.

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

isRelationshipRefreshable

protected boolean isRelationshipRefreshable(Class boClass,
                                            String relationshipName)
Prevents Organization Reversion Change Details from being refreshed by a look up (because doing that refresh before a save would wipe out the list of organization reversion change details).

Overrides:
isRelationshipRefreshable in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
See Also:
KualiMaintainableImpl.isRelationshipRefreshable(java.lang.Class, java.lang.String)

processGlobalsAfterRetrieve

protected void processGlobalsAfterRetrieve()
The org reversion detail collection does not behave like a true collection (no add lines). The records on the collection should not have the delete option.

Overrides:
processGlobalsAfterRetrieve in class org.kuali.rice.kns.maintenance.KualiGlobalMaintainableImpl
See Also:
KualiGlobalMaintainableImpl.processGlobalsAfterRetrieve()

getPrimaryEditedBusinessObjectClass

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


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