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 Details

    • S2SPrintingServiceImpl

      public S2SPrintingServiceImpl()
  • Method Details

    • getPrintBytes

      protected Map<String,byte[]> getPrintBytes(S2SPrintable printableArtifact)
    • 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.FOPException
      TransformerException
      IOException
    • print

      public S2SFile print(S2SPrintable printableArtifacts) throws S2SException
      Description copied from interface: S2SPrintingService
      This 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:
      print in interface S2SPrintingService
      Throws:
      S2SException
    • print

      public S2SFile print(List<S2SPrintable> printableArtifactList) throws S2SException
      Description copied from interface: S2SPrintingService
      This 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 List of Printable XML-FO as a PDF OutputStream.
      Specified by:
      print in interface S2SPrintingService
      Throws:
      S2SException
    • isPdfGoodToMerge

      protected boolean isPdfGoodToMerge(byte[] pdfBytes) throws S2SException
      Throws:
      S2SException
    • getReportName

      protected String getReportName()
    • mergePdfBytes

      public byte[] mergePdfBytes(List<byte[]> pdfBytesList, List<String> bookmarksList, boolean headerFooterRequired) throws S2SException
      Specified by:
      mergePdfBytes in interface S2SPrintingService
      Throws:
      S2SException
    • formateCalendar

      protected String formateCalendar(Calendar calendar)
    • getWhitespaceString

      protected String getWhitespaceString(int length)
    • logPrintDetails

      protected void logPrintDetails(String xmlString, String key)
    • logPdfPrintDetails

      protected void logPdfPrintDetails(S2SFile pdf)
    • getLoggingDir

      protected File getLoggingDir(String loggingDirectory)
    • getS2SConfigurationService

      public org.kuali.coeus.propdev.api.s2s.S2SConfigurationService getS2SConfigurationService()
    • setS2SConfigurationService

      public void setS2SConfigurationService(org.kuali.coeus.propdev.api.s2s.S2SConfigurationService s2SConfigurationService)