|  1 |     | 
     | 
  |  2 |     | 
     | 
  |  3 |     | 
     | 
  |  4 |     | 
     | 
  |  5 |     | 
     | 
  |  6 |     | 
     | 
  |  7 |     | 
     | 
  |  8 |     | 
     | 
  |  9 |     | 
     | 
  |  10 |     | 
     | 
  |  11 |     | 
     | 
  |  12 |     | 
     | 
  |  13 |     | 
     | 
  |  14 |     | 
     | 
  |  15 |     | 
     | 
  |  16 |     | 
   package org.kuali.rice.kns.rule.event;  | 
  |  17 |     | 
     | 
  |  18 |     | 
   import org.apache.log4j.Logger;  | 
  |  19 |     | 
   import org.kuali.rice.kns.document.Document;  | 
  |  20 |     | 
   import org.kuali.rice.kns.rule.BusinessRule;  | 
  |  21 |     | 
   import org.kuali.rice.kns.rule.PromptBeforeValidation;  | 
  |  22 |     | 
     | 
  |  23 |     | 
     | 
  |  24 |     | 
     | 
  |  25 |     | 
     | 
  |  26 |     | 
     | 
  |  27 |     | 
     | 
  |  28 |     | 
   public class PromptBeforeValidationEvent extends KualiDocumentEventBase { | 
  |  29 |    0 |        private static final Logger LOG = Logger.getLogger(PromptBeforeValidationEvent.class);  | 
  |  30 |     | 
     | 
  |  31 |     | 
       boolean performQuestion;  | 
  |  32 |     | 
       String actionForwardName;  | 
  |  33 |     | 
       String questionId;  | 
  |  34 |     | 
       String questionText;  | 
  |  35 |     | 
       String questionType;  | 
  |  36 |     | 
       String questionCaller;  | 
  |  37 |     | 
       String questionContext;  | 
  |  38 |     | 
     | 
  |  39 |     | 
     | 
  |  40 |     | 
         | 
  |  41 |     | 
     | 
  |  42 |     | 
     | 
  |  43 |     | 
     | 
  |  44 |     | 
     | 
  |  45 |     | 
       public PromptBeforeValidationEvent(String description, String errorPathPrefix, Document document) { | 
  |  46 |     | 
     | 
  |  47 |    0 |            super(description, errorPathPrefix);  | 
  |  48 |    0 |            this.document = document;  | 
  |  49 |     | 
     | 
  |  50 |    0 |            LOG.debug(description);  | 
  |  51 |     | 
     | 
  |  52 |    0 |            performQuestion = false;  | 
  |  53 |    0 |        }  | 
  |  54 |     | 
     | 
  |  55 |     | 
     | 
  |  56 |     | 
         | 
  |  57 |     | 
     | 
  |  58 |     | 
     | 
  |  59 |     | 
       public String getActionForwardName() { | 
  |  60 |    0 |            return actionForwardName;  | 
  |  61 |     | 
       }  | 
  |  62 |     | 
     | 
  |  63 |     | 
         | 
  |  64 |     | 
     | 
  |  65 |     | 
     | 
  |  66 |     | 
       public void setActionForwardName(String actionForwardName) { | 
  |  67 |    0 |            this.actionForwardName = actionForwardName;  | 
  |  68 |    0 |        }  | 
  |  69 |     | 
     | 
  |  70 |     | 
         | 
  |  71 |     | 
     | 
  |  72 |     | 
     | 
  |  73 |     | 
       public boolean isPerformQuestion() { | 
  |  74 |    0 |            return performQuestion;  | 
  |  75 |     | 
       }  | 
  |  76 |     | 
     | 
  |  77 |     | 
         | 
  |  78 |     | 
     | 
  |  79 |     | 
     | 
  |  80 |     | 
       public void setPerformQuestion(boolean performQuestion) { | 
  |  81 |    0 |            this.performQuestion = performQuestion;  | 
  |  82 |    0 |        }  | 
  |  83 |     | 
     | 
  |  84 |     | 
         | 
  |  85 |     | 
     | 
  |  86 |     | 
     | 
  |  87 |     | 
       public String getQuestionCaller() { | 
  |  88 |    0 |            return questionCaller;  | 
  |  89 |     | 
       }  | 
  |  90 |     | 
     | 
  |  91 |     | 
         | 
  |  92 |     | 
     | 
  |  93 |     | 
     | 
  |  94 |     | 
       public void setQuestionCaller(String questionCaller) { | 
  |  95 |    0 |            this.questionCaller = questionCaller;  | 
  |  96 |    0 |        }  | 
  |  97 |     | 
     | 
  |  98 |     | 
         | 
  |  99 |     | 
     | 
  |  100 |     | 
     | 
  |  101 |     | 
       public String getQuestionContext() { | 
  |  102 |    0 |            return questionContext;  | 
  |  103 |     | 
       }  | 
  |  104 |     | 
     | 
  |  105 |     | 
         | 
  |  106 |     | 
     | 
  |  107 |     | 
     | 
  |  108 |     | 
       public void setQuestionContext(String questionContext) { | 
  |  109 |    0 |            this.questionContext = questionContext;  | 
  |  110 |    0 |        }  | 
  |  111 |     | 
     | 
  |  112 |     | 
         | 
  |  113 |     | 
     | 
  |  114 |     | 
     | 
  |  115 |     | 
       public String getQuestionId() { | 
  |  116 |    0 |            return questionId;  | 
  |  117 |     | 
       }  | 
  |  118 |     | 
     | 
  |  119 |     | 
         | 
  |  120 |     | 
     | 
  |  121 |     | 
     | 
  |  122 |     | 
       public void setQuestionId(String questionId) { | 
  |  123 |    0 |            this.questionId = questionId;  | 
  |  124 |    0 |        }  | 
  |  125 |     | 
     | 
  |  126 |     | 
         | 
  |  127 |     | 
     | 
  |  128 |     | 
     | 
  |  129 |     | 
       public String getQuestionText() { | 
  |  130 |    0 |            return questionText;  | 
  |  131 |     | 
       }  | 
  |  132 |     | 
     | 
  |  133 |     | 
         | 
  |  134 |     | 
     | 
  |  135 |     | 
     | 
  |  136 |     | 
       public void setQuestionText(String questionText) { | 
  |  137 |    0 |            this.questionText = questionText;  | 
  |  138 |    0 |        }  | 
  |  139 |     | 
     | 
  |  140 |     | 
         | 
  |  141 |     | 
     | 
  |  142 |     | 
     | 
  |  143 |     | 
       public String getQuestionType() { | 
  |  144 |    0 |            return questionType;  | 
  |  145 |     | 
       }  | 
  |  146 |     | 
     | 
  |  147 |     | 
         | 
  |  148 |     | 
     | 
  |  149 |     | 
     | 
  |  150 |     | 
       public void setQuestionType(String questionType) { | 
  |  151 |    0 |            this.questionType = questionType;  | 
  |  152 |    0 |        }  | 
  |  153 |     | 
     | 
  |  154 |     | 
         | 
  |  155 |     | 
     | 
  |  156 |     | 
     | 
  |  157 |     | 
       public Class<? extends BusinessRule> getRuleInterfaceClass() { | 
  |  158 |    0 |            return PromptBeforeValidation.class;  | 
  |  159 |     | 
       }  | 
  |  160 |     | 
     | 
  |  161 |     | 
     | 
  |  162 |     | 
         | 
  |  163 |     | 
     | 
  |  164 |     | 
     | 
  |  165 |     | 
       public boolean invokeRuleMethod(BusinessRule rule) { | 
  |  166 |    0 |            return true;  | 
  |  167 |     | 
       }  | 
  |  168 |     | 
   }  |