001 /* 002 * Copyright 2011 The Kuali Foundation. 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.kfs.module.purap.document.service; 017 018 import java.util.Collection; 019 020 import org.kuali.kfs.module.purap.businessobject.PurchaseOrderVendorQuote; 021 import org.kuali.kfs.module.purap.document.PurchaseOrderDocument; 022 023 /** 024 * Defines methods that must be implemented by classes providing a PrintService. 025 */ 026 public interface FaxService { 027 /** 028 * Create the Purchase Order Quote Pdf document and send it via 029 * fax to the recipient in the PO Quote 030 * 031 * @param po PurchaseOrder that holds the Quote 032 * @param poqv PurchaseOrderQuoteVendor that is being transmitted to 033 */ 034 public void faxPurchaseOrderQuotePdf(PurchaseOrderDocument po, PurchaseOrderVendorQuote povq); 035 /** 036 * Create the Purchase Order Pdf document and send it via 037 * fax to the recipient in the PO 038 * 039 * @param po PurchaseOrder that holds the Quote 040 * @param isRetransmit sends true if PO is being retransmitted 041 */ 042 public void faxPurchaseOrderPdf(PurchaseOrderDocument po, boolean isRetransmit); 043 /** 044 * Create the Purchase Order Pdf document and send it via 045 * fax to the recipient in the PO 046 * 047 * @param po PurchaseOrder that holds the Quote 048 * @param isRetransmit if passed true then PO is being retransmitted 049 */ 050 public void faxPurchaseOrderPdf(PurchaseOrderDocument po, String pdfFileLocation, String imageTempLocation, boolean isRetransmit); 051 /** 052 * Fax the PO and return true if it succeeds. Add error message and return false if problems 053 * 054 * @param po The PurchaseOrderDocument. 055 * @return boolean result 056 */ 057 058 }