Class PrintAction
java.lang.Object
com.inductiveautomation.reporting.gateway.actions.AbstractReportAction
com.inductiveautomation.reporting.gateway.actions.PrintAction
Filename: PrintAction.java
Created on Mar 23, 2015
Author: Kathy Applebaum
Copyright Inductive Automation 2015
Project: Reporting
- Since:
- 7.8.0 Handles the printing for a scheduled report
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrintAction
(GatewayContext context, String projectName, ReportExecutionContext reportContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
perform
(RMDocument report, ReportResource reportResource, AbstractReportActionConfig config, String reportPath, String reportName, Map<String, Object> parameterData) void
perform
(RMDocument report, ReportResource reportResource, AbstractReportActionConfig config, String reportPath, String reportName, Map<String, Object> parameterData, Map<String, Object> configData) Called by system.report.executeAndDistribute.
-
Field Details
-
AUDIT_FAIL_MSG
- See Also:
-
-
Constructor Details
-
PrintAction
public PrintAction(GatewayContext context, String projectName, ReportExecutionContext reportContext)
-
-
Method Details
-
perform
public void perform(RMDocument report, ReportResource reportResource, AbstractReportActionConfig config, String reportPath, String reportName, Map<String, Object> parameterData) - Specified by:
perform
in classAbstractReportAction
-
perform
public void perform(RMDocument report, ReportResource reportResource, AbstractReportActionConfig config, String reportPath, String reportName, Map<String, Object> parameterData, Map<String, Object> configData) Description copied from class:AbstractReportAction
Called by system.report.executeAndDistribute. This parses the configData that applies to this distribution type, updates a distribution config, and calls the other overload of perform.- Specified by:
perform
in classAbstractReportAction
- Parameters:
report
- The RMDocument generated from the report templatereportResource
- The ReportResourceconfig
- A new blank config of the appropriate type. May be altered by the configData before calling the overload.reportPath
- Path to the report we want to perform.reportName
- Name of the report we want to perform.parameterData
- Optional parameter overrides.configData
- Optional data to apply to the configuration. Missing values will be left at the default values.
-