1 |
49080
|
michele.ar
|
package eu.dnetlib.enabling.datasources.common;
|
2 |
26600
|
sandro.lab
|
|
3 |
|
|
import java.util.List;
|
4 |
|
|
|
5 |
49876
|
claudio.at
|
public interface DatasourceManagerCommon<DS extends Datasource<?, ?>, API extends Api> {
|
6 |
26600
|
sandro.lab
|
|
7 |
49659
|
michele.ar
|
DS getDs(String id) throws DatasourceManagerException;
|
8 |
26600
|
sandro.lab
|
|
9 |
49659
|
michele.ar
|
List<? extends Api> getApis(String dsId) throws DatasourceManagerException;
|
10 |
33824
|
michele.ar
|
|
11 |
49659
|
michele.ar
|
void deleteDs(String dsId) throws DatasourceManagerException;
|
12 |
26600
|
sandro.lab
|
|
13 |
49659
|
michele.ar
|
void deleteApi(String dsId, String apiId) throws DatasourceManagerException;
|
14 |
26600
|
sandro.lab
|
|
15 |
49659
|
michele.ar
|
void addApi(API api) throws DatasourceManagerException;
|
16 |
26600
|
sandro.lab
|
|
17 |
49659
|
michele.ar
|
void setManaged(String id, boolean managed) throws DatasourceManagerException;
|
18 |
26600
|
sandro.lab
|
|
19 |
49876
|
claudio.at
|
boolean isManaged(String id) throws DatasourceManagerException;
|
20 |
|
|
|
21 |
49659
|
michele.ar
|
void saveDs(DS datasource) throws DatasourceManagerException;
|
22 |
26600
|
sandro.lab
|
|
23 |
49899
|
claudio.at
|
void updateCompliance(String dsId, String apiId, String compliance) throws DatasourceManagerException;
|
24 |
33824
|
michele.ar
|
|
25 |
26600
|
sandro.lab
|
}
|