org.kuali.kfs.coa.document.validation.impl
Class OrgPreRules
java.lang.Object
org.kuali.rice.kns.rules.PromptBeforeValidationBase
org.kuali.kfs.coa.document.validation.impl.MaintenancePreRulesBase
org.kuali.kfs.coa.document.validation.impl.OrgPreRules
- All Implemented Interfaces:
- org.kuali.rice.kns.rule.PromptBeforeValidation
public class OrgPreRules
- extends MaintenancePreRulesBase
PreRules checks for the Org
that needs to occur while still in the Struts processing. This includes defaults,
confirmations, etc.
Nested classes/interfaces inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession |
Fields inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
buttonClicked, event, form, LOG, question |
Method Summary |
protected void |
checkForContinuationAccounts()
This looks for the org default account number and then sets the values to the continuation account value if it exists |
protected boolean |
doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument document)
This checks to see if a continuation account is necessary and if the HRMS data has changed |
protected void |
setLocationFromZip(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
This takes the org zip code and fills in state, city and country code based off of it |
protected void |
setupConvenienceObjects(org.kuali.rice.kns.document.MaintenanceDocument document)
This method sets the convenience objects like newOrg and copyOrg, so you have short and easy handles to the new and old
objects contained in the maintenance document. |
protected void |
updateHRMSUpdateDate(Organization oldData,
Organization newData)
Check if the HRMS data has changed on this document. |
Methods inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
abortRulesCheck, askOrAnalyzeYesNoQuestion, processPrompts |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newOrg
protected Organization newOrg
postalZipCodeService
protected org.kuali.rice.kns.service.PostalCodeService postalZipCodeService
OrgPreRules
public OrgPreRules()
doCustomPreRules
protected boolean doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument document)
- This checks to see if a continuation account is necessary and if the HRMS data has changed
- Overrides:
doCustomPreRules
in class MaintenancePreRulesBase
- Returns:
- true if rules pass
- See Also:
MaintenancePreRulesBase.doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument)
checkForContinuationAccounts
protected void checkForContinuationAccounts()
- This looks for the org default account number and then sets the values to the continuation account value if it exists
setupConvenienceObjects
protected void setupConvenienceObjects(org.kuali.rice.kns.document.MaintenanceDocument document)
- This method sets the convenience objects like newOrg and copyOrg, so you have short and easy handles to the new and old
objects contained in the maintenance document. It also calls the BusinessObjectBase.refresh(), which will attempt to load all
sub-objects from the DB by their primary keys, if available.
- Parameters:
document
-
updateHRMSUpdateDate
protected void updateHRMSUpdateDate(Organization oldData,
Organization newData)
- Check if the HRMS data has changed on this document. If so, update the last update date.
- Parameters:
oldData
- newData
-
setLocationFromZip
protected void setLocationFromZip(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
- This takes the org zip code and fills in state, city and country code based off of it
- Parameters:
maintenanceDocument
-
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.