Project

General

Profile

1
package eu.dnetlib.repo.manager.client;
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.repo.manager.shared.*;
7

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

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

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

    
19
    Repository getRepository(String repoId) throws RepositoryServiceException;
20

    
21
    Map<String, String> getCountries(Boolean existingOnly, String mode) throws RepositoryServiceException;
22

    
23
    Map<String, String> getCountries() throws RepositoryServiceException;
24

    
25
    List<Timezone> getTimezones() throws RepositoryServiceException;
26

    
27
    List<String> getTypologies() throws RepositoryServiceException;
28

    
29
    Map<String, String> getDatasourceClasses(String mode) throws RepositoryServiceException;
30

    
31
    Map<String, String> getCompatibilityClasses(String mode) throws RepositoryServiceException;
32

    
33
    void storeRepository(Repository repo, String mode) throws RepositoryServiceException;
34

    
35
    void updateRepositoryInformation(Repository repo) throws RepositoryServiceException;
36

    
37
    DatasourceVocabularies getDatasourceVocabularies(String mode) throws RepositoryServiceException;
38

    
39
    List<Repository> getRepositoriesByCountry(String country, String mode) throws RepositoryServiceException;
40

    
41
    DatasourcesCollection getRepositoriesOfUser(String userEmail, boolean includeShared, boolean includeByOthers) throws RepositoryServiceException;
42

    
43
}
(10-10/13)