org.kuali.kfs.coa.document.validation.impl
Class ObjectCodePreRules
java.lang.Object
org.kuali.rice.kns.rules.PromptBeforeValidationBase
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 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, 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 |
LOG
protected static org.apache.log4j.Logger LOG
chartService
protected static ChartService chartService
objectLevelService
protected static ObjectLevelService objectLevelService
reportsTo
protected Map reportsTo
ObjectCodePreRules
public ObjectCodePreRules()
- Constructs a ObjectCodePreRules
Pseudo-injects services and populates the reportsTo hierarchy
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.