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.repo.manager.shared.*;
8

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

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

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

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

    
22
    Repository getRepository(String repoId) throws RepositoryServiceException;
23

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

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

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

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

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

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

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

    
38
    void updateRepositoryInformation(Repository repo) throws RepositoryServiceException;
39

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

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

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

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

    
48
    DatasourceVocabularies getDatasourceVocabularies(String mode) throws RepositoryServiceException;
49

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

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

    
54
    String getLatestUpdateDateOfList(String mode) throws RepositoryServiceException;
55
}
(1-1/3)