org.kuali.kfs.coa.document.validation.impl
Class OrganizationReversionPreRules
java.lang.Object
org.kuali.rice.kns.rules.PromptBeforeValidationBase
org.kuali.kfs.coa.document.validation.impl.MaintenancePreRulesBase
org.kuali.kfs.coa.document.validation.impl.OrganizationReversionPreRules
- All Implemented Interfaces:
- org.kuali.rice.kns.rule.PromptBeforeValidation
public class OrganizationReversionPreRules
- extends MaintenancePreRulesBase
PreRules checks for the OrganizationReversion
that needs to occur while still in the Struts processing. This includes defaults
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 |
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 |
OrganizationReversionPreRules
public OrganizationReversionPreRules()
doCustomPreRules
protected boolean doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument document)
- This calls the
copyKeyAttributesToDetail(OrganizationReversion)
- Overrides:
doCustomPreRules
in class MaintenancePreRulesBase
- Returns:
- true if rules pass
- See Also:
MaintenancePreRulesBase.doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument)
copyKeyAttributesToDetail
protected void copyKeyAttributesToDetail(OrganizationReversion orgRev)
- This copies the chart of accounts, and the fiscal year from the parent
OrganizationReversion
to the
OrganizationReversionDetail
objects and refreshes the reference object on them if the values have
been filled out
- Parameters:
orgRev
-
copyDefaultObjectcodeIfNoCarryForwardByObjectCode
protected void copyDefaultObjectcodeIfNoCarryForwardByObjectCode(OrganizationReversion orgRev)
- This copies the object code from system parameter to the Organization Reversion object code field if the
"Carry Forward by Object Code" indicator is set to true
- Parameters:
orgRev
-
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.