Class GatewayDataSourceRegistry
java.lang.Object
com.inductiveautomation.reporting.gateway.api.GatewayDataSourceRegistry
This registry holds the types of report data sources usable in the gateway for generating reports. To add your own
type of report data source, implement
ReportDataSource
and then in a Gateway hook class, register it like
so:
GatewayDataSourceRegistry.get(context).register(myDataSource);
Created by carl.gould on 1/13/2015.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindDataSource
(String id) Look up the data source represented by the given id.Look up the query source represented by the given id.static GatewayDataSourceRegistry
get
(GatewayContext context) void
register
(QuerySource querySource) Adds the given query source to the list of registered query sourcesvoid
register
(ReportDataSource dataSource) Adds the given data source to the list of registered data typesRemoves the data source represented by the given idRemoves the query source represented by the given id
-
Constructor Details
-
GatewayDataSourceRegistry
public GatewayDataSourceRegistry()
-
-
Method Details
-
get
-
register
Adds the given data source to the list of registered data types -
unregisterDataSource
Removes the data source represented by the given id -
findDataSource
Look up the data source represented by the given id. -
register
Adds the given query source to the list of registered query sources -
unregisterQuerySource
Removes the query source represented by the given id -
findQuerySource
Look up the query source represented by the given id.
-