Revision 61372
Added by Konstantinos Spyrou over 2 years ago
RepositoryController.java | ||
---|---|---|
66 | 66 |
@PreAuthorize("hasAuthority('REGISTERED_USER')") |
67 | 67 |
public List<RepositorySnippet> getRepositoriesSnippetOfUser( |
68 | 68 |
@PathVariable("page") String page, |
69 |
@PathVariable("size") String size) throws JSONException, IOException {
|
|
70 |
return repositoryService.getRepositoriesSnippetOfUser(((OIDCAuthenticationToken) SecurityContextHolder.getContext().getAuthentication()).getUserInfo().getEmail(), page, size);
|
|
69 |
@PathVariable("size") String size) throws Exception { |
|
70 |
return repositoryService.getRepositoriesSnippetOfUser(page, size); |
|
71 | 71 |
} |
72 | 72 |
|
73 | 73 |
@RequestMapping(value = "/user/repositories/{page}/{size}", method = RequestMethod.GET, |
... | ... | |
77 | 77 |
public List<Repository> getRepositoriesOfUser( |
78 | 78 |
@PathVariable("page") String page, |
79 | 79 |
@PathVariable("size") String size) throws JSONException, IOException { |
80 |
return repositoryService.getRepositoriesOfUser(((OIDCAuthenticationToken) SecurityContextHolder.getContext().getAuthentication()).getUserInfo().getEmail(), page, size);
|
|
80 |
return repositoryService.getRepositoriesOfUser(page, size); |
|
81 | 81 |
} |
82 | 82 |
|
83 | 83 |
@RequestMapping(value = "/searchRegisteredRepositories/{page}/{size}", method = RequestMethod.GET, |
Also available in: Unified diff
1. optimization in retrieval time of repositories/snippets of authenticated user
2. Marked with FIXME methods that need attention