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

java.lang.Object
  extended by org.kuali.rice.kns.rules.PromptBeforeValidationBase
      extended by org.kuali.kfs.coa.document.validation.impl.ObjectCodePreRules
All Implemented Interfaces:
org.kuali.rice.kns.rule.PromptBeforeValidation

public class ObjectCodePreRules
extends org.kuali.rice.kns.rules.PromptBeforeValidationBase

PreRules checks for the ObjectCode 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 static ChartService chartService
           
protected static org.apache.log4j.Logger LOG
           
protected static ObjectLevelService objectLevelService
           
protected  Map reportsTo
           
 
Fields inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase
buttonClicked, event, form, question
 
Constructor Summary
ObjectCodePreRules()
          Constructs a ObjectCodePreRules Pseudo-injects services and populates the reportsTo hierarchy
 
Method Summary
 boolean doPrompts(org.kuali.rice.kns.document.Document document)
          This method forces the reports to chart on the object code to be the correct one based on the reports to hierarchy
 
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

LOG

protected static org.apache.log4j.Logger LOG

chartService

protected static ChartService chartService

objectLevelService

protected static ObjectLevelService objectLevelService

reportsTo

protected Map reportsTo
Constructor Detail

ObjectCodePreRules

public ObjectCodePreRules()
Constructs a ObjectCodePreRules Pseudo-injects services and populates the reportsTo hierarchy

Method Detail

doPrompts

public boolean doPrompts(org.kuali.rice.kns.document.Document document)
This method forces the reports to chart on the object code to be the correct one based on the reports to hierarchy

Additionally if the object level is null or inactive it confirms with the user that this is actually the object level code they wish to use

Specified by:
doPrompts in class org.kuali.rice.kns.rules.PromptBeforeValidationBase
See Also:
org.kuali.rice.kns.rules.PromptBeforeValidationBase#doRules(org.kuali.rice.kns.document.Document)


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