Skip to content

Commit

Permalink
feat: Move sites definition into common extension - MEED-2811 - Meeds…
Browse files Browse the repository at this point in the history
…-io/MIPs#100

This change will move sites pages definition into sites.war extension to centralize the configuration of sites which will improve the maintainability and evolutivity.
  • Loading branch information
boubaker authored and rdenarie committed Nov 9, 2023
1 parent 2cc8603 commit afd4469
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 258 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 Meeds Association
[email protected]
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_3.xsd http://www.exoplatform.org/xml/ns/kernel_1_3.xsd"
xmlns="http://www.exoplatform.org/xml/ns/kernel_1_3.xsd">

<external-component-plugins>
<target-component>org.exoplatform.commons.addons.AddOnService</target-component>
<component-plugin>
<name>addPlugin</name>
<set-method>addPlugin</set-method>
<type>org.exoplatform.commons.addons.AddOnPluginImpl</type>
<description>add AppCenterAppLauncherPortlet Config</description>
<init-params>
<value-param>
<name>priority</name>
<value>20</value>
</value-param>
<value-param>
<name>containerName</name>
<value>middle-topNavigation-container</value>
</value-param>
<object-param>
<name>AppCenterAppLauncherApplication</name>
<description>AppCenter appLauncher portlet</description>
<object type="org.exoplatform.portal.config.serialize.PortletApplication">
<field name="state">
<object type="org.exoplatform.portal.config.model.TransientApplicationState">
<field name="contentId">
<string>app-center/AppCenterAppLauncherPortlet</string>
</field>
</object>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
</external-component-plugins>

</configuration>

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,99 +20,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_3.xsd http://www.exoplatform.org/xml/ns/kernel_1_3.xsd"
xmlns="http://www.exoplatform.org/xml/ns/kernel_1_3.xsd">

<external-component-plugins>
<target-component>org.exoplatform.commons.addons.AddOnService</target-component>
<component-plugin>
<name>addPlugin</name>
<set-method>addPlugin</set-method>
<type>org.exoplatform.commons.addons.AddOnPluginImpl</type>
<description>add AppCenterAppLauncherPortlet Config</description>
<init-params>
<value-param>
<name>priority</name>
<value>20</value>
</value-param>
<value-param>
<name>containerName</name>
<value>middle-topNavigation-container</value>
</value-param>
<object-param>
<name>AppCenterAppLauncherApplication</name>
<description>AppCenter appLauncher portlet</description>
<object type="org.exoplatform.portal.config.serialize.PortletApplication">
<field name="state">
<object type="org.exoplatform.portal.config.model.TransientApplicationState">
<field name="contentId">
<string>app-center/AppCenterAppLauncherPortlet</string>
</field>
</object>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
</external-component-plugins>

<external-component-plugins>
<target-component>org.exoplatform.portal.config.UserPortalConfigService</target-component>
<component-plugin>
<name>new.portal.config.user.listener</name>
<set-method>initListener</set-method>
<type>org.exoplatform.portal.config.NewPortalConfigListener</type>
<description>this listener init the portal configuration</description>
<init-params>
<object-param>
<name>portal.configuration</name>
<description>description</description>
<object type="org.exoplatform.portal.config.NewPortalConfig">
<field name="predefinedOwner">
<collection type="java.util.HashSet">
<value>
<string>global</string>
</value>
</collection>
</field>
<field name="ownerType">
<string>portal</string>
</field>
<field name="location">
<string>war:/conf/app-center/portal</string>
</field>
<field name="override">
<boolean>${exo.app-center.portalConfig.metadata.override:true}</boolean>
</field>
<field name="importMode">
<string>${exo.app-center.portalConfig.metadata.importmode:merge}</string>
</field>
</object>
</object-param>
<object-param>
<name>group.configuration</name>
<description>description</description>
<object type="org.exoplatform.portal.config.NewPortalConfig">
<field name="predefinedOwner">
<collection type="java.util.HashSet">
<value>
<string>/platform/administrators</string>
</value>
</collection>
</field>
<field name="ownerType">
<string>group</string>
</field>
<field name="override">
<boolean>${exo.app-center.portalConfig.metadata.override:true}</boolean>
</field>
<field name="importMode">
<string>${exo.app-center.portalConfig.metadata.importmode:merge}</string>
</field>
<field name="location">
<string>war:/conf/app-center/portal</string>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
<component-plugin>
<name>new.portal.config.user.listener</name>
<set-method>initListener</set-method>
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
xmlns="http://www.exoplatform.org/xml/ns/kernel_1_3.xsd">

<import>war:/conf/app-center/portal/portal-configuration.xml</import>
<import>war:/conf/app-center/portal-configuration.xml</import>
<import>war:/conf/app-center/analytics-configuration.xml</import>
<import>war:/conf/app-center/bundle-configuration.xml</import>
<import>war:/conf/app-center/search-configuration.xml</import>
Expand Down
16 changes: 0 additions & 16 deletions app-center-webapps/src/main/webapp/html/myApplications.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 Meeds Association
[email protected]
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<div class="VuetifyApp">
<div id="myApplications">
<script>
Expand Down

0 comments on commit afd4469

Please sign in to comment.