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 Summary
Constructors -
Method Summary
Modifier 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 DesignerDataSourceRegistry
get
(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 registeredvoid
register
(DataSourceConfigFactory factory) Register your data source config factory here.void
register
(QueryConfigFactory factory) Register your query type factory herecom.google.common.base.Optional<DataSourceConfigFactory>
com.google.common.base.Optional<QueryConfigFactory>
-
Constructor Details
-
DesignerDataSourceRegistry
public DesignerDataSourceRegistry()
-
-
Method Details
-
get
This is how you get an instance of the registry. -
register
Register your data source config factory here. -
register
Register your query type factory here -
unregisterDataSource
-
unregisterQueryType
-
findDataSource
Look up a datasource factory by ID -
findQueryType
Look up a query factory by ID -
getDataSources
Find all of the datasources that have been registered -
getQueryTypes
Find all of the query types that have been registered
-