From 774aa5d898a7f24e28f53b1870c04bce308dcaec Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Tue, 18 Jun 2024 13:46:16 +0100 Subject: [PATCH] feat: Update AppCenter Data injection to use JSON - MEED-6794 - Meeds-io/MIPs#132 (#132) Prior to this change, App Center Data was injected at startup time using XML file. This change will introduce AppCenter applications using JSON format. --- .../src/main/resources/applications.json | 22 ++++++ .../webapp/WEB-INF/conf/configuration.xml | 1 - .../conf/news/app-center-configuration.xml | 70 ------------------- 3 files changed, 22 insertions(+), 71 deletions(-) create mode 100644 content-service/src/main/resources/applications.json delete mode 100644 content-webapp/src/main/webapp/WEB-INF/conf/news/app-center-configuration.xml diff --git a/content-service/src/main/resources/applications.json b/content-service/src/main/resources/applications.json new file mode 100644 index 000000000..574924d59 --- /dev/null +++ b/content-service/src/main/resources/applications.json @@ -0,0 +1,22 @@ +{ + "descriptors": [ + { + "name": "News", + "imagePath": "war:/../images/news.png", + "override": false, + "enabled": true, + "application": { + "title": "News", + "description": "News application", + "url": "./news", + "active": true, + "mandatory": false, + "mobile": true, + "permissions": [ + "*:/platform/users", + "*:/platform/externals" + ] + } + } + ] +} diff --git a/content-webapp/src/main/webapp/WEB-INF/conf/configuration.xml b/content-webapp/src/main/webapp/WEB-INF/conf/configuration.xml index ad88d5a59..f0f0a5a5e 100644 --- a/content-webapp/src/main/webapp/WEB-INF/conf/configuration.xml +++ b/content-webapp/src/main/webapp/WEB-INF/conf/configuration.xml @@ -32,7 +32,6 @@ war:/conf/news/metadata-plugins-configuration.xml war:/conf/news/gamification-configuration.xml war:/conf/news/activity-listener-configuration.xml - war:/conf/news/app-center-configuration.xml war:/conf/news/ckeditor-configuration.xml war:/conf/news/feature-flags-configuration.xml diff --git a/content-webapp/src/main/webapp/WEB-INF/conf/news/app-center-configuration.xml b/content-webapp/src/main/webapp/WEB-INF/conf/news/app-center-configuration.xml deleted file mode 100644 index 7c665c52f..000000000 --- a/content-webapp/src/main/webapp/WEB-INF/conf/news/app-center-configuration.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - org.exoplatform.appcenter.service.ApplicationCenterService - - News - addApplicationPlugin - org.exoplatform.appcenter.plugin.ApplicationPlugin - - - imagePath - war:/../images/news.png - - - override - ${exo.app-center.news.override:false} - - - override-mode - ${exo.app-center.news.override-mode:merge} - - - application - description - - - News - - - ./news - - - News application - - - true - - - true - - - true - - - - - - -