Project

General

Profile

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.Repository;
6
import eu.dnetlib.domain.data.RepositoryInterface;
7
import eu.dnetlib.domain.functionality.UserProfile;
8
import eu.dnetlib.repo.manager.shared.*;
9

    
10
import java.util.List;
11
import java.util.Map;
12

    
13
/**
14
 * Created by stefania on 12/8/15.
15
 */
16
@RemoteServiceRelativePath("springGwtServices/repositoryService")
17
public interface RepositoryService extends RemoteService {
18

    
19
    Tuple<List<Repository>, List<Repository>> getRepositoriesByCountry(String country, String mode, boolean includeUnknownCountries) throws RepositoryServiceException;
20

    
21
    List<String> getRepositoryUrlsOfUser(String userEmail, boolean includeShared, boolean includeByOthers) throws RepositoryServiceException;
22

    
23
    Repository getRepository(String repoId) throws RepositoryServiceException;
24

    
25
    Map<String, String> getCountries(Boolean existingOnly, String mode) throws RepositoryServiceException;
26

    
27
    Map<String, String> getCountries() throws RepositoryServiceException;
28

    
29
    List<Timezone> getTimezones() throws RepositoryServiceException;
30

    
31
    List<String> getTypologies() throws RepositoryServiceException;
32

    
33
    Map<String, String> getDatasourceClasses(String mode) throws RepositoryServiceException;
34

    
35
    Map<String, String> getCompatibilityClasses(String mode) throws RepositoryServiceException;
36

    
37
    void storeRepository(Repository repo, String mode) throws RepositoryServiceException;
38

    
39
    void updateRepositoryInformation(Repository repo) throws RepositoryServiceException;
40

    
41
    RepositoryInterface updateInterface(RepositoryInterface iFace, String repoId, String datatype) throws RepositoryServiceException;
42

    
43
    RepositoryInterface insertInterface(RepositoryInterface iFace, String repoId, String datatype) throws RepositoryServiceException;
44

    
45
    void deleteInterface(String repoId, RepositoryInterface iFace, String datatype) throws RepositoryServiceException;
46

    
47
    void deleteInterfaces(String repoId, List<RepositoryInterface> iFaces, String datatype) throws RepositoryServiceException;
48

    
49
    DatasourceVocabularies getDatasourceVocabularies(String mode) throws RepositoryServiceException;
50

    
51
    List<Repository> getRepositoriesByCountry(String country, String mode) throws RepositoryServiceException;
52

    
53
    DatasourcesCollection getRepositoriesOfUser(String userEmail, boolean includeShared, boolean includeByOthers) throws RepositoryServiceException;
54

    
55
    String getLatestUpdateDateOfList(String mode) throws RepositoryServiceException;
56

    
57
    PiwikInfo getPiwikSiteForRepository(String repoId) throws RepositoryServiceException;
58

    
59
    void enableMetricsForRepository(Repository repository, UserProfile requestor) throws RepositoryServiceException;
60

    
61
    String getPiwikScriptForRepository(String repoId) throws RepositoryServiceException;
62

    
63
    List<PiwikInfo> getPiwikSitesForRepositories() throws RepositoryServiceException;
64

    
65
    void approvePiwikSite(String repositoryId) throws RepositoryServiceException;
66
}
(2-2/4)