2019-02-16 11:04:41 +01:00
|
|
|
package eu.dnetlib.repo.manager.service;
|
|
|
|
|
|
|
|
|
|
|
|
import eu.dnetlib.domain.data.PiwikInfo;
|
2019-07-22 15:00:51 +02:00
|
|
|
import eu.dnetlib.repo.manager.domain.OrderByField;
|
|
|
|
import eu.dnetlib.repo.manager.domain.OrderByType;
|
2019-11-28 12:25:56 +01:00
|
|
|
import eu.dnetlib.repo.manager.domain.RepositoryServiceException;
|
2019-02-16 11:04:41 +01:00
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
public interface PiWikService {
|
|
|
|
|
|
|
|
PiwikInfo getPiwikSiteForRepo(String repositoryId);
|
|
|
|
|
|
|
|
PiwikInfo savePiwikInfo(PiwikInfo piwikInfo);
|
|
|
|
|
2019-07-22 15:00:51 +02:00
|
|
|
List<PiwikInfo> getPiwikSitesForRepos(OrderByField orderByField, OrderByType orderByType, int from, int quantity, String searchField);
|
2019-02-16 11:04:41 +01:00
|
|
|
|
2019-08-01 13:55:17 +02:00
|
|
|
int getPiwikSitesTotals(String searchField);
|
2019-07-23 10:07:39 +02:00
|
|
|
|
2019-02-16 11:04:41 +01:00
|
|
|
ResponseEntity<Object> approvePiwikSite(String repositoryId);
|
|
|
|
|
|
|
|
String getOpenaireId(String repositoryid);
|
|
|
|
|
|
|
|
ResponseEntity<Object> markPiwikSiteAsValidated(String repositoryId) throws RepositoryServiceException;
|
|
|
|
|
|
|
|
PiwikInfo enableMetricsForRepository(String officialName, String repoWebsite, PiwikInfo piwikInfo) throws RepositoryServiceException;
|
2021-07-26 13:34:42 +02:00
|
|
|
|
|
|
|
Integer getTotal();
|
|
|
|
|
|
|
|
Integer getValidated(boolean validated);
|
2019-02-16 11:04:41 +01:00
|
|
|
}
|