Project

General

Profile

« Previous | Next » 

Revision 60748

View differences:

RepositoryService.java
1
package eu.dnetlib.repo.manager.service;
2

  
3
import eu.dnetlib.domain.data.Repository;
4
import eu.dnetlib.domain.data.RepositoryInterface;
5
import eu.dnetlib.repo.manager.domain.*;
6
import eu.dnetlib.repo.manager.exception.ResourceNotFoundException;
7
import org.json.JSONException;
8
import org.springframework.security.core.Authentication;
9

  
10
import java.io.IOException;
11
import java.util.List;
12
import java.util.Map;
13

  
14
public interface RepositoryService {
15

  
16

  
17
    Country[] getCountries() ;
18

  
19
    List<RepositorySnippet> getRepositoriesByCountry(String country, String mode, Boolean managed) throws JSONException, IOException;
20

  
21
    List<Repository> getRepositoriesOfUser(String userEmail,
22
                                           String page,
23
                                           String size) throws JSONException, IOException;
24

  
25
    List<RepositorySnippet> getRepositoriesSnippetOfUser(String userEmail, String page, String size) throws IOException, JSONException;
26

  
27
    RepositorySnippet getRepositorySnippetById(String id) throws JSONException, ResourceNotFoundException;
28
    Repository getRepositoryById(String id) throws JSONException, ResourceNotFoundException;
29

  
30
    List<AggregationDetails> getRepositoryAggregations(String id, int from, int size) throws JSONException;
31

  
32
    Map<String,List<AggregationDetails>> getRepositoryAggregationsByYear(String id) throws JSONException;
33

  
34
    List<Repository> getRepositoriesByName(String name,
35
                                           String page,
36
                                           String size) throws JSONException;
37

  
38
    List<RepositorySnippet> searchRegisteredRepositories(String country, String typology, String englishName,
39
                                                                String officialName, String requestSortBy, String order,
40
                                                                int page, int pageSize) throws Exception;
41

  
42
    List<RepositoryInterface> getRepositoryInterface(String id) throws JSONException;
43

  
44
    Repository addRepository(String datatype, Repository repository) throws Exception;
45

  
46
    void deleteRepositoryInterface(String id, String registeredBy);
47

  
48
    RepositoryInterface addRepositoryInterface(String datatype,
49
                                               String repoId,
50
                                               String registeredBy,
51
                                               String comment, RepositoryInterface repositoryInterface) throws Exception;
52

  
53
    List<String> getDnetCountries();
54

  
55
    List<String> getTypologies();
56

  
57
    List<Timezone> getTimezones();
58

  
59
    Repository updateRepository(Repository repository, Authentication authentication) throws Exception;
60

  
61
    List<String> getUrlsOfUserRepos(String user_email,
62
                                    String page,
63
                                    String size) throws JSONException;
64

  
65
    List<String> getDatasourceVocabularies(String mode);
66

  
67
    Map<String, String> getCompatibilityClasses(String mode);
68

  
69
    Map<String, String> getDatasourceClasses(String mode);
70

  
71
    String getCountryName(String countryCode);
72

  
73
    MetricsInfo getMetricsInfoForRepository(String repoId) throws RepositoryServiceException;
74

  
75
    Map<String, String> getListLatestUpdate(String mode) throws RepositoryServiceException, JSONException;
76

  
77
    RepositoryInterface updateRepositoryInterface(String repoId, String registeredBy, String comment, RepositoryInterface repositoryInterface) throws Exception;
78

  
79
}

Also available in: Unified diff