Merge in RED/persistence-service from RED-6310 to master
* commit '45bd8e600328ce85c8457525b605da2c16dd70c8':
RED-6310: Moved code to create user-preferences to a separate class so that the calling code can handle a persistence exception
RED-6310: Corrected services so that they use the user id instead of wrongly using the entity id
RED-6310: Moved code for multithreaded tests to a helper class
RED-6310: Removed not needed code from test
RED-6310: Added setup of tenant id to fix the service test
RED-6310: Added tests to check if concurrent access to notification-preferences works
RED-6310: Refomatted sql query for readability
Replaced the single jdbc-url field with multiple fields for each url part. This makes it possible to use just a part of the db-connection. We need the schema for multitenancy.
- add new endpoint to prepare the download package with options: the reports list and the download types list
- unapproved files can be present in the package but not in redacted form
- add reports list to download status entity
Merge in RED/persistence-service from RED-5293 to master
* commit '92326e82f572c62f275c98fc47d1848e47f2c2ea':
RED-5293: 500 for invalid tenant
RED-5293: 500 for invalid tenant
RED-5293: 500 for invalid tenant
RED-5293: 500 for invalid tenant
RED-5293: 500 for invalid tenant
RED-5293: 500 for invalid tenant
Merge in RED/persistence-service from RED-2200_5 to master
* commit '870673f679ceaad22150eac0c00a43009c127668':
RED-2200 - Dossier Template export and import
- rework the update of types. Include in export the types not dossier related and the ones that are not deleted.
- at import and existing template for existing types which are not included in archive that are system managed just delete the entries
- in case of restoring a deleted type, undelete it first and then update the type
- when import as a new template and template's name is not valid, set a valid one
- download cleanup job updated to fix null pointer exception for export downloads