org.kuali.kfs.module.purap.document.service.impl
Class PrintServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.purap.document.service.impl.PrintServiceImpl
All Implemented Interfaces:
PrintService

@Transactional
public class PrintServiceImpl
extends Object
implements PrintService


Field Summary
protected static boolean TRANSMISSION_IS_NOT_RETRANSMIT
           
protected static boolean TRANSMISSION_IS_RETRANSMIT
           
 
Constructor Summary
PrintServiceImpl()
           
 
Method Summary
 Collection generateBulkReceivingPDF(BulkReceivingDocument blkRecDoc, ByteArrayOutputStream baosPDF)
           
protected  Collection generatePurchaseOrderPdf(PurchaseOrderDocument po, ByteArrayOutputStream byteArrayOutputStream, boolean isRetransmit, String environment, List<PurchaseOrderItem> retransmitItems)
          Creates purchase order pdf document given the input parameters.
 Collection generatePurchaseOrderPdf(PurchaseOrderDocument po, ByteArrayOutputStream byteArrayOutputStream, String environment, List<PurchaseOrderItem> retransmitItems)
          Create the Purchase Order Pdf document for non-retransmission and send it back to the Action so that it can be dealt with.
 Collection generatePurchaseOrderPdfForRetransmission(PurchaseOrderDocument po, ByteArrayOutputStream byteArrayOutputStream, String environment, List<PurchaseOrderItem> retransmitItems)
          Create the Purchase Order Pdf document for retransmission and send it back to the Action so that it can be dealt with.
 Collection generatePurchaseOrderQuotePdf(PurchaseOrderDocument po, PurchaseOrderVendorQuote povq, ByteArrayOutputStream byteArrayOutputStream, String environment)
          Create the Purchase Order Quote Pdf document and send it back to the Action so that it can be dealt with.
 Collection generatePurchaseOrderQuoteRequestsListPdf(PurchaseOrderDocument po, ByteArrayOutputStream byteArrayOutputStream)
          Create the Purchase Order Quote Requests List Pdf document and send it back to the Action so that it can be dealt with.
 PurchaseOrderParameters getPurchaseOrderParameters()
           
protected  PurchaseOrderTransmitParameters getPurchaseOrderQuoteRequestsListPdfParameters(PurchaseOrderDocument po)
          Returns the PurchaseOrderPdfParameters given the PurchaseOrderDocument.
protected  Collection savePurchaseOrderPdf(PurchaseOrderDocument po, boolean isRetransmit, String environment)
          Saves the purchase order pdf document.
 Collection savePurchaseOrderPdf(PurchaseOrderDocument po, String environment)
          Create the Purchase Order Pdf document for non-retransmission and save it so that it can be faxed in a later process.
 Collection savePurchaseOrderPdfForRetransmission(PurchaseOrderDocument po, String environment)
          Create the Purchase Order Pdf document for retransmission and save it so that it can be faxed in a later process.
 Collection savePurchaseOrderQuotePdf(PurchaseOrderDocument po, PurchaseOrderVendorQuote povq, String environment)
          Create the Purchase Order Quote Pdf document and save it so that it can be faxed in a later process.
 Collection savePurchaseOrderQuoteRequestsListPdf(PurchaseOrderDocument po)
          Create the Purchase Order Quote Requests List Pdf document and save it so that it can be faxed in a later process.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
           
 void setImageDao(ImageDao imageDao)
           
 void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
           
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
           
 void setPurchaseOrderParameters(PurchaseOrderParameters purchaseOrderParameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSMISSION_IS_RETRANSMIT

protected static final boolean TRANSMISSION_IS_RETRANSMIT
See Also:
Constant Field Values

TRANSMISSION_IS_NOT_RETRANSMIT

protected static final boolean TRANSMISSION_IS_NOT_RETRANSMIT
See Also:
Constant Field Values
Constructor Detail

PrintServiceImpl

public PrintServiceImpl()
Method Detail

generatePurchaseOrderQuoteRequestsListPdf

public Collection generatePurchaseOrderQuoteRequestsListPdf(PurchaseOrderDocument po,
                                                            ByteArrayOutputStream byteArrayOutputStream)
Description copied from interface: PrintService
Create the Purchase Order Quote Requests List Pdf document and send it back to the Action so that it can be dealt with.

Specified by:
generatePurchaseOrderQuoteRequestsListPdf in interface PrintService
Parameters:
po - The PurchaseOrderDocument.
byteArrayOutputStream - ByteArrayOutputStream that the action is using, where the pdf will be printed to.
Returns:
Collection of error strings
See Also:
PrintService.generatePurchaseOrderQuoteRequestsListPdf(org.kuali.kfs.module.purap.document.PurchaseOrderDocument, java.io.ByteArrayOutputStream)

savePurchaseOrderQuoteRequestsListPdf

public Collection savePurchaseOrderQuoteRequestsListPdf(PurchaseOrderDocument po)
Description copied from interface: PrintService
Create the Purchase Order Quote Requests List Pdf document and save it so that it can be faxed in a later process.

Specified by:
savePurchaseOrderQuoteRequestsListPdf in interface PrintService
Parameters:
po - The PurchaseOrderDocument.
Returns:
Collection of error strings.
See Also:
PrintService.savePurchaseOrderQuoteRequestsListPdf(org.kuali.kfs.module.purap.document.PurchaseOrderDocument)

getPurchaseOrderQuoteRequestsListPdfParameters

protected PurchaseOrderTransmitParameters getPurchaseOrderQuoteRequestsListPdfParameters(PurchaseOrderDocument po)
Returns the PurchaseOrderPdfParameters given the PurchaseOrderDocument.

Parameters:
po - The PurchaseOrderDocument object to be used to obtain the PurchaseOrderPdfParameters.
Returns:
The PurchaseOrderPdfParameters given the PurchaseOrderDocument.

generatePurchaseOrderQuotePdf

public Collection generatePurchaseOrderQuotePdf(PurchaseOrderDocument po,
                                                PurchaseOrderVendorQuote povq,
                                                ByteArrayOutputStream byteArrayOutputStream,
                                                String environment)
Description copied from interface: PrintService
Create the Purchase Order Quote Pdf document and send it back to the Action so that it can be dealt with.

Specified by:
generatePurchaseOrderQuotePdf in interface PrintService
Parameters:
po - PurchaseOrderDocument that holds the Quote.
povq - PurchaseOrderVendorQuote that is being transmitted to.
byteArrayOutputStream - ByteArrayOutputStream that the action is using, where the pdf will be printed to.
environment - The current environment used (e.g. DEV if it is a development environment).
Returns:
Collection of error strings.
See Also:
PrintService.generatePurchaseOrderQuotePdf(org.kuali.kfs.module.purap.document.PurchaseOrderDocument, org.kuali.kfs.module.purap.businessobject.PurchaseOrderVendorQuote, java.io.ByteArrayOutputStream, java.lang.String)

savePurchaseOrderQuotePdf

public Collection savePurchaseOrderQuotePdf(PurchaseOrderDocument po,
                                            PurchaseOrderVendorQuote povq,
                                            String environment)
Description copied from interface: PrintService
Create the Purchase Order Quote Pdf document and save it so that it can be faxed in a later process.

Specified by:
savePurchaseOrderQuotePdf in interface PrintService
Parameters:
po - PurchaseOrderDocument that holds the Quote.
povq - PurchaseOrderVendorQuote that is being transmitted to.
environment - The current environment used (e.g. DEV if it is a development environment).
Returns:
Collection of error strings.
See Also:
PrintService.savePurchaseOrderQuotePdf(org.kuali.kfs.module.purap.document.PurchaseOrderDocument, org.kuali.kfs.module.purap.businessobject.PurchaseOrderVendorQuote, java.lang.String)

generatePurchaseOrderPdf

protected Collection generatePurchaseOrderPdf(PurchaseOrderDocument po,
                                              ByteArrayOutputStream byteArrayOutputStream,
                                              boolean isRetransmit,
                                              String environment,
                                              List<PurchaseOrderItem> retransmitItems)
Creates purchase order pdf document given the input parameters.

Parameters:
po - The PurchaseOrderDocument.
byteArrayOutputStream - ByteArrayOutputStream that the action is using, where the pdf will be printed to.
isRetransmit - boolean true if this is a retransmit purchase order document.
environment - The current environment used (e.g. DEV if it is a development environment).
retransmitItems - The items selected by the user to be retransmitted.
Returns:
Collection of error strings.

generatePurchaseOrderPdf

public Collection generatePurchaseOrderPdf(PurchaseOrderDocument po,
                                           ByteArrayOutputStream byteArrayOutputStream,
                                           String environment,
                                           List<PurchaseOrderItem> retransmitItems)
Description copied from interface: PrintService
Create the Purchase Order Pdf document for non-retransmission and send it back to the Action so that it can be dealt with.

Specified by:
generatePurchaseOrderPdf in interface PrintService
Parameters:
po - The PurchaseOrderDocument.
byteArrayOutputStream - ByteArrayOutputStream that the action is using, where the pdf will be printed to.
environment - The current environment used (e.g. DEV if it is a development environment).
retransmitItems - The items selected by the user to be retransmitted.
Returns:
Collection of error strings.
See Also:
org.kuali.kfs.module.purap.document.service.PrintService#generatePurchaseOrderPdf(org.kuali.kfs.module.purap.document.PurchaseOrderDocument, java.io.ByteArrayOutputStream, java.lang.String)

generatePurchaseOrderPdfForRetransmission

public Collection generatePurchaseOrderPdfForRetransmission(PurchaseOrderDocument po,
                                                            ByteArrayOutputStream byteArrayOutputStream,
                                                            String environment,
                                                            List<PurchaseOrderItem> retransmitItems)
Description copied from interface: PrintService
Create the Purchase Order Pdf document for retransmission and send it back to the Action so that it can be dealt with.

Specified by:
generatePurchaseOrderPdfForRetransmission in interface PrintService
Parameters:
po - The PurchaseOrderDocument.
byteArrayOutputStream - ByteArrayOutputStream that the action is using, where the pdf will be printed to.
environment - The current environment used (e.g. DEV if it is a development environment).
retransmitItems - The items selected by the user to be retransmitted.
Returns:
Collection of error strings.
See Also:
org.kuali.kfs.module.purap.document.service.PrintService#generatePurchaseOrderPdfForRetransmission(org.kuali.kfs.module.purap.document.PurchaseOrderDocument, java.io.ByteArrayOutputStream, java.lang.String)

savePurchaseOrderPdf

protected Collection savePurchaseOrderPdf(PurchaseOrderDocument po,
                                          boolean isRetransmit,
                                          String environment)
Saves the purchase order pdf document.

Parameters:
po - The PurchaseOrderDocument.
isRetransmit - boolean true if this is a retransmit purchase order document.
environment - The current environment used (e.g. DEV if it is a development environment).
Returns:
Collection of error strings.

savePurchaseOrderPdf

public Collection savePurchaseOrderPdf(PurchaseOrderDocument po,
                                       String environment)
Description copied from interface: PrintService
Create the Purchase Order Pdf document for non-retransmission and save it so that it can be faxed in a later process.

Specified by:
savePurchaseOrderPdf in interface PrintService
Parameters:
po - The PurchaseOrderDocument.
environment - The current environment used (e.g. DEV if it is a development environment).
Returns:
Collection of error strings.
See Also:
PrintService.savePurchaseOrderPdf(org.kuali.kfs.module.purap.document.PurchaseOrderDocument, java.lang.String)

savePurchaseOrderPdfForRetransmission

public Collection savePurchaseOrderPdfForRetransmission(PurchaseOrderDocument po,
                                                        String environment)
Description copied from interface: PrintService
Create the Purchase Order Pdf document for retransmission and save it so that it can be faxed in a later process.

Specified by:
savePurchaseOrderPdfForRetransmission in interface PrintService
Parameters:
po - The PurchaseOrderDocument.
environment - The current environment used (e.g. DEV if it is a development environment).
Returns:
Collection of error strings.
See Also:
PrintService.savePurchaseOrderPdfForRetransmission(org.kuali.kfs.module.purap.document.PurchaseOrderDocument, java.lang.String)

generateBulkReceivingPDF

public Collection generateBulkReceivingPDF(BulkReceivingDocument blkRecDoc,
                                           ByteArrayOutputStream baosPDF)
Specified by:
generateBulkReceivingPDF in interface PrintService

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)

setImageDao

public void setImageDao(ImageDao imageDao)

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)

setKualiConfigurationService

public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)

setPurchaseOrderParameters

public void setPurchaseOrderParameters(PurchaseOrderParameters purchaseOrderParameters)

getPurchaseOrderParameters

public PurchaseOrderParameters getPurchaseOrderParameters()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.