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