Commit Graph

160 Commits

Author SHA1 Message Date
René Pfeuffer
046ccfb2a0 Merge with 2.0.0-m3 2019-06-11 15:02:02 +02:00
René Pfeuffer
72f3334afe Merge with 2.0.0-m3 2019-06-11 13:55:43 +02:00
René Pfeuffer
815c531220 Use file system class to create repository directory 2019-06-06 13:42:57 +02:00
René Pfeuffer
77a1ad50fe Refresh repository dao after repository.xml file was renamed
Without this, the XmlRepositoryDAO will be initialized at a time
where there is no repository-paths.xml file. Therefore the dao cannot
initialize with the existing repositories whose paths are kept in
repositories.xml at that time.

In this commit we trigger a refresh after the file was renamed, so
that the PathBasedRepositoryLocationResolver can read the moved
repository-paths.xml file and all repositories will be found.
2019-06-06 10:45:56 +02:00
René Pfeuffer
b274952fa9 Create explicit method to create new repository locations 2019-06-05 14:27:35 +02:00
René Pfeuffer
a5c65b4e2c Store absolute path for directly set repository locations 2019-06-05 10:45:41 +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
d88b300ac8 Add update step to rename repositories.xml -> repository-paths.xml 2019-05-24 11:55:32 +02:00
René Pfeuffer
1674bc2e7d Bootstrap migration strategies 2019-05-22 14:28:53 +02:00
René Pfeuffer
3d28f800be Adapt unit test 2019-05-21 17:26:02 +02:00
René Pfeuffer
64fcdde749 Create v2 repository entities for old v1 repositories 2019-05-21 13:09:33 +02:00
René Pfeuffer
dad8ea5fa1 Merge with 2.0.0-m3 2019-05-20 08:51:59 +02:00
René Pfeuffer
93025629e6 Migrate verbs to roles if possible 2019-05-15 15:57:18 +02:00
René Pfeuffer
a5f1a5deaa Merge custom roles with migration 2019-05-15 15:01:17 +02:00
René Pfeuffer
0f0401b4dd Update modification date of repository database 2019-05-14 10:42:50 +02:00
René Pfeuffer
749c90d465 Fix missing test file 2019-05-14 10:32:46 +02:00
René Pfeuffer
e0ad5c76a7 Cleanup tests for repository dao 2019-05-14 10:08:45 +02:00
René Pfeuffer
c63510536a Cleanup repository dao 2019-05-10 16:32:14 +02:00
René Pfeuffer
e1625bf92f Make LocationResolver create directories 2019-05-10 15:47:57 +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
René Pfeuffer
c5b20566c1 Fix bugs with integration test 2019-05-07 09:20:19 +02:00
René Pfeuffer
c0760688e9 Join repository roles from the system and from the database 2019-05-03 14:47:49 +02:00
René Pfeuffer
232102716c Create DAO for repository roles 2019-05-03 14:19:33 +02:00
Sebastian Sdorra
8bf82213b8 remove unused imports 2019-01-30 14:48:37 +01:00
Philipp Czora
38172fb8a1 Fixed test 2019-01-29 11:12:49 +01:00
Philipp Czora
ec4fd48e1e Minor cleanup / typo fixes 2019-01-29 09:34:27 +01:00
René Pfeuffer
d011c82def Fix unit test 2019-01-23 10:13:21 +01:00
René Pfeuffer
02b19e51ef Fix repository permission rest interface 2019-01-23 09:47:38 +01:00
René Pfeuffer
ad65c8cd02 Use PermissionDescriptor instead of String 2019-01-17 13:21:20 +01:00
René Pfeuffer
480801d3b0 Do not keep directory for stores 2018-12-17 15:23:25 +01:00
Mohamed Karray
4dce232c43 fix the repository store directory location 2018-12-06 16:27:36 +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
René Pfeuffer
9e7684f003 Peer review 2018-11-30 14:10:00 +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
09a55b9f4b remove unused files 2018-11-28 19:58:03 +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
00ab764dab Store repository id in native config file
Hooks can read this repository type dependant config file and handle
the changes for the correct repository id
2018-11-26 17:22:17 +01:00
René Pfeuffer
095198cf74 Remove dead code 2018-11-26 12:48:41 +01:00