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 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 super(description, errorPathPrefix);
48 this.document = document;
49
50 LOG.debug(description);
51
52 performQuestion = false;
53 }
54
55
56
57
58
59 public String getActionForwardName() {
60 return actionForwardName;
61 }
62
63
64
65
66 public void setActionForwardName(String actionForwardName) {
67 this.actionForwardName = actionForwardName;
68 }
69
70
71
72
73 public boolean isPerformQuestion() {
74 return performQuestion;
75 }
76
77
78
79
80 public void setPerformQuestion(boolean performQuestion) {
81 this.performQuestion = performQuestion;
82 }
83
84
85
86
87 public String getQuestionCaller() {
88 return questionCaller;
89 }
90
91
92
93
94 public void setQuestionCaller(String questionCaller) {
95 this.questionCaller = questionCaller;
96 }
97
98
99
100
101 public String getQuestionContext() {
102 return questionContext;
103 }
104
105
106
107
108 public void setQuestionContext(String questionContext) {
109 this.questionContext = questionContext;
110 }
111
112
113
114
115 public String getQuestionId() {
116 return questionId;
117 }
118
119
120
121
122 public void setQuestionId(String questionId) {
123 this.questionId = questionId;
124 }
125
126
127
128
129 public String getQuestionText() {
130 return questionText;
131 }
132
133
134
135
136 public void setQuestionText(String questionText) {
137 this.questionText = questionText;
138 }
139
140
141
142
143 public String getQuestionType() {
144 return questionType;
145 }
146
147
148
149
150 public void setQuestionType(String questionType) {
151 this.questionType = questionType;
152 }
153
154
155
156
157 public Class getRuleInterfaceClass() {
158 return PromptBeforeValidation.class;
159 }
160
161
162
163
164
165 public boolean invokeRuleMethod(BusinessRule rule) {
166 return true;
167 }
168 }