org.kuali.kfs.coa.document
Class OrganizationReversionMaintainableImpl

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

public class OrganizationReversionMaintainableImpl
extends FinancialSystemMaintainable

This class provides some specific functionality for the OrganizationReversion maintenance document inner class for doing comparisons on OrganizationReversionCategory populateBusinessObject setBusinessObject - pre-populate the static list of details with each category isRelationshipRefreshable - makes sure that organizationReversionGlobalDetails isn't wiped out accidentally

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
OrganizationReversionMaintainableImpl()
           
 
Method Summary
 List getSections(org.kuali.rice.kns.document.MaintenanceDocument document, org.kuali.rice.kns.maintenance.Maintainable oldMaintainable)
           
protected  boolean isActivatingOrganizationReversion()
          Determines if this maint doc is activating an organization reversion
protected  boolean isInactivatingOrganizationReversion()
          Determines if this maint doc is inactivating an organization reversion
protected  boolean isRelationshipRefreshable(Class boClass, String relationshipName)
          A method that prevents lookups from refreshing the Organization Reversion Detail list (because, if it is refreshed before a save...it ends up destroying the list).
protected  OrganizationReversion retrieveExistingOrganizationReversion()
          Grabs the old version of this org reversion from the database
 void saveBusinessObject()
          Overridden to trickle down inactivation or activation to details
 void setBusinessObject(org.kuali.rice.kns.bo.PersistableBusinessObject businessObject)
          pre-populate the static list of details with each category
protected  boolean shouldIncludeField(org.kuali.rice.kns.web.ui.Field field)
          Determines if the given field should be included in the updated row, once we take out inactive categories
 
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, generateMaintenanceLocks, 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, getShowInactiveRecords, getWorkflowEngineDocumentIdsToLock, hasBusinessObjectExisted, initNewCollectionLine, isBoNotesEnabled, isExternalBusinessObject, isOldBusinessObjectInDocument, performCollectionForceUpperCase, performFieldForceUpperCase, performFieldForceUpperCase, performForceUpperCase, populateBusinessObject, populateNewCollectionLines, populateNewSubCollectionLines, prepareBusinessObject, prepareBusinessObjectForAdditionFromMultipleValueLookup, prepareForSave, processAfterAddLine, processAfterCopy, processAfterEdit, processAfterNew, processAfterRetrieve, 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
 

Constructor Detail

OrganizationReversionMaintainableImpl

public OrganizationReversionMaintainableImpl()
Method Detail

setBusinessObject

public void setBusinessObject(org.kuali.rice.kns.bo.PersistableBusinessObject businessObject)
pre-populate the static list of details with each category

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

isRelationshipRefreshable

protected boolean isRelationshipRefreshable(Class boClass,
                                            String relationshipName)
A method that prevents lookups from refreshing the Organization Reversion Detail list (because, if it is refreshed before a save...it ends up destroying the list).

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

isInactivatingOrganizationReversion

protected boolean isInactivatingOrganizationReversion()
Determines if this maint doc is inactivating an organization reversion

Returns:
true if the document is inactivating an active organization reversion, false otherwise

isActivatingOrganizationReversion

protected boolean isActivatingOrganizationReversion()
Determines if this maint doc is activating an organization reversion

Returns:
true if the document is activating an inactive organization reversion, false otherwise

retrieveExistingOrganizationReversion

protected OrganizationReversion retrieveExistingOrganizationReversion()
Grabs the old version of this org reversion from the database

Returns:
the old version of this organization reversion

saveBusinessObject

public void saveBusinessObject()
Overridden to trickle down inactivation or activation to details

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()

getSections

public List getSections(org.kuali.rice.kns.document.MaintenanceDocument document,
                        org.kuali.rice.kns.maintenance.Maintainable oldMaintainable)
Specified by:
getSections in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
getSections in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
See Also:
KualiMaintainableImpl.getSections(org.kuali.rice.kns.document.MaintenanceDocument, org.kuali.rice.kns.maintenance.Maintainable)

shouldIncludeField

protected boolean shouldIncludeField(org.kuali.rice.kns.web.ui.Field field)
Determines if the given field should be included in the updated row, once we take out inactive categories

Parameters:
field - the field to check
Returns:
true if the field should be included (ie, it doesn't describe an organization reversion with an inactive category); false otherwise


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