1 /* 2 * Copyright 2007 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.apache.log4j.Logger; 19 import org.kuali.ole.module.purap.businessobject.PurApItem; 20 import org.kuali.ole.sys.document.validation.event.AttributedDocumentEventBase; 21 import org.kuali.rice.krad.document.Document; 22 23 /** 24 * Event Base class for Purchasing Accounts Payable Item 25 * <p/> 26 * contains the base methods for item events 27 */ 28 public class PurchasingAccountsPayableItemPreCalculateEvent extends AttributedDocumentEventBase { 29 private static final Logger LOG = Logger.getLogger(PurchasingAccountsPayableItemPreCalculateEvent.class); 30 31 private final PurApItem item; 32 33 /** 34 * Copies the item and calls the super constructor 35 * 36 * @param description the description of the event 37 * @param errorPathPrefix the error path 38 * @param document the document the event is being called on 39 * @param item the item that is having the event called on 40 */ 41 public PurchasingAccountsPayableItemPreCalculateEvent(Document document, PurApItem item) { 42 super("PurAP Document Item PreCalculate Check for " + getDocumentId(document), "", document); 43 this.item = item; 44 } 45 46 /** 47 * @see org.kuali.ole.module.purap.document.validation.event.PurchasingAccountsPayableItemEvent#getItem() 48 */ 49 public PurApItem getItem() { 50 return item; 51 } 52 }