Commit Graph

307 Commits

Author SHA1 Message Date
René Pfeuffer
8f139c8d4a Reduce code duplication for json object modification 2018-09-28 16:53:09 +02:00
René Pfeuffer
6361ae35c1 Add config links for git, hg and svn 2018-09-28 14:17:48 +02:00
René Pfeuffer
88506b0633 Remove unnecessary annotations 2018-09-18 08:58:03 +02:00
René Pfeuffer
a5dcc8cf8a Merge with 2.0.0-m3 2018-09-14 17:47:45 +02:00
René Pfeuffer
4d60ebd54e Use constants for repository types 2018-09-14 10:31:16 +02:00
René Pfeuffer
e88639ab81 Implement permission filters as decorator for servlets 2018-09-14 10:21:00 +02:00
René Pfeuffer
7de9f69061 Add servlet decorators for hg and svn 2018-09-14 09:36:56 +02:00
Mohamed Karray
188d2d8cef integration tests for modifications 2018-09-13 17:29:52 +02:00
Mohamed Karray
4697c55f96 implement modification api in git, svn and hg. implement the endpoint 2018-09-13 11:57:10 +02:00
René Pfeuffer
145502a7b8 Introduce extension point for further protocol implementations 2018-09-13 10:35:10 +02:00
René Pfeuffer
7c09f35ac8 Rename UriInfoStore to ScmPathInfoStore 2018-09-12 08:53:15 +02:00
René Pfeuffer
5b35fb2372 Fallback to configured base url if UriInfoStore not set 2018-09-11 16:03:32 +02:00
René Pfeuffer
e90dc11bc7 Cleanup for http protocol servlet changes 2018-09-11 10:50:53 +02:00
René Pfeuffer
bf9de8ea8e Reduce dependency to RepositoryProvider in provider servlets 2018-09-11 07:40:24 +02:00
René Pfeuffer
1b200ae69d Remove http request filter implementation from permission filters 2018-09-10 16:58:52 +02:00
René Pfeuffer
eb378de87f Use existing permission filters in http servlet protocol
Just as a POC, fix logging and public access.
2018-09-10 16:35:50 +02:00
René Pfeuffer
a490a20ac9 Inject uri info for http protocol url computation 2018-09-10 14:48:22 +02:00
René Pfeuffer
ce518ad784 Inject repository from service provider 2018-09-10 14:00:13 +02:00
René Pfeuffer
50a4133dff Remove old type dependant repo uri functions 2018-09-10 10:08:51 +02:00
René Pfeuffer
eff51c3b37 Remove not thrown exceptions from declaration 2018-09-10 08:34:47 +02:00
René Pfeuffer
5b5bfd342a Add POC protocol servlet with delegate to svn and hg 2018-09-06 17:39:47 +02:00
René Pfeuffer
4eb75bc621 Initialize servlet and fix paths 2018-09-06 15:33:24 +02:00
René Pfeuffer
c4b34752b4 Fix integration tests by delegating to existing servlets 2018-09-04 20:29:17 +02:00
René Pfeuffer
b55955f273 Add basic concept for scm protocol 2018-09-03 15:52:59 +02:00
René Pfeuffer
1befe2e195 Merge with 2.0.0-m3 2018-08-30 11:48:58 +02:00
René Pfeuffer
ca563dd874 Fix default revision for hg and fix encoded slashes in URLs 2018-08-23 15:52:02 +02:00
René Pfeuffer
a0f74e3329 Replace model object exception with generic ones and migrate guice 2018-08-21 07:53:33 +02:00
René Pfeuffer
5d6fcffe5e Clean up hg cat command 2018-08-15 09:59:35 +02:00
René Pfeuffer
c8c1cad67f Add raw stream result to cat command 2018-08-14 17:22:30 +02:00
Johannes Schnatterer
499be7314e Merged 2.0.0-m3 into feature/repository_config_v2_endpoint 2018-08-07 17:37:25 +02:00
Johannes Schnatterer
15da105683 Commits missing changes for HgConfigPackagesToDtoMapper 2018-08-07 17:23:52 +02:00
Johannes Schnatterer
45822c44cb Deliver HgConfigPackages no longer as embedded.
They don't have an own identity in terms of REST and its much simpler
to return a simple list instead of an _embedded list.
Also gets rid of one HgConfigPackageToDtoMapper.
2018-08-07 16:47:03 +02:00
Sebastian Sdorra
15255aeeb1 merge with branch feature/repositories-ui 2018-08-07 16:34:26 +02:00
Johannes Schnatterer
adde70f090 Fixes NPE in HgConfigPackageResource for non-existing packages. 2018-08-07 10:44:18 +02:00
Johannes Schnatterer
869821f6db Fixes some SQ Issues regarding DTO add(Links) methods. 2018-08-06 17:47:46 +02:00
Johannes Schnatterer
730c2ae358 Adds test for HgConfigAutoConfigurationResource, its DTO and mappers. 2018-08-06 17:39:05 +02:00
Johannes Schnatterer
45e48e1834 Adds test for HgConfigInstallationsResource, its DTO and mappers. 2018-08-06 17:00:50 +02:00
Johannes Schnatterer
7d59975c80 Adds test for HgConfigPackageResource, its DTO and mappers. 2018-08-06 16:21:46 +02:00
Johannes Schnatterer
b65a8c6b8d Implements Hg Config Sub Resources 2018-08-02 18:36:28 +02:00
Johannes Schnatterer
8c8d908378 Config Resource DTO Mappers: Make use of BaseMapper.
More DRY.
2018-08-02 15:03:30 +02:00
Johannes Schnatterer
62087521be Config Resources: Makes permission names publicly available 2018-08-02 14:16:26 +02:00
Johannes Schnatterer
988dfbd689 Config Resources: Makes REST API docs for 403 more precise 2018-08-02 13:21:07 +02:00
Johannes Schnatterer
982d502203 Config Resources: Gets rid of unnecessary UriInfo param 2018-08-02 13:18:21 +02:00
Johannes Schnatterer
8b16a0251a VndMedia Type classes: Adds private constructor 2018-08-02 13:02:43 +02:00
Sebastian Sdorra
99ecc8cba2 implemented rest endpoint for repository types 2018-08-02 11:56:35 +02:00
Johannes Schnatterer
f20865c658 HgPlugin Config: Minor corrections 2018-08-02 11:56:06 +02:00
Johannes Schnatterer
31540a7ecc Makes REST API doc for config endpoints more precise 2018-08-02 11:52:30 +02:00
Johannes Schnatterer
eee325e185 HgPlugin Config: Adds v2 endpoint 2018-08-02 10:59:34 +02:00
Johannes Schnatterer
7572580ac1 Create fine-grained configuration permissions.
No more hard-coded isAdmin() checks.
2018-07-30 17:41:00 +02:00
Sebastian Sdorra
8a2346271a do not expose exception to the client 2018-07-16 13:51:37 +02:00