Class S2SPrintingServiceImpl
java.lang.Object
org.kuali.coeus.s2sgen.impl.print.S2SPrintingServiceImpl
- All Implemented Interfaces:
S2SPrintingService
@Component("s2SPrintingService")
public class S2SPrintingServiceImpl
extends Object
implements S2SPrintingService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreatePdfWithFOP(String xml, String name, Map<String, byte[]> pdfByteMap, org.apache.fop.apps.FopFactory fopFactory, org.springframework.core.io.Resource xslt) protected StringformateCalendar(Calendar calendar) protected FilegetLoggingDir(String loggingDirectory) getPrintBytes(S2SPrintable printableArtifact) protected Stringorg.kuali.coeus.propdev.api.s2s.S2SConfigurationServiceprotected StringgetWhitespaceString(int length) protected booleanisPdfGoodToMerge(byte[] pdfBytes) protected voidprotected voidlogPrintDetails(String xmlString, String key) byte[]mergePdfBytes(List<byte[]> pdfBytesList, List<String> bookmarksList, boolean headerFooterRequired) print(List<S2SPrintable> printableArtifactList) This method invokes the KC printable architecture for reports, notifications, docs and bos.print(S2SPrintable printableArtifacts) This method invokes the KC printable architecture for reports, notifications, docs and bos.voidsetS2SConfigurationService(org.kuali.coeus.propdev.api.s2s.S2SConfigurationService s2SConfigurationService)
-
Constructor Details
-
S2SPrintingServiceImpl
public S2SPrintingServiceImpl()
-
-
Method Details
-
getPrintBytes
-
createPdfWithFOP
protected void createPdfWithFOP(String xml, String name, Map<String, byte[]> pdfByteMap, org.apache.fop.apps.FopFactory fopFactory, org.springframework.core.io.Resource xslt) throws org.apache.fop.apps.FOPException, TransformerException, IOException- Throws:
org.apache.fop.apps.FOPExceptionTransformerExceptionIOException
-
print
public S2SFile print(S2SPrintable printableArtifacts) throws org.kuali.coeus.s2sgen.api.core.S2SException Description copied from interface:S2SPrintingServiceThis method invokes the KC printable architecture for reports, notifications, docs and bos. It will take raw KC XML from bo/docs and perform the XSLT to generate XML-FO, and will render the Printable XML-FO as a PDF OutputStream.- Specified by:
printin interfaceS2SPrintingService- Throws:
org.kuali.coeus.s2sgen.api.core.S2SException
-
print
public S2SFile print(List<S2SPrintable> printableArtifactList) throws org.kuali.coeus.s2sgen.api.core.S2SException Description copied from interface:S2SPrintingServiceThis method invokes the KC printable architecture for reports, notifications, docs and bos. It will take raw KC XML from bo/docs and perform the XSLT to generate XML-FO, and will render theListof Printable XML-FO as a PDF OutputStream.- Specified by:
printin interfaceS2SPrintingService- Throws:
org.kuali.coeus.s2sgen.api.core.S2SException
-
isPdfGoodToMerge
protected boolean isPdfGoodToMerge(byte[] pdfBytes) throws org.kuali.coeus.s2sgen.api.core.S2SException - Throws:
org.kuali.coeus.s2sgen.api.core.S2SException
-
getReportName
-
mergePdfBytes
public byte[] mergePdfBytes(List<byte[]> pdfBytesList, List<String> bookmarksList, boolean headerFooterRequired) throws org.kuali.coeus.s2sgen.api.core.S2SException - Specified by:
mergePdfBytesin interfaceS2SPrintingService- Throws:
org.kuali.coeus.s2sgen.api.core.S2SException
-
formateCalendar
-
getWhitespaceString
-
logPrintDetails
-
logPdfPrintDetails
-
getLoggingDir
-
getS2SConfigurationService
public org.kuali.coeus.propdev.api.s2s.S2SConfigurationService getS2SConfigurationService() -
setS2SConfigurationService
public void setS2SConfigurationService(org.kuali.coeus.propdev.api.s2s.S2SConfigurationService s2SConfigurationService)
-