org.kuali.kfs.module.cg.document
Class ProposalMaintainableImpl

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

public class ProposalMaintainableImpl
extends FinancialSystemMaintainable

Methods for the Proposal maintenance document UI.

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
ProposalMaintainableImpl()
           
ProposalMaintainableImpl(Proposal proposal)
          Constructs a new ProposalMaintainableImpl from an existing Proposal.
 
Method Summary
 void addNewLineToCollection(String collectionName)
          called for refreshing the Subcontractor on ProposalSubcontractor before adding to the ProposalSubcontractors collection on the proposal.
 Proposal getProposal()
          Gets the Proposal
 void prepareForSave()
           This method is called for refreshing the Agency before a save to display the full name in case the agency number was changed by hand just before the save.
 void processAfterCopy(org.kuali.rice.kns.document.MaintenanceDocument document, Map<String,String[]> parameters)
          Use a new proposal number when creating a copy.
 void processAfterRetrieve()
          This method is called for refreshing the Agency before display to show the full name in case the agency number was changed by hand before any submit that causes a redisplay.
 void refresh(String refreshCaller, Map fieldValues, org.kuali.rice.kns.document.MaintenanceDocument document)
          This method is called for refreshing the Agency and other related BOs after a lookup, to display their full name & etc without AJAX.
 void setGenerateDefaultValues(String docTypeName)
          This is a hook for initializing the BO from the maintenance framework.
 
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, 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, getSections, getShowInactiveRecords, getWorkflowEngineDocumentIdsToLock, hasBusinessObjectExisted, initNewCollectionLine, isBoNotesEnabled, isExternalBusinessObject, isOldBusinessObjectInDocument, isRelationshipRefreshable, performCollectionForceUpperCase, performFieldForceUpperCase, performFieldForceUpperCase, performForceUpperCase, populateBusinessObject, populateNewCollectionLines, populateNewSubCollectionLines, prepareBusinessObject, prepareBusinessObjectForAdditionFromMultipleValueLookup, processAfterAddLine, processAfterEdit, processAfterNew, saveBusinessObject, setBoClass, setBusinessObject, setDocumentNumber, setGenerateBlankRequiredValues, 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

ProposalMaintainableImpl

public ProposalMaintainableImpl()

ProposalMaintainableImpl

public ProposalMaintainableImpl(Proposal proposal)
Constructs a new ProposalMaintainableImpl from an existing Proposal.

Parameters:
proposal -
Method Detail

processAfterCopy

public void processAfterCopy(org.kuali.rice.kns.document.MaintenanceDocument document,
                             Map<String,String[]> parameters)
Use a new proposal number when creating a copy.

Specified by:
processAfterCopy in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
processAfterCopy in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl

processAfterRetrieve

public void processAfterRetrieve()
This method is called for refreshing the Agency before display to show the full name in case the agency number was changed by hand before any submit that causes a redisplay.

Specified by:
processAfterRetrieve in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
processAfterRetrieve in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl

prepareForSave

public void prepareForSave()

This method is called for refreshing the Agency before a save to display the full name in case the agency number was changed by hand just before the save. Also, if there is only one ProjectDirector, then this method defaults it to be primary. This method can change data, unlike the rules. It is run before the rules.

This default primary is limited to save actions (including route, etc) so that when the user adds multiple ProjectDirectors the first one added doesn't default to primary (so the user must choose).

Specified by:
prepareForSave in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
prepareForSave in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl

refresh

public void refresh(String refreshCaller,
                    Map fieldValues,
                    org.kuali.rice.kns.document.MaintenanceDocument document)
This method is called for refreshing the Agency and other related BOs after a lookup, to display their full name & etc without AJAX.

Specified by:
refresh in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
refresh in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
Parameters:
refreshCaller -
fieldValues -
document -

setGenerateDefaultValues

public void setGenerateDefaultValues(String docTypeName)
This is a hook for initializing the BO from the maintenance framework. It initializes the ResearchRiskTypes collection.

Specified by:
setGenerateDefaultValues in interface org.kuali.rice.kns.maintenance.Maintainable
Overrides:
setGenerateDefaultValues in class org.kuali.rice.kns.maintenance.KualiMaintainableImpl
Parameters:
generateDefaultValues - true for initialization

getProposal

public Proposal getProposal()
Gets the Proposal

Returns:

addNewLineToCollection

public void addNewLineToCollection(String collectionName)
called for refreshing the Subcontractor on ProposalSubcontractor before adding to the ProposalSubcontractors collection on the proposal. this is to ensure that the summary fields are shown correctly. i.e. Subcontractor name

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)


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