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

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.IndirectCostRecoveryRateDetailPreRules
All Implemented Interfaces:
org.kuali.rice.kns.rule.PromptBeforeValidation

public class IndirectCostRecoveryRateDetailPreRules
extends MaintenancePreRulesBase

PreRules checks for the IndirectCostRecoveryRateDetail that needs to occur while still in the Struts processing. This includes defaults, confirmations, etc.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession
 
Field Summary
protected  IndirectCostRecoveryRateDetail indirectCostRecoveryRateDetail
           
 
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
IndirectCostRecoveryRateDetailPreRules()
           
 
Method Summary
protected  void checkForContinuationAccounts()
          This method checks for continuation accounts and presents the user with a question regarding their use on this account.
protected  boolean doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument document)
          Executes the following pre rules setSubAccountToDashesIfBlank() setSubObjectToDashesIfBlank()
protected  void setSubAccountToDashesIfBlank()
          This sets the SubAccount number to padded dashes ("-") if blank
protected  void setSubObjectToDashesIfBlank()
          This sets the org.kuali.module.chart.bo.SubObjCd code to padded dashes ("-") if blank
protected  void setupConvenienceObjects(org.kuali.rice.kns.document.MaintenanceDocument document)
          This method sets the convenience objects like newAccount and oldAccount, so you have short and easy handles to the new and old objects contained in the maintenance document.
 
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
 

Field Detail

indirectCostRecoveryRateDetail

protected IndirectCostRecoveryRateDetail indirectCostRecoveryRateDetail
Constructor Detail

IndirectCostRecoveryRateDetailPreRules

public IndirectCostRecoveryRateDetailPreRules()
Method Detail

doCustomPreRules

protected boolean doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument document)
Executes the following pre rules

Overrides:
doCustomPreRules in class MaintenancePreRulesBase
Returns:
true if rules pass
See Also:
org.kuali.module.chart.rules.MaintenancePreRulesBase#doCustomPreRules(org.kuali.rice.kns.document.MaintenanceDocument)

checkForContinuationAccounts

protected void checkForContinuationAccounts()
This method checks for continuation accounts and presents the user with a question regarding their use on this account.


setSubAccountToDashesIfBlank

protected void setSubAccountToDashesIfBlank()
This sets the SubAccount number to padded dashes ("-") if blank


setSubObjectToDashesIfBlank

protected void setSubObjectToDashesIfBlank()
This sets the org.kuali.module.chart.bo.SubObjCd code to padded dashes ("-") if blank


setupConvenienceObjects

protected void setupConvenienceObjects(org.kuali.rice.kns.document.MaintenanceDocument document)
This method sets the convenience objects like newAccount and oldAccount, 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.



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