1
|
package eu.dnetlib.repo.manager.client.services;
|
2
|
|
3
|
import com.google.gwt.user.client.rpc.RemoteService;
|
4
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
5
|
import eu.dnetlib.domain.data.PiwikInfo;
|
6
|
import eu.dnetlib.domain.data.Repository;
|
7
|
import eu.dnetlib.domain.data.RepositoryInterface;
|
8
|
import eu.dnetlib.domain.functionality.UserProfile;
|
9
|
import eu.dnetlib.repo.manager.shared.*;
|
10
|
import org.json.JSONException;
|
11
|
|
12
|
import java.util.List;
|
13
|
import java.util.Map;
|
14
|
|
15
|
/**
|
16
|
* Created by stefania on 12/8/15.
|
17
|
*/
|
18
|
@RemoteServiceRelativePath("springGwtServices/repositoryService")
|
19
|
public interface RepositoryService extends RemoteService {
|
20
|
|
21
|
Tuple<List<Repository>, List<Repository>> getRepositoriesByCountry(String country, String mode, boolean includeUnknownCountries) throws RepositoryServiceException;
|
22
|
|
23
|
List<String> getRepositoryUrlsOfUser(String userEmail, boolean includeShared, boolean includeByOthers) throws RepositoryServiceException;
|
24
|
|
25
|
Repository getRepository(String repoId) throws RepositoryServiceException;
|
26
|
|
27
|
Map<String, String> getCountries(Boolean existingOnly, String mode) throws RepositoryServiceException;
|
28
|
|
29
|
Map<String, String> getCountries() throws RepositoryServiceException;
|
30
|
|
31
|
List<Timezone> getTimezones() throws RepositoryServiceException;
|
32
|
|
33
|
List<String> getTypologies() throws RepositoryServiceException;
|
34
|
|
35
|
Map<String, String> getDatasourceClasses(String mode) throws RepositoryServiceException;
|
36
|
|
37
|
Map<String, String> getCompatibilityClasses(String mode) throws RepositoryServiceException;
|
38
|
|
39
|
void storeRepository(Repository repo, String mode) throws RepositoryServiceException;
|
40
|
|
41
|
void updateRepositoryInformation(Repository repo) throws RepositoryServiceException;
|
42
|
|
43
|
RepositoryInterface updateInterface(RepositoryInterface iFace, String repoId, String datatype) throws RepositoryServiceException;
|
44
|
|
45
|
RepositoryInterface insertInterface(RepositoryInterface iFace, String repoId, String datatype) throws RepositoryServiceException;
|
46
|
|
47
|
void deleteInterface(String repoId, RepositoryInterface iFace, String datatype) throws RepositoryServiceException;
|
48
|
|
49
|
void deleteInterfaces(String repoId, List<RepositoryInterface> iFaces, String datatype) throws RepositoryServiceException;
|
50
|
|
51
|
DatasourceVocabularies getDatasourceVocabularies(String mode) throws RepositoryServiceException;
|
52
|
|
53
|
List<Repository> getRepositoriesByCountry(String country, String mode) throws RepositoryServiceException;
|
54
|
|
55
|
DatasourcesCollection getRepositoriesOfUser(String userEmail, boolean includeShared, boolean includeByOthers) throws RepositoryServiceException;
|
56
|
|
57
|
String getLatestUpdateDateOfList(String mode) throws RepositoryServiceException;
|
58
|
|
59
|
eu.dnetlib.domain.data.PiwikInfo getPiwikSiteForRepository(String repoId) throws RepositoryServiceException;
|
60
|
|
61
|
void enableMetricsForRepository(Repository repository, UserProfile requestor) throws RepositoryServiceException;
|
62
|
|
63
|
String getPiwikScriptForRepository(String repoId) throws RepositoryServiceException;
|
64
|
|
65
|
List<PiwikInfo> getPiwikSitesForRepositories() throws RepositoryServiceException;
|
66
|
|
67
|
void markPiwikSiteAsValidated(String repositoryId) throws RepositoryServiceException;
|
68
|
|
69
|
MetricsInfo getMetricsInfoForRepository(String repoId) throws RepositoryServiceException;
|
70
|
|
71
|
|
72
|
Aggregations getRepositoryAggregations(String repoId) throws JSONException;
|
73
|
}
|