1 /*
2 * Copyright 2007-2009 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.module.purap.document.validation.event;
17
18 import org.kuali.ole.sys.OLEConstants;
19 import org.kuali.ole.sys.document.validation.event.AttributedDocumentEventBase;
20 import org.kuali.rice.krad.document.Document;
21
22 /**
23 * Calculate event for Accounts Payable Document
24 * This could be triggered when a user presses the Calculate button to calculate the doc.
25 */
26 public final class AttributedCalculateAccountsPayableEvent extends AttributedDocumentEventBase {
27
28 /**
29 * Overridden constructor.
30 *
31 * @param document the document for this event
32 */
33 public AttributedCalculateAccountsPayableEvent(Document document) {
34 this(OLEConstants.EMPTY_STRING, document);
35 }
36
37 /**
38 * Constructs a CalculateAccountsPayableEvent with the given errorPathPrefix, document, and item.
39 *
40 * @param errorPathPrefix the error path
41 * @param document document the event was invoked upon
42 */
43 public AttributedCalculateAccountsPayableEvent(String errorPathPrefix, Document document) {
44 super("calculating on document " + getDocumentId(document), errorPathPrefix, document);
45 }
46 }