Skip to content

Commit

Permalink
feat: Configure engagement site with its navigations - EXO-65026 - Me…
Browse files Browse the repository at this point in the history
  • Loading branch information
GouadriaHanen authored Aug 29, 2023
1 parent c89bc26 commit 7480bf9
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Copyright (C) 2023 eXo Platform SAS.
#
# This 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 software 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 software; if not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
#
portal.engage.overview=Participate
portal.engage.contributions=Contribution
portal.engage.programs=Programs
portal.engage.actions=Actions
portal.engage.achievements=Achievements
portal.engage.perkstore=Perk
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,40 @@
</object-param>
</init-params>
</component-plugin>
<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>
<value-param>
<name>override</name>
<description>The flag parameter to decide if portal metadata is overriden on restarting server</description>
<value>${exo.engage.portalConfig.metadata.override:true}</value>
</value-param>
<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>engage</string>
</value>
</collection>
</field>
<field name="ownerType">
<string>portal</string>
</field>
<field name="importMode">
<string>${exo.engage.portalConfig.metadata.importmode:insert}</string>
</field>
<field name="templateLocation">
<string>war:/conf/digital-workplace/</string>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
</external-component-plugins>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
* Copyright (C) 2023 eXo Platform SAS.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
-->
<node-navigation
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_6 http://www.gatein.org/xml/ns/gatein_objects_1_6"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_6">
<priority>3</priority>

<page-nodes>
<node>
<name>overview</name>
<label>#{portal.engage.overview}</label>
<icon>fa-award</icon>
<visibility>DISPLAYED</visibility>
<page-reference>portal::global::overview</page-reference>
<node>
<name>contributions</name>
<label>#{portal.engage.contributions}</label>
<visibility>DISPLAYED</visibility>
<node>
<name>programs</name>
<label>#{portal.engage.programs}</label>
<icon>fa-chalkboard</icon>
<visibility>DISPLAYED</visibility>
<page-reference>portal::global::programs</page-reference>
</node>
<node>
<name>actions</name>
<label>#{portal.engage.actions}</label>
<icon>fa-list-alt</icon>
<visibility>DISPLAYED</visibility>
<page-reference>portal::global::actions</page-reference>
</node>
<node>
<name>achievements</name>
<label>#{portal.engage.achievements}</label>
<icon>fa-chart-pie</icon>
<visibility>DISPLAYED</visibility>
<page-reference>portal::global::achievements</page-reference>
</node>
</node>
<node>
<name>perkstore</name>
<label>#{portal.engage.perkstore}</label>
<icon>fa-shopping-cart</icon>
<visibility>DISPLAYED</visibility>
<page-reference>portal::global::perkstore</page-reference>
</node>
</node>
</page-nodes>
</node-navigation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Copyright (C) 2023 eXo Platform SAS.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
-->
<portal-config>
<portal-name>engage</portal-name>
<label>Engagement</label>
<description>Easily onboard contributors, drive initiatives, and keep everyone motivated.</description>
<locale>en</locale>
<access-permissions>member:/platform/users</access-permissions>
<edit-permission>manager:platform/administrators</edit-permission>
<properties>
<entry key="sessionAlive">onDemand</entry>
<entry key="showPortletInfo">0</entry>
</properties>
<portal-layout>
<page-body> </page-body>
</portal-layout>
<displayed>true</displayed>
<display-order>2</display-order>
</portal-config>
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<value>locale.navigation.portal.dw</value>
<value>locale.navigation.portal.mycraft</value>
<value>locale.navigation.portal.intranet</value>
<value>locale.navigation.portal.engage</value>
</values-param>
<values-param>
<name>portal.resource.names</name>
Expand Down

0 comments on commit 7480bf9

Please sign in to comment.