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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ptc.qualitymanagement.qms.util.ReportPrintWriter
com.ptc.qualitymanagement.qms.util.ReportPrintWriter.CheckBoxRequired -
Field Summary
Fields inherited from class com.ptc.qualitymanagement.qms.util.ReportPrintWriter
BUFFER_SIZE, dateDisplayFormat, document, f, LABEL_FONT_BOLD, LABEL_FONT_ITALIC, LABEL_FONT_NORMAL, os, out, persistableAdapter, REPORT_DATA_FONT, reportClass, reportDataBaseFont, reportLabelBaseFont, resource, resourceBundleName, SECTION_LABEL_FONT -
Method Summary
Modifier and TypeMethodDescriptioncreatePDFReport(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit, File filePath, NmCommandBean cb) Create the Audit summary PDF Report.intNumber of Findings to be rendered on the generated report Supported API: trueintNumber of Strengths to be rendered on the generated report Supported API: truelongHighest score above which strengths should be captured.intNumber of weaknessses to be rendered on the generated report Supported API: truevoidwriteAttributes(com.ptc.qualitymanagement.audit.WTChangeAudit auditObj) API to write the Audit generel attributes on report.voidwriteFindings(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.voidwriteHeader(String heading, int alignment) API to write key section headers Supported API: truevoidwriteManagementSummary(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit) API to add Management summary section.voidwriteObservations(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit) API to get all the items listed as an Observation that could result in Findings in Later Audits.voidwriteReport(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit, NmCommandBean cb) Write different sections to report Supported API: truevoidwriteReportSubject(String name) API to write the main Report subject header.voidwriteStrengths(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit) API to write Audit strength - Comment High graded criteria area (Highest on site score) Supported API: truevoidwriteWeaknesses(com.ptc.qualitymanagement.audit.WTChangeAudit wtChangeAudit) API to get Comments from low graded areas which are not findings Supported API: trueMethods inherited from class com.ptc.qualitymanagement.qms.util.ReportPrintWriter
close, createCheckBox, createExportTempFile, getDownloadUrl, getEnumDisplayValue, getFileName, getModeledEnumDisplayValue, getResourceValue, getSoftEnumerationAttributeNames, getStringValue, init, isChecked, open, open, setFileName, writeDataCell, writeDataCell, writeDataCell, writeDataCellLabel, writeDataCellNoLabel, writeDividerCell, writeHeadingCell, writeHeadingCell, writeHeadingDataCell, writeLabelCell, writeLabelCell, writeLabelCellWithBorders, writeLabelCellWithBorders, writeLabelCellWithNoBorderBottom, writeLabelCellWithNoBorderTopBottom, writeMultiLineDataCell, writeMultiLineDataCellNoLabel, writeSectionHeaderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate
close, getFileName, open
-
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:
createPDFReportin interfacecom.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate- Returns:
- Throws:
WTPropertyVetoExceptionWTExceptionFileNotFoundExceptioncom.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:
WTExceptioncom.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:
WTExceptioncom.lowagie.text.DocumentException
-
writeReportSubject
API to write the main Report subject header. Supported API: true- Parameters:
name-- Throws:
WTExceptioncom.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:
writeAttributesin interfacecom.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate- Parameters:
auditObj-- Throws:
WTExceptioncom.lowagie.text.DocumentExceptionIOException
-
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:
writeManagementSummaryin interfacecom.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate- Parameters:
wtChangeAudit-- Throws:
WTExceptioncom.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:
writeStrengthsin interfacecom.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate- Parameters:
wtChangeAudit-- Throws:
WTExceptioncom.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:
writeWeaknessesin interfacecom.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate- Parameters:
wtChangeAudit-- Throws:
WTExceptioncom.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:
writeFindingsin interfacecom.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate- Parameters:
wtChangeAudit-- Throws:
WTExceptioncom.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:
writeObservationsin interfacecom.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate- Parameters:
wtChangeAudit-- Throws:
WTExceptioncom.lowagie.text.DocumentException
-
getWeaknessCount
public int getWeaknessCount()Number of weaknessses to be rendered on the generated report Supported API: true- Specified by:
getWeaknessCountin interfacecom.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:
getStrengthsCountin interfacecom.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:
getFindingsCountin interfacecom.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate- Returns:
- int
-
getStrengthsThreshold
public long getStrengthsThreshold()Highest score above which strengths should be captured.
Supported API: true- Specified by:
getStrengthsThresholdin interfacecom.ptc.qualitymanagement.audit.report.AuditReportPrintDelegate- Returns:
- int
-