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.service; 17 18 import org.kuali.ole.module.purap.businessobject.PurchaseOrderVendorQuote; 19 import org.kuali.ole.module.purap.document.PurchaseOrderDocument; 20 21 /** 22 * Defines methods that must be implemented by classes providing a PrintService. 23 */ 24 public interface FaxService { 25 /** 26 * Create the Purchase Order Quote Pdf document and send it via 27 * fax to the recipient in the PO Quote 28 * 29 * @param po PurchaseOrder that holds the Quote 30 * @param poqv PurchaseOrderQuoteVendor that is being transmitted to 31 */ 32 public void faxPurchaseOrderQuotePdf(PurchaseOrderDocument po, PurchaseOrderVendorQuote povq); 33 34 /** 35 * Create the Purchase Order Pdf document and send it via 36 * fax to the recipient in the PO 37 * 38 * @param po PurchaseOrder that holds the Quote 39 * @param isRetransmit sends true if PO is being retransmitted 40 */ 41 public void faxPurchaseOrderPdf(PurchaseOrderDocument po, boolean isRetransmit); 42 43 /** 44 * Create the Purchase Order Pdf document and send it via 45 * fax to the recipient in the PO 46 * 47 * @param po PurchaseOrder that holds the Quote 48 * @param isRetransmit if passed true then PO is being retransmitted 49 */ 50 public void faxPurchaseOrderPdf(PurchaseOrderDocument po, String pdfFileLocation, String imageTempLocation, boolean isRetransmit); 51 /** 52 * Fax the PO and return true if it succeeds. Add error message and return false if problems 53 * 54 * @param po The PurchaseOrderDocument. 55 * @return boolean result 56 */ 57 58 }