Class DesignerDataSourceRegistry
- java.lang.Object
- 
- com.inductiveautomation.reporting.designer.api.DesignerDataSourceRegistry
 
- 
 public final class DesignerDataSourceRegistry extends java.lang.ObjectThis 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 aDataSourceConfigFactoryorQueryConfigFactorywith this registry, as well as a ReportDataSource on the gateway.- Since:
- 7.8.0
 
- 
- 
Constructor SummaryConstructors Constructor Description DesignerDataSourceRegistry()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.base.Optional<DataSourceConfigFactory>findDataSource(java.lang.String id)Look up a datasource factory by IDcom.google.common.base.Optional<QueryConfigFactory>findQueryType(java.lang.String id)Look up a query factory by IDstatic DesignerDataSourceRegistryget(DesignerContext context)This is how you get an instance of the registry.java.lang.Iterable<DataSourceConfigFactory>getDataSources()Find all of the datasources that have been registeredjava.lang.Iterable<QueryConfigFactory>getQueryTypes()Find 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>unregisterDataSource(java.lang.String id)com.google.common.base.Optional<QueryConfigFactory>unregisterQueryType(java.lang.String id)
 
- 
- 
- 
Method Detail- 
getpublic static DesignerDataSourceRegistry get(DesignerContext context) This is how you get an instance of the registry.
 - 
registerpublic void register(DataSourceConfigFactory factory) Register your data source config factory here.
 - 
registerpublic void register(QueryConfigFactory factory) Register your query type factory here
 - 
unregisterDataSourcepublic com.google.common.base.Optional<DataSourceConfigFactory> unregisterDataSource(java.lang.String id) 
 - 
unregisterQueryTypepublic com.google.common.base.Optional<QueryConfigFactory> unregisterQueryType(java.lang.String id) 
 - 
findDataSourcepublic com.google.common.base.Optional<DataSourceConfigFactory> findDataSource(java.lang.String id) Look up a datasource factory by ID
 - 
findQueryTypepublic com.google.common.base.Optional<QueryConfigFactory> findQueryType(java.lang.String id) Look up a query factory by ID
 - 
getDataSourcespublic java.lang.Iterable<DataSourceConfigFactory> getDataSources() Find all of the datasources that have been registered
 - 
getQueryTypespublic java.lang.Iterable<QueryConfigFactory> getQueryTypes() Find all of the query types that have been registered
 
- 
 
-