Package com.ptc.windchill.mpml.reports
Class MPMLReportDelegate
java.lang.Object
com.ptc.windchill.mpml.reports.MPMLReportDelegate
Abstract Delegate class. This will add basic information into the report.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classInner class to hold the row data information in tree structure. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidend(ReportParams params) Called at the end of execution.protected abstract List<MPMLReportDelegate.RowData> getChildren(List<MPMLReportDelegate.RowData> parents, ReportParams params) Method to get the data for children.protected abstract MPMLReportDelegate.RowDatagetRoot(Persistable seed, ReportParams params) Method to get the row data for the root as need special handling for root since there is no parent data etc.protected abstract List<MPMLReportDelegate.RowData> getRowData(NavigationUnit navUnit, MPMLReportDelegate.RowData parentData, ReportParams params) Allows hook to interpret the navigation unit and build all the row data you wish should be exported.getRowToWrite(MPMLReportDelegate.RowData rowData, ReportParams params) Method to allow fetching data from RowData and formatting it how to write to export output Supported API: trueprotected voidstart(ReportParams params) Called at the start on execution.
-
Method Details
-
start
Called at the start on execution. Used for initial setup. Supported API: true- Parameters:
params-- Throws:
WTException
-
end
Called at the end of execution. Used for clean up. Supported API: true- Parameters:
params-- Throws:
WTException
-
getRoot
protected abstract MPMLReportDelegate.RowData getRoot(Persistable seed, ReportParams params) throws WTException Method to get the row data for the root as need special handling for root since there is no parent data etc. Supported API: true- Parameters:
seed-params-- Returns:
- Throws:
WTException
-
getChildren
protected abstract List<MPMLReportDelegate.RowData> getChildren(List<MPMLReportDelegate.RowData> parents, ReportParams params) throws WTException Method to get the data for children. This method is called recursively to collect data for whole structure. Usually this is the method where you will want to populate all the information needed to export for performance reasons as you have access to all the children for a given level. Supported API: true- Parameters:
parents-params-- Returns:
- Throws:
WTException
-
getRowToWrite
protected abstract List<String> getRowToWrite(MPMLReportDelegate.RowData rowData, ReportParams params) throws WTException Method to allow fetching data from RowData and formatting it how to write to export output Supported API: true- Parameters:
rowData-params-- Returns:
- Throws:
WTException
-