From 32feeb06a00cce8a86df06b34065dd58b3bd8a4e Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 4 Sep 2025 16:43:02 +0200 Subject: [PATCH] BACKEND: Introduce `AzureMapsController` for managing Azure Maps configuration with Entra ID integration; add endpoints for configuration retrieval, health checks, and role-based permissions; enhance country dataset in `alldata.sql` with names for better clarity. --- pom.xml | 4 + src/frontend/src/assets/flags/BQ.svg | 18 + .../src/components/UI/AzureMapsComponent.vue | 346 ++++++++++++ .../layout/config/CountryProperties.vue | 218 +++++++- .../components/layout/config/Properties.vue | 97 +++- .../components/layout/edit/SupplierView.vue | 6 +- src/frontend/src/store/country.js | 64 ++- src/frontend/src/store/propertySets.js | 13 +- .../de/avatic/lcc/config/AzureMapsConfig.java | 39 ++ .../controller/maps/AzureMapsController.java | 219 ++++++++ .../de/avatic/lcc/model/country/Country.java | 11 + .../country/CountryRepository.java | 19 +- .../pagination/SearchQueryResult.java | 2 +- .../lcc/service/access/CountryService.java | 5 +- .../generic/CountryTransformer.java | 2 +- src/main/resources/application.properties | 4 + .../resources/master_data/01-properties.sql | 12 - src/main/resources/master_data/02-country.sql | 523 +++++++++--------- src/main/resources/schema.sql | 1 + src/test/resources/master_data/alldata.sql | 502 ++++++++--------- 20 files changed, 1518 insertions(+), 587 deletions(-) create mode 100644 src/frontend/src/assets/flags/BQ.svg create mode 100644 src/frontend/src/components/UI/AzureMapsComponent.vue create mode 100644 src/main/java/de/avatic/lcc/config/AzureMapsConfig.java create mode 100644 src/main/java/de/avatic/lcc/controller/maps/AzureMapsController.java diff --git a/pom.xml b/pom.xml index 6d96570..d0d3f2a 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,10 @@ org.springframework.boot spring-boot-starter-validation + + org.springframework.boot + spring-boot-starter-cache + org.jetbrains annotations diff --git a/src/frontend/src/assets/flags/BQ.svg b/src/frontend/src/assets/flags/BQ.svg new file mode 100644 index 0000000..89b8e1c --- /dev/null +++ b/src/frontend/src/assets/flags/BQ.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/frontend/src/components/UI/AzureMapsComponent.vue b/src/frontend/src/components/UI/AzureMapsComponent.vue new file mode 100644 index 0000000..1adcec3 --- /dev/null +++ b/src/frontend/src/components/UI/AzureMapsComponent.vue @@ -0,0 +1,346 @@ + + + + + \ No newline at end of file diff --git a/src/frontend/src/components/layout/config/CountryProperties.vue b/src/frontend/src/components/layout/config/CountryProperties.vue index cd35639..a68ded1 100644 --- a/src/frontend/src/components/layout/config/CountryProperties.vue +++ b/src/frontend/src/components/layout/config/CountryProperties.vue @@ -1,15 +1,139 @@ @@ -17,4 +141,92 @@ export default { \ No newline at end of file diff --git a/src/frontend/src/components/layout/config/Properties.vue b/src/frontend/src/components/layout/config/Properties.vue index fe155e2..14aa3fa 100644 --- a/src/frontend/src/components/layout/config/Properties.vue +++ b/src/frontend/src/components/layout/config/Properties.vue @@ -1,18 +1,20 @@ \ No newline at end of file diff --git a/src/frontend/src/components/layout/edit/SupplierView.vue b/src/frontend/src/components/layout/edit/SupplierView.vue index a9744c9..82b317f 100644 --- a/src/frontend/src/components/layout/edit/SupplierView.vue +++ b/src/frontend/src/components/layout/edit/SupplierView.vue @@ -16,8 +16,7 @@
{{ coordinatesDMS }}
- map +