public abstract class PromptBeforeValidationBase extends Object implements PromptBeforeValidation
| Modifier and Type | Class and Description | 
|---|---|
| class  | PromptBeforeValidationBase.ContextSessionThis is a description of what this class does - wliang don't forget to fill this in. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected String | buttonClicked | 
| protected PromptBeforeValidationEvent | event | 
| protected KualiForm | form | 
| protected static org.apache.log4j.Logger | LOG | 
| protected String | question | 
| Constructor and Description | 
|---|
| PromptBeforeValidationBase() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | abortRulesCheck()This bounces the user back to the document as if they had never tried to routed it. | 
| boolean | askOrAnalyzeYesNoQuestion(String id,
                         String text)This method poses a Y/N question to the user. | 
| abstract boolean | doPrompts(Document document)Implementations will override this method to do perform the actual prompting and/or logic
 
 They are able to utilize the following methods:
   abortRulesCheck()askOrAnalyzeYesNoQuestion(String, String)#hasAsked(String) | 
| boolean | processPrompts(org.apache.struts.action.ActionForm form,
              javax.servlet.http.HttpServletRequest request,
              PromptBeforeValidationEvent event)Callback method from Maintenance action that allows checks to be done and response redirected via the PreRulesCheckEvent | 
protected static org.apache.log4j.Logger LOG
protected String buttonClicked
protected PromptBeforeValidationEvent event
public PromptBeforeValidationBase()
public abstract boolean doPrompts(Document document)
abortRulesCheck()
 askOrAnalyzeYesNoQuestion(String, String)
 #hasAsked(String)document - public boolean processPrompts(org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, PromptBeforeValidationEvent event)
PromptBeforeValidationprocessPrompts in interface PromptBeforeValidationevent - stores various information necessary to render the question promptpublic void abortRulesCheck()
public boolean askOrAnalyzeYesNoQuestion(String id, String text) throws org.kuali.rice.kns.rules.PromptBeforeValidationBase.IsAskingException
id - an ID for the questiontext - the text of the question, to be displayed on the screenIsAskingException - if the user needs to be prompted the questionorg.kuali.rice.kns.rules.PromptBeforeValidationBase.IsAskingExceptionCopyright © 2005–2016 The Kuali Foundation. All rights reserved.