Class ReportingGatewayHook.RPC
- java.lang.Object
- 
- com.inductiveautomation.reporting.gateway.ReportingGatewayHook.RPC
 
- 
- All Implemented Interfaces:
- ReportRpc,- ReportScriptingFunctions
 - Enclosing class:
- ReportingGatewayHook
 
 public class ReportingGatewayHook.RPC extends java.lang.Object implements ReportRpc, ReportScriptingFunctions 
- 
- 
Constructor SummaryConstructors Constructor Description RPC()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>execute(java.lang.String projectName, byte[] reportResourceBytes, byte[] reportScheduleBytes, AbstractReportActionConfig actionConfig, java.lang.String reportName, java.lang.String reportPath)voidexecuteAndDistribute(java.lang.String path, org.python.core.PyDictionary parameters, java.lang.String projectName, java.lang.String action, org.python.core.PyDictionary actionSettings)byte[]executeReport(java.lang.String path, java.lang.String fileType, org.python.core.PyDictionary arguments, java.lang.String project)longgetLastExecutionDuration(java.lang.String projectName, java.lang.String reportPath)java.util.DategetLastRun(java.lang.String projectName, java.lang.String reportPath)java.util.DategetLastScheduledRun(java.lang.String projectName, java.lang.String reportPath)ReportExecutionDatagetReportData(java.lang.String projectName, java.lang.String reportPath, ReportDataConfiguration dataConfig, java.util.Map<java.lang.String,java.lang.Object> parameters, java.util.Map<java.lang.String,java.lang.Object> extraConfig, boolean sampleData)DatasetgetReportNamesAsDataset(java.lang.String projectName)DatasetgetReportNamesAsDataset(java.lang.String projectName, boolean includeReportName)In 7.x the end of the Path returned did not include the report name, but in 8.x it does.java.util.List<java.lang.String>getReportNamesAsList(java.lang.String projectName)
 
- 
- 
- 
Method Detail- 
getReportDatapublic ReportExecutionData getReportData(java.lang.String projectName, java.lang.String reportPath, ReportDataConfiguration dataConfig, java.util.Map<java.lang.String,java.lang.Object> parameters, java.util.Map<java.lang.String,java.lang.Object> extraConfig, boolean sampleData) throws java.lang.Exception - Specified by:
- getReportDatain interface- ReportRpc
- Throws:
- java.lang.Exception
 
 - 
executepublic java.util.List<java.lang.String> execute(java.lang.String projectName, byte[] reportResourceBytes, byte[] reportScheduleBytes, AbstractReportActionConfig actionConfig, java.lang.String reportName, java.lang.String reportPath) throws java.lang.Exception
 - 
getLastRunpublic java.util.Date getLastRun(java.lang.String projectName, java.lang.String reportPath)- Specified by:
- getLastRunin interface- ReportRpc
 
 - 
getLastScheduledRunpublic java.util.Date getLastScheduledRun(java.lang.String projectName, java.lang.String reportPath)- Specified by:
- getLastScheduledRunin interface- ReportRpc
 
 - 
getLastExecutionDurationpublic long getLastExecutionDuration(java.lang.String projectName, java.lang.String reportPath)- Specified by:
- getLastExecutionDurationin interface- ReportRpc
 
 - 
executeReportpublic byte[] executeReport(java.lang.String path, java.lang.String fileType, org.python.core.PyDictionary arguments, java.lang.String project) throws java.lang.Exception- Specified by:
- executeReportin interface- ReportScriptingFunctions
- Throws:
- java.lang.Exception
 
 - 
executeAndDistributepublic void executeAndDistribute(java.lang.String path, org.python.core.PyDictionary parameters, java.lang.String projectName, java.lang.String action, org.python.core.PyDictionary actionSettings) throws java.lang.Exception- Specified by:
- executeAndDistributein interface- ReportScriptingFunctions
- Throws:
- java.lang.Exception
 
 - 
getReportNamesAsDatasetpublic Dataset getReportNamesAsDataset(java.lang.String projectName) throws java.lang.Exception - Specified by:
- getReportNamesAsDatasetin interface- ReportScriptingFunctions
- Throws:
- java.lang.Exception
 
 - 
getReportNamesAsDatasetpublic Dataset getReportNamesAsDataset(java.lang.String projectName, boolean includeReportName) throws java.lang.Exception Description copied from interface:ReportScriptingFunctionsIn 7.x the end of the Path returned did not include the report name, but in 8.x it does. This lets users have either behavior.- Specified by:
- getReportNamesAsDatasetin interface- ReportScriptingFunctions
- Parameters:
- projectName- Name of the project where the report is located. Optional in client.
- includeReportName- If true, the Path returned ends with the report name.
- Returns:
- A dataset of report paths and names for the project. Return columns are Path, Text, and SelectedText. Returns an empty dataset if the project has no reports.
- Throws:
- java.lang.Exception
 
 - 
getReportNamesAsListpublic java.util.List<java.lang.String> getReportNamesAsList(java.lang.String projectName) throws java.lang.Exception- Specified by:
- getReportNamesAsListin interface- ReportScriptingFunctions
- Throws:
- java.lang.Exception
 
 
- 
 
-