Revision 61375
Added by Konstantinos Spyrou almost 3 years ago
RepositoryService.java | ||
---|---|---|
14 | 14 |
public interface RepositoryService { |
15 | 15 |
|
16 | 16 |
|
17 |
Country[] getCountries() ; |
|
17 |
// TODO: move this elsewhere |
|
18 |
Country[] getCountries(); |
|
18 | 19 |
|
19 | 20 |
List<Repository> getRepositories(List<String> ids) throws JSONException; |
20 | 21 |
|
... | ... | |
26 | 27 |
|
27 | 28 |
List<RepositorySnippet> getRepositoriesByCountry(String country, String mode, Boolean managed) throws JSONException, IOException; |
28 | 29 |
|
30 |
// TODO: remove? |
|
29 | 31 |
List<Repository> getRepositoriesOfUser(String page, String size) throws JSONException, IOException; |
30 | 32 |
|
33 |
// TODO: remove? |
|
31 | 34 |
List<Repository> getRepositoriesOfUser(String userEmail, |
32 | 35 |
String page, |
33 | 36 |
String size) throws JSONException, IOException; |
... | ... | |
37 | 40 |
List<RepositorySnippet> getRepositoriesSnippetOfUser(String userEmail, String page, String size) throws Exception; |
38 | 41 |
|
39 | 42 |
RepositorySnippet getRepositorySnippetById(String id) throws JSONException, ResourceNotFoundException; |
43 |
|
|
40 | 44 |
Repository getRepositoryById(String id) throws JSONException, ResourceNotFoundException; |
41 | 45 |
|
42 | 46 |
List<AggregationDetails> getRepositoryAggregations(String id, int from, int size) throws JSONException; |
43 | 47 |
|
44 |
Map<String,List<AggregationDetails>> getRepositoryAggregationsByYear(String id) throws JSONException; |
|
48 |
Map<String, List<AggregationDetails>> getRepositoryAggregationsByYear(String id) throws JSONException;
|
|
45 | 49 |
|
46 | 50 |
List<Repository> getRepositoriesByName(String name, |
47 | 51 |
String page, |
48 | 52 |
String size) throws JSONException; |
49 | 53 |
|
50 | 54 |
List<RepositorySnippet> searchRegisteredRepositories(String country, String typology, String englishName, |
51 |
String officialName, String requestSortBy, String order,
|
|
52 |
int page, int pageSize) throws Exception;
|
|
55 |
String officialName, String requestSortBy, String order, |
|
56 |
int page, int pageSize) throws Exception; |
|
53 | 57 |
|
54 | 58 |
List<RepositoryInterface> getRepositoryInterface(String id) throws JSONException; |
55 | 59 |
|
... | ... | |
72 | 76 |
|
73 | 77 |
List<String> getUrlsOfUserRepos(String user_email, |
74 | 78 |
String page, |
75 |
String size) throws JSONException;
|
|
79 |
String size); |
|
76 | 80 |
|
77 | 81 |
List<String> getDatasourceVocabularies(String mode); |
78 | 82 |
|
... | ... | |
84 | 88 |
|
85 | 89 |
MetricsInfo getMetricsInfoForRepository(String repoId) throws RepositoryServiceException; |
86 | 90 |
|
87 |
Map<String, String> getListLatestUpdate(String mode) throws RepositoryServiceException, JSONException;
|
|
91 |
Map<String, String> getListLatestUpdate(String mode) throws JSONException; |
|
88 | 92 |
|
89 | 93 |
RepositoryInterface updateRepositoryInterface(String repoId, String registeredBy, String comment, RepositoryInterface repositoryInterface) throws Exception; |
90 | 94 |
|
Also available in: Unified diff
minor refactoring