Class ReportRpcImpl
java.lang.Object
com.inductiveautomation.reporting.gateway.rpc.ReportRpcImpl
- All Implemented Interfaces:
ReportRpc
-
Field Summary
Fields inherited from interface com.inductiveautomation.reporting.common.api.ReportRpc
SERIALIZER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(String projectName, byte[] reportResourceBytes, byte[] reportScheduleBytes, AbstractReportActionConfig actionConfig, String reportName, String reportPath) Executes a report.getLastRun(String projectName, String reportPath) Returns the date the report was last run.getReportData(String projectName, String reportPath, ReportDataConfiguration dataConfig, Map<String, Object> parameters, Map<String, Object> extraConfig, boolean sampleData) Retrieves data for a report.
-
Constructor Details
-
ReportRpcImpl
-
-
Method Details
-
getReportData
public ReportExecutionData getReportData(String projectName, String reportPath, ReportDataConfiguration dataConfig, Map<String, Object> parameters, Map<String, throws ExceptionObject> extraConfig, boolean sampleData) Description copied from interface:ReportRpcRetrieves data for a report.- Specified by:
getReportDatain interfaceReportRpc- Parameters:
projectName- The name of the project.reportPath- The path to the report.dataConfig- The data configuration for the report.parameters- Parameters to pass to the report.extraConfig- Extra configuration for the data collection.sampleData- True if this is for sample data (e.g. for previewing in the designer).- Returns:
- The execution data for the report.
- Throws:
Exception- if data collection fails.
-
execute
public List<String> execute(String projectName, byte[] reportResourceBytes, byte[] reportScheduleBytes, AbstractReportActionConfig actionConfig, String reportName, String reportPath) throws Exception Description copied from interface:ReportRpcExecutes a report.- Specified by:
executein interfaceReportRpc- Parameters:
projectName- The name of the project.reportResourceBytes- The serialized report resource (XML).reportScheduleBytes- The serialized report schedule (XML).actionConfig- The distribution configuration.reportName- The name of the report.reportPath- The path of the report.- Returns:
- A list of any error messages generated during execution.
- Throws:
Exception- if execution fails.
-
getLastRun
Description copied from interface:ReportRpcReturns the date the report was last run.- Specified by:
getLastRunin interfaceReportRpc- Parameters:
projectName- The name of the project.reportPath- The path to the report.- Returns:
- The last run date, or null if it hasn't been run.
-