Class DesignerDataSourceRegistry
java.lang.Object
com.inductiveautomation.reporting.designer.api.DesignerDataSourceRegistry
This registry holds the data source configuration datasources that have been registered on the designer. Authors who
 want to create new reporting data sources or queries must register a 
DataSourceConfigFactory or
 QueryConfigFactory with this registry, as well as a ReportDataSource on the gateway.- Since:
- 7.8.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncom.google.common.base.Optional<DataSourceConfigFactory>findDataSource(String id) Look up a datasource factory by IDcom.google.common.base.Optional<QueryConfigFactory>findQueryType(String id) Look up a query factory by IDstatic DesignerDataSourceRegistryget(DesignerContext context) This is how you get an instance of the registry.Find all of the datasources that have been registeredFind all of the query types that have been registeredvoidregister(DataSourceConfigFactory factory) Register your data source config factory here.voidregister(QueryConfigFactory factory) Register your query type factory herecom.google.common.base.Optional<DataSourceConfigFactory>com.google.common.base.Optional<QueryConfigFactory>
- 
Constructor Details- 
DesignerDataSourceRegistrypublic DesignerDataSourceRegistry()
 
- 
- 
Method Details- 
getThis is how you get an instance of the registry.
- 
registerRegister your data source config factory here.
- 
registerRegister your query type factory here
- 
unregisterDataSource
- 
unregisterQueryType
- 
findDataSourceLook up a datasource factory by ID
- 
findQueryTypeLook up a query factory by ID
- 
getDataSourcesFind all of the datasources that have been registered
- 
getQueryTypesFind all of the query types that have been registered
 
-