1
|
package eu.dnetlib.openaire.exporter.datasource.clients;
|
2
|
|
3
|
import java.util.List;
|
4
|
|
5
|
import eu.dnetlib.enabling.datasources.common.Api;
|
6
|
import eu.dnetlib.enabling.datasources.common.Datasource;
|
7
|
import eu.dnetlib.enabling.datasources.common.DatasourceManagerCommon;
|
8
|
import eu.dnetlib.enabling.datasources.common.DsmException;
|
9
|
import eu.dnetlib.openaire.exporter.model.datasource.RequestFilter;
|
10
|
import eu.dnetlib.openaire.exporter.model.datasource.RequestSort;
|
11
|
import eu.dnetlib.openaire.exporter.model.datasource.RequestSortOrder;
|
12
|
import eu.dnetlib.openaire.exporter.vocabularies.Country;
|
13
|
import org.springframework.data.domain.Page;
|
14
|
|
15
|
public interface DatasourceDao<DS extends Datasource<?, ?>, API extends Api<?>> extends DatasourceManagerCommon<DS, API> {
|
16
|
|
17
|
// DATASOURCE
|
18
|
|
19
|
List<Country> listCountries() throws DsmException;
|
20
|
|
21
|
Page<DS> search(RequestSort requestSortBy, RequestSortOrder order, RequestFilter requestFilter, int page, int size) throws DsmException;
|
22
|
|
23
|
void updateName(String dsId, String officialname, String englishname) throws DsmException;
|
24
|
|
25
|
void updateLogoUrl(String dsId, String logourl) throws DsmException;
|
26
|
|
27
|
void updateCoordinates(String dsId, Double latitude, Double longitude) throws DsmException;
|
28
|
|
29
|
void updateTimezone(String dsId, String timezone) throws DsmException;
|
30
|
|
31
|
void updateTypology(String dsId, String timezone) throws DsmException;
|
32
|
|
33
|
void updateRegisteringUser(String dsId, String registeredBy) throws DsmException;
|
34
|
|
35
|
void updatePlatform(String dsId, String platform) throws DsmException;
|
36
|
|
37
|
// API
|
38
|
|
39
|
List<String> findApiBaseURLs(RequestFilter requestFilter, int page, int size) throws DsmException;
|
40
|
|
41
|
void updateApiBaseUrl(String apiId, String baseUrl) throws DsmException;
|
42
|
|
43
|
void addApi(final API api) throws DsmException;
|
44
|
}
|