Skip to content

Commit

Permalink
feat: Configure Intranet site and its navigations - EXO-65027 - Meeds…
Browse files Browse the repository at this point in the history
  • Loading branch information
GouadriaHanen authored Aug 28, 2023
1 parent 6d8b2b4 commit c89bc26
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# 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.intranet.homepage= Home Page
portal.intranet.spaces=Spaces
portal.intranet.people=People
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,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.intranet.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>intranet</string>
</value>
</collection>
</field>
<field name="ownerType">
<string>portal</string>
</field>
<field name="importMode">
<string>${exo.intranet.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,48 @@
<?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>homepage</name>
<label>#{portal.intranet.homepage}</label>
<icon>fa-newspaper</icon>
<visibility>DISPLAYED</visibility>
<page-reference>portal::dw::homepage</page-reference>
<node>
<name>spaces</name>
<label>#{portal.intranet.spaces}</label>
<icon>fa-people-arrows</icon>
<visibility>DISPLAYED</visibility>
<page-reference>portal::global::all-spaces</page-reference>
</node>
<node>
<name>people</name>
<label>#{portal.intranet.people}</label>
<icon>fa-users</icon>
<visibility>DISPLAYED</visibility>
<page-reference>portal::global::all-people</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>intranet</portal-name>
<label>Intranet</label>
<description>Develop your communication with a modern intranet</description>
<locale>en</locale>
<access-permissions>member:/platform/users;member:/platform/externals</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>1</display-order>
</portal-config>
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<name>init.resources</name>
<value>locale.navigation.portal.dw</value>
<value>locale.navigation.portal.mycraft</value>
<value>locale.navigation.portal.intranet</value>
</values-param>
<values-param>
<name>portal.resource.names</name>
Expand Down

0 comments on commit c89bc26

Please sign in to comment.