1
|
package eu.dnetlib.repo.manager.service;
|
2
|
|
3
|
|
4
|
import eu.dnetlib.domain.data.PiwikInfo;
|
5
|
import eu.dnetlib.repo.manager.domain.OrderByField;
|
6
|
import eu.dnetlib.repo.manager.domain.OrderByType;
|
7
|
import eu.dnetlib.repo.manager.domain.RepositoryServiceException;
|
8
|
import org.springframework.http.ResponseEntity;
|
9
|
|
10
|
import java.util.List;
|
11
|
|
12
|
|
13
|
public interface PiWikService {
|
14
|
|
15
|
PiwikInfo getPiwikSiteForRepo(String repositoryId);
|
16
|
|
17
|
PiwikInfo savePiwikInfo(PiwikInfo piwikInfo);
|
18
|
|
19
|
List<PiwikInfo> getPiwikSitesForRepos(OrderByField orderByField, OrderByType orderByType, int from, int quantity, String searchField);
|
20
|
|
21
|
int getPiwikSitesTotals(String searchField);
|
22
|
|
23
|
ResponseEntity<Object> approvePiwikSite(String repositoryId);
|
24
|
|
25
|
String getOpenaireId(String repositoryid);
|
26
|
|
27
|
ResponseEntity<Object> markPiwikSiteAsValidated(String repositoryId) throws RepositoryServiceException;
|
28
|
|
29
|
PiwikInfo enableMetricsForRepository(String officialName, String repoWebsite, PiwikInfo piwikInfo) throws RepositoryServiceException;
|
30
|
}
|