public class DisbursementVoucherCoverSheetServiceImpl extends Object implements DisbursementVoucherCoverSheetService
| Modifier and Type | Field and Description | 
|---|---|
| protected org.kuali.rice.krad.service.BusinessObjectService | businessObjectService | 
| protected org.kuali.rice.coreservice.framework.parameter.ParameterService | parameterService | 
| protected org.kuali.rice.krad.service.PersistenceStructureService | persistenceStructureService | 
| Constructor and Description | 
|---|
| DisbursementVoucherCoverSheetServiceImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | generateDisbursementVoucherCoverSheet(String templateDirectory,
                                                                          String templateName,
                                                                          DisbursementVoucherDocument document,
                                                                          OutputStream outputStream)This method uses the values provided to build and populate a cover sheet associated with a given DisbursementVoucher. | 
| boolean | isCoverSheetPrintable(DisbursementVoucherDocument document)checks the status of the document to see if the cover sheet is printable | 
| protected String | retrieveAddress(String docLocCd)This method contains logic to determine the address the cover sheet should be sent to. | 
| void | setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)Sets the businessObjectService attribute value. | 
| void | setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)Sets the parameterService attribute value. | 
| void | setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService)Sets the persistenceStructureService attribute value. | 
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected org.kuali.rice.krad.service.BusinessObjectService businessObjectService
protected org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService
public DisbursementVoucherCoverSheetServiceImpl()
public void generateDisbursementVoucherCoverSheet(String templateDirectory, String templateName, DisbursementVoucherDocument document, OutputStream outputStream) throws com.lowagie.text.DocumentException, IOException
generateDisbursementVoucherCoverSheet in interface DisbursementVoucherCoverSheetServicetemplateDirectory - The directory where the cover sheet template can be found.templateName - The name of the cover sheet template to be used to build the cover sheet.document - The DisbursementVoucher the cover sheet will be populated from.outputStream - The stream the cover sheet file will be written to.com.lowagie.text.DocumentException - Thrown if there is a problem pulling data from the document to create the cover sheet.IOException - Thrown if there is a problem writing the cover sheet to the output stream.DisbursementVoucherCoverSheetService.generateDisbursementVoucherCoverSheet(java.lang.String,
      java.lang.String, org.kuali.ole.fp.document.DisbursementVoucherDocument, java.io.OutputStream)public boolean isCoverSheetPrintable(DisbursementVoucherDocument document)
DisbursementVoucherCoverSheetServiceisCoverSheetPrintable in interface DisbursementVoucherCoverSheetServicedocument - submitted documentDisbursementVoucherCoverSheetService.isCoverSheetPrintable(org.kuali.ole.fp.document.DisbursementVoucherDocument)protected String retrieveAddress(String docLocCd)
docLocCd - A key used to retrieve the document location.public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService - The businessObjectService to set.public void setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService)
persistenceStructureService - The persistenceService to set.public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService - The parameterService to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.