View Javadoc
1   /*
2    * Copyright 2007-2008 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.module.purap.businessobject.PurchaseOrderVendorQuote;
19  import org.kuali.ole.sys.document.validation.event.AttributedDocumentEventBase;
20  import org.kuali.rice.krad.document.Document;
21  
22  
23  /**
24   * Add a vendor to the quote tab event.
25   * This is triggered when a user presses the add vendor button for a given vendor.
26   */
27  public final class AttributedAddVendorToQuoteEvent extends AttributedDocumentEventBase {
28  
29      private PurchaseOrderVendorQuote vendorQuote;
30  
31      /**
32       * Constructs an AddVendorToQuoteEvent with the given errorPathPrefix and document.
33       *
34       * @param errorPathPrefix the error path
35       * @param document        document the event was invoked on
36       */
37      public AttributedAddVendorToQuoteEvent(String errorPathPrefix, Document document, PurchaseOrderVendorQuote vendorQuote) {
38          super("adding vendor to document " + getDocumentId(document), errorPathPrefix, document);
39          this.vendorQuote = vendorQuote;
40      }
41  
42      public PurchaseOrderVendorQuote getVendorQuote() {
43          return vendorQuote;
44      }
45  
46      public void setVendorQuote(PurchaseOrderVendorQuote vendorQuote) {
47          this.vendorQuote = vendorQuote;
48      }
49  
50  
51  }