public interface DataSourceManager
DataSource as an OSGi service, this object
automatically add the source and it is accessible by users.Module: datasource-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>datasource-api</artifactId>
</dependency>| Modifier and Type | Method and Description |
|---|---|
boolean |
containsDataSource(DataSource pDataSource)
Check if a DataSource already existed in the DataSourceManager
|
boolean |
deleteDataSource(DataSource pDataSource)
Remove a DataSource from the DataSourceManager
|
Collection<DataCategory> |
getAllCategories()
Returns all data categories
|
Collection<DataSource> |
getAllDataSources()
Returns all data sources registered as OSGi services
|
Collection<DataSource> |
getDataSources(DataCategory category)
Returns all data sources under the given category.
|
Collection<DataSource> |
getDataSources(String providerName)
Returns all data sources from a data provider
|
void |
saveDataSource(DataSource pDataSource)
Save a DataSource to the DataSourceManager
|
Collection<DataSource> getDataSources(DataCategory category)
category - Category of the data source. Network, Table, etc.Collection<DataSource> getDataSources(String providerName)
providerName - name of the data providerCollection<DataSource> getAllDataSources()
Collection<DataCategory> getAllCategories()
boolean deleteDataSource(DataSource pDataSource)
void saveDataSource(DataSource pDataSource)
boolean containsDataSource(DataSource pDataSource)
Copyright 2011 Cytoscape Consortium. All rights reserved.