Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Configure MyCraft site and its navigations - EXO-65025 - Meeds-io/MIPs#72 #68

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# 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.mycraft.drives=Personal drive
portal.mycraft.tasks=Tasks
portal.mycraft.agenda=Agenda
portal.mycraft.processes=Process
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,41 @@
</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.mycraft.portalConfig.metadata.override:true}</value>
</value-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>mycraft</string>
</value>
</collection>
</field>
<field name="ownerType">
<string>portal</string>
</field>
<field name="importMode">
<string>${exo.mycraft.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,55 @@
<?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>dashboard</name>
<label>#{portal.mycraft.drives}</label>
<icon>fa-briefcase</icon>
<visibility>DISPLAYED</visibility>
<page-reference>portal::global::drives</page-reference>
<node>
<name>tasks</name>
<label>#{portal.mycraft.tasks}</label>
<icon>fa-tasks</icon>
<visibility>DISPLAYED</visibility>
<page-reference>portal::global::tasks</page-reference>
</node>
<node>
<name>agenda</name>
<label>#{portal.mycraft.agenda}</label>
<icon>fa-calendar-alt</icon>
<visibility>DISPLAYED</visibility>
<page-reference>portal::global::agenda</page-reference>
</node>
<node>
<name>processes</name>
<label>#{portal.mycraft.processes}</label>
<icon>fa-file-invoice</icon>
<visibility>DISPLAYED</visibility>
<page-reference>portal::global::processes</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>mycraft</portal-name>
<label>My Craft</label>
<description>My personal workspace</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>3</display-order>
</portal-config>
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<values-param>
<name>init.resources</name>
<value>locale.navigation.portal.dw</value>
<value>locale.navigation.portal.mycraft</value>
</values-param>
<values-param>
<name>portal.resource.names</name>
Expand Down