Commit Graph

316 Commits

Author SHA1 Message Date
René Pfeuffer
c35363b79f Store repository id in git config for each repository
This is needed after migration from v1 to v2 and is done in
GitV1UpdateStep.java. Therefore we hat to make the 'forAllPaths' method
in PathBasedRepositoryLocationResolver available in the interface of
RepositoryLocationResolver.
2019-07-03 07:48:06 +02:00
Eduard Heimbuch
841df69fc3 check RepoId in InMemoryConfigurationStoreFactory 2019-06-28 08:53:03 +02:00
René Pfeuffer
f8954846c4 Add test support for plugin migration 2019-06-21 11:09:41 +02:00
René Pfeuffer
d3b65ac3bd Check stored values instead of resulting xml files 2019-06-19 10:38:22 +02:00
René Pfeuffer
d43ad44da9 Enhance in-memory store factories for tests 2019-06-19 10:14:29 +02:00
René Pfeuffer
fae3de7b6c Extract update step test util 2019-06-19 09:31:56 +02:00
René Pfeuffer
b274952fa9 Create explicit method to create new repository locations 2019-06-05 14:27:35 +02:00
René Pfeuffer
e52518a12b Cleanup
- Mark PathBasedRepositoryLocationResolver as singleton so that other
  users will get the same instance and will not overwrite the paths
  set by migration.
- Set path kept by InlineMigrationStrategy in location resolver to
  store the path.
- Add logging
- Add type of repository to migration web page
2019-06-05 08:21:37 +02:00
René Pfeuffer
6244713970 Move constant to interface 2019-06-03 13:47:05 +02:00
René Pfeuffer
64fcdde749 Create v2 repository entities for old v1 repositories 2019-05-21 13:09:33 +02:00
René Pfeuffer
a83e2813a3 Fix path computation and resolving 2019-05-10 13:26:06 +02:00
René Pfeuffer
7f4792ec49 Remove PathBasedRepositoryDAO
The computation of the file path for the repository is done by
RepositoryLocationResolver.
2019-05-10 08:06:36 +02:00
René Pfeuffer
c44d38cc61 Introduce abstraction for repository location 2019-05-09 14:08:18 +02:00
Sebastian Sdorra
7c6bfdaaac removes admin role 2019-03-21 10:46:11 +01:00
René Pfeuffer
accd20538e Fix class loader for creation of vcs version string
Use UberClassLoader in
AbstractSimpleRepositoryHandler#getStringFromResource

Therefore pass through plugin loader
2019-02-04 14:35:51 +01:00
Sebastian Sdorra
b231499cd0 merge with branch 1.x 2019-01-29 09:42:03 +01:00
René Pfeuffer
ad65c8cd02 Use PermissionDescriptor instead of String 2019-01-17 13:21:20 +01:00
René Pfeuffer
ffa013de68 Merge with 2.0.0-m3 2018-12-20 10:44:44 +01:00
Sebastian Sdorra
13e3d54100 added constructor with predefined store 2018-12-18 14:55:38 +01:00
Sebastian Sdorra
3daf4f7674 implemented in-memory version of DataStore for testing 2018-12-17 14:58:51 +01:00
René Pfeuffer
dbbe467479 Remove old property for default branch 2018-12-12 17:30:23 +01:00
René Pfeuffer
6806a3bf6f Remove old TODO 2018-12-04 13:23:03 +01:00
René Pfeuffer
8952e755df Split up store parameters into typed and untyped 2018-12-04 09:23:12 +01:00
René Pfeuffer
3021bea65a Multiply floating store factories for type safety 2018-12-04 08:56:39 +01:00
René Pfeuffer
33f3216164 Make type optional 2018-12-03 16:30:19 +01:00
René Pfeuffer
44d99f55f2 Do no longer expose StoreParameters 2018-12-03 12:28:35 +01:00
René Pfeuffer
3638d3520f Use static method for new StoreParameters instance 2018-12-03 11:28:03 +01:00
René Pfeuffer
ab8b3bae42 Merge with 2.0.0-m3 2018-12-03 08:28:47 +01:00
Sebastian Sdorra
84dd6bf60f fix some code smells reported by sonarqube 2018-11-30 08:19:47 +01:00
Mohamed Karray
171f4e2f07 merge 2018-11-29 16:59:04 +01:00
Mohamed Karray
37f4a2b669 merge 2018-11-29 16:01:43 +01:00
Sebastian Sdorra
e9401624a7 re implement XmlRepositoryDAO 2018-11-28 19:49:55 +01:00
Mohamed Karray
fb79cbfd02 merge + refactor getStoreDirectory 2018-11-28 15:14:49 +01:00
René Pfeuffer
d4db39755f Harmonize repository resolution 2018-11-27 15:31:57 +01:00
Mohamed Karray
7a1de0f67b add the interface StoreFactory and refactor storeFactories 2018-11-27 11:35:02 +01:00
René Pfeuffer
095198cf74 Remove dead code 2018-11-26 12:48:41 +01:00
René Pfeuffer
0f7e49d20f Bring constant home 2018-11-23 15:52:21 +01:00
René Pfeuffer
3d671caada Let dao create repository base directory before native creation 2018-11-23 15:04:59 +01:00
René Pfeuffer
20f5e7be1f Cleanup usage of InitialRepositoryLocationResolver and RepositoryLocationResolver 2018-11-22 17:06:29 +01:00
René Pfeuffer
00e3cbec57 Refactor directories in RepositoryPath and dao 2018-11-22 12:29:26 +01:00
Mohamed Karray
8aaea44f1a use relative path for repository directory 2018-11-22 07:05:17 +01:00
Mohamed Karray
bb1c84ba24 modify metadata.xml only if needed
introduce a defaultRepositoryDirectory in the XmlRepositoryDatabase
Bugfix: modify repository with changed location
2018-11-21 12:01:13 +01:00
Mohamed Karray
39e5c19251 merge 2018-11-15 11:28:33 +01:00
Mohamed Karray
f8ae7cedf7 Refactor the repository store implementation in order to store repositories in specific paths. 2018-11-15 10:04:16 +01:00
René Pfeuffer
6eb3c38655 Create error response for already existing entities 2018-10-25 15:31:42 +02:00
René Pfeuffer
d185743ef0 Create error response for concurrent modifications 2018-10-25 13:48:00 +02:00
Mohamed Karray
d2dbccb80c remove throws NotFoundException and fix modify password 2018-10-16 10:47:52 +02:00
Mohamed Karray
9b7e34b08b add tag endpoints 2018-09-04 17:38:28 +02:00
René Pfeuffer
f5600f60fb Merge with 2.0.0-m3 2018-08-30 10:04:06 +02:00
René Pfeuffer
fafb336512 Fix tests for validation 2018-08-24 16:30:43 +02:00