1 /*
2 * Copyright 2011 The Kuali Foundation.
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.kuali.ole.select.document.validation.event;
17
18 import org.kuali.ole.sys.document.validation.event.AttributedDocumentEventBase;
19 import org.kuali.rice.krad.document.Document;
20 import org.kuali.rice.krad.rules.rule.BusinessRule;
21 import org.kuali.rice.krad.rules.rule.event.KualiDocumentEvent;
22
23 public class AssignOrderQueueEvent extends AttributedDocumentEventBase implements KualiDocumentEvent {
24
25 /**
26 * Constructs an AddAccountingLineEvent with the given errorPathPrefix, document, and accountingLine.
27 *
28 * @param errorPathPrefix
29 * @param document
30 * @param accountingLine
31 */
32 public AssignOrderQueueEvent(String errorPathPrefix, Document document) {
33 super("assign orders in queue " + getDocumentId(document), errorPathPrefix, document);
34 }
35
36
37 /**
38 * Overridden to call parent and then clean up the error messages.
39 *
40 * @see org.kuali.ole.sys.document.validation.event.AttributedDocumentEventBase#invokeRuleMethod(org.kuali.rice.krad.rule.BusinessRule)
41 */
42 @Override
43 public boolean invokeRuleMethod(BusinessRule rule) {
44 boolean result = super.invokeRuleMethod(rule);
45 cleanErrorMessages();
46 return result;
47 }
48
49 /**
50 * Logic to replace generic amount error messages, especially those where extraordinarily large amounts caused format errors
51 */
52 public void cleanErrorMessages() {
53
54 }
55 }