org.kuali.kfs.coa.document.validation.impl
Class OrganizationReversionPreRules

java.lang.Object
  extended by org.kuali.rice.kns.rules.PromptBeforeValidationBase
      extended by org.kuali.kfs.coa.document.validation.impl.MaintenancePreRulesBase
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession
 
Field Summary
 
Fields inherited from class org.kuali.kfs.coa.document.validation.impl.MaintenancePreRulesBase
accountService, configService
 
Fields inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase
buttonClicked, event, form, LOG, question
 
Constructor Summary
OrganizationReversionPreRules()
           
 
Method Summary
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
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
protected  boolean doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument document)
          This calls the copyKeyAttributesToDetail(OrganizationReversion)
 
Methods inherited from class org.kuali.kfs.coa.document.validation.impl.MaintenancePreRulesBase
buildContinuationConfirmationQuestion, checkForContinuationAccount, checkForContinuationAccount, doPrompts, getAccountService, getConfigService, setAccountService, setConfigService
 
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
 

Constructor Detail

OrganizationReversionPreRules

public OrganizationReversionPreRules()
Method Detail

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.