From 755a3cfd6d0ba04c3c4eafd2b6a459db623dc5d8 Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Wed, 5 Jun 2024 09:05:38 +0100 Subject: [PATCH] feat: Update AppCenter Data injection to use JSON - MEED-6794 - Meeds-io/MIPs#132 (#522) 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/wallet/app-center-configuration.xml | 73 ------------------- 3 files changed, 22 insertions(+), 74 deletions(-) create mode 100644 wallet-services/src/main/resources/applications.json delete mode 100644 wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/app-center-configuration.xml diff --git a/wallet-services/src/main/resources/applications.json b/wallet-services/src/main/resources/applications.json new file mode 100644 index 000000000..bd49c1481 --- /dev/null +++ b/wallet-services/src/main/resources/applications.json @@ -0,0 +1,22 @@ +{ + "descriptors": [ + { + "name": "Wallet", + "imagePath": "war:/../images/wallet.png", + "override": false, + "enabled": true, + "application": { + "title": "Wallet", + "description": "Wallet application", + "url": "./wallet", + "active": true, + "mandatory": false, + "mobile": true, + "permissions": [ + "*:/platform/users", + "*:/platform/externals" + ] + } + } + ] +} diff --git a/wallet-webapps/src/main/webapp/WEB-INF/conf/configuration.xml b/wallet-webapps/src/main/webapp/WEB-INF/conf/configuration.xml index 880d7095e..70954c269 100644 --- a/wallet-webapps/src/main/webapp/WEB-INF/conf/configuration.xml +++ b/wallet-webapps/src/main/webapp/WEB-INF/conf/configuration.xml @@ -28,7 +28,6 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. war:/conf/wallet/user-page-configuration.xml war:/conf/wallet/notification-configuration.xml war:/conf/wallet/wallet-portal-configuration.xml - war:/conf/wallet/app-center-configuration.xml war:/conf/wallet/gamification-configuration.xml diff --git a/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/app-center-configuration.xml b/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/app-center-configuration.xml deleted file mode 100644 index 8e9ca127d..000000000 --- a/wallet-webapps/src/main/webapp/WEB-INF/conf/wallet/app-center-configuration.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - org.exoplatform.appcenter.service.ApplicationCenterService - - Wallet - addApplicationPlugin - org.exoplatform.appcenter.plugin.ApplicationPlugin - - - imagePath - war:/../images/wallet.png - - - override - ${exo.app-center.wallet.override:false} - - - override-mode - ${exo.app-center.wallet.override-mode:merge} - - - application - description - - - Wallet - - - ./wallet - - - Wallet application - - - - - *:/platform/users - - - *:/platform/externals - - - - - true - - - true - - - - - - -