Class AuditSummaryPrintDelegate

java.lang.Object
com.ptc.qualitymanagement.qms.util.ReportPrintWriter
com.ptc.qualitymanagement.audit.report.summary.AuditSummaryPrintDelegate
All Implemented Interfaces:
com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate, com.ptc.qualitymanagement.qms.util.ReportPrintIFC

public class AuditSummaryPrintDelegate extends com.ptc.qualitymanagement.qms.util.ReportPrintWriter implements com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
AuditSummaryPrintDelegate.Default implementation of Audit Summary report

This class makes extensive use of iText to generate a pdf report.

Supported API: true

Extendable: true

  • Method Summary

    Modifier and Type
    Method
    Description
    createPDFReport(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit, File filePath, NmCommandBean cb)
    Create the Audit summary PDF Report.
    int
    Number of Findings to be rendered on the generated report Supported API: true
    int
    Number of Strengths to be rendered on the generated report Supported API: true
    long
    Highest score above which strengths should be captured.
    int
    Number of weaknessses to be rendered on the generated report Supported API: true
    void
    writeAttributes(com.ptc.qualitymanagement.audit.WTChangeAudit auditObj)
    API to write the Audit generel attributes on report.
    void
    writeFindings(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit)
    API to show Associations with Minor findings Supported API: true
    shows NC/CAPA with Minor findings created against Audit details.
    void
    writeHeader(String heading, int alignment)
    API to write key section headers Supported API: true
    void
    writeManagementSummary(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit)
    API to add Management summary section.
    void
    writeObservations(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit)
    API to get all the items listed as an Observation that could result in Findings in Later Audits.
    void
    writeReport(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit, NmCommandBean cb)
    Write different sections to report Supported API: true
    void
    API to write the main Report subject header.
    void
    writeStrengths(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit)
    API to write Audit strength - Comment High graded criteria area (Highest on site score) Supported API: true
    void
    writeWeaknesses(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit)
    API to get Comments from low graded areas which are not findings Supported API: true

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createPDFReport

      public String createPDFReport(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit, File filePath, NmCommandBean cb) throws WTPropertyVetoException, WTException, FileNotFoundException, com.lowagie.text.DocumentException
      Create the Audit summary PDF Report. Supported API: true
      Specified by:
      createPDFReport in interface com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
      Returns:
      Throws:
      WTPropertyVetoException
      WTException
      FileNotFoundException
      com.lowagie.text.DocumentException
    • writeReport

      public void writeReport(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit, NmCommandBean cb) throws WTException, com.lowagie.text.DocumentException
      Write different sections to report Supported API: true
      Parameters:
      wtChangeAudit -
      cb -
      Throws:
      WTException
      com.lowagie.text.DocumentException
    • writeHeader

      public void writeHeader(String heading, int alignment) throws WTException, com.lowagie.text.DocumentException
      API to write key section headers Supported API: true
      Parameters:
      heading -
      alignment -
      Throws:
      WTException
      com.lowagie.text.DocumentException
    • writeReportSubject

      public void writeReportSubject(String name) throws WTException, com.lowagie.text.DocumentException
      API to write the main Report subject header. Supported API: true
      Parameters:
      name -
      Throws:
      WTException
      com.lowagie.text.DocumentException
    • writeAttributes

      public void writeAttributes(com.ptc.qualitymanagement.audit.WTChangeAudit auditObj) throws WTException, com.lowagie.text.DocumentException, IOException
      API to write the Audit generel attributes on report. Supported API: true
      Specified by:
      writeAttributes in interface com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
      Parameters:
      auditObj -
      Throws:
      WTException
      com.lowagie.text.DocumentException
      IOException
    • writeManagementSummary

      public void writeManagementSummary(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit) throws WTException, com.lowagie.text.DocumentException
      API to add Management summary section. Supported API: true
      Specified by:
      writeManagementSummary in interface com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
      Parameters:
      wtChangeAudit -
      Throws:
      WTException
      com.lowagie.text.DocumentException
    • writeStrengths

      public void writeStrengths(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit) throws WTException, com.lowagie.text.DocumentException
      API to write Audit strength - Comment High graded criteria area (Highest on site score) Supported API: true
      Specified by:
      writeStrengths in interface com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
      Parameters:
      wtChangeAudit -
      Throws:
      WTException
      com.lowagie.text.DocumentException
    • writeWeaknesses

      public void writeWeaknesses(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit) throws WTException, com.lowagie.text.DocumentException
      API to get Comments from low graded areas which are not findings Supported API: true
      Specified by:
      writeWeaknesses in interface com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
      Parameters:
      wtChangeAudit -
      Throws:
      WTException
      com.lowagie.text.DocumentException
    • writeFindings

      public void writeFindings(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit) throws WTException, com.lowagie.text.DocumentException
      API to show Associations with Minor findings Supported API: true
      shows NC/CAPA with Minor findings created against Audit details.
      Specified by:
      writeFindings in interface com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
      Parameters:
      wtChangeAudit -
      Throws:
      WTException
      com.lowagie.text.DocumentException
    • writeObservations

      public void writeObservations(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit) throws WTException, com.lowagie.text.DocumentException
      API to get all the items listed as an Observation that could result in Findings in Later Audits. Supported API: true
      Specified by:
      writeObservations in interface com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
      Parameters:
      wtChangeAudit -
      Throws:
      WTException
      com.lowagie.text.DocumentException
    • getWeaknessCount

      public int getWeaknessCount()
      Number of weaknessses to be rendered on the generated report Supported API: true
      Specified by:
      getWeaknessCount in interface com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
      Returns:
      int
    • getStrengthsCount

      public int getStrengthsCount()
      Number of Strengths to be rendered on the generated report Supported API: true
      Specified by:
      getStrengthsCount in interface com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
      Returns:
      int
    • getFindingsCount

      public int getFindingsCount()
      Number of Findings to be rendered on the generated report Supported API: true
      Specified by:
      getFindingsCount in interface com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
      Returns:
      int
    • getStrengthsThreshold

      public long getStrengthsThreshold()
      Highest score above which strengths should be captured.

      Supported API: true
      Specified by:
      getStrengthsThreshold in interface com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
      Returns:
      int