Skip to content

Commit

Permalink
feat: Configure ecms navigation and pages for administration site - E…
Browse files Browse the repository at this point in the history
  • Loading branch information
IlhemEssaadi authored and azayati committed Oct 18, 2023
1 parent b936a6a commit c5521eb
Show file tree
Hide file tree
Showing 17 changed files with 618 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# 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.administration.home=Platform settings
portal.administration.applications=Applications
portal.administration.documents-settings=Documents settings
portal.administration.cloud-storage=Cloud storage

Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,37 @@
</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>
<object-param>
<name>portal.configuration</name>
<object type="org.exoplatform.portal.config.NewPortalConfig">
<field name="predefinedOwner">
<collection type="java.util.HashSet">
<value>
<string>administration</string>
</value>
</collection>
</field>
<field name="ownerType">
<string>portal</string>
</field>
<field name="templateLocation">
<string>war:/conf/clouddrive/portal</string>
</field>
<field name="override">
<boolean>${exo.ecms.portalConfig.administration.override:true}</boolean>
</field>
<field name="importMode">
<string>${exo.ecms.portalConfig.administration.importmode:merge}</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>home</name>
<label>#{portal.administration.home}</label>
<icon>fas fa-cog</icon>
<node>
<name>applications</name>
<label>#{portal.administration.applications}</label>
<icon>fas fa-boxes</icon>
<node>
<name>documents-settings</name>
<label>#{portal.administration.documents-settings}</label>
<icon>fas fa-file-alt</icon>
<node>
<name>cloud-storage</name>
<label>#{portal.administration.cloud-storage}</label>
<icon>fas fa-cloud-download-alt</icon>
<page-reference>portal::administration::cloudStorage</page-reference>
</node>
</node>
</node>
</node>
</page-nodes>
</node-navigation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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/>.
*
-->
<page-set xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.exoplatform.org/xml/ns/gatein_objects_1_8 http://www.exoplatform.org/xml/ns/gatein_objects_1_8"
xmlns="http://www.exoplatform.org/xml/ns/gatein_objects_1_8">
<page>
<name>cloudStorage</name>
<title>Cloud Storage</title>
<access-permissions>*:/platform/administrators</access-permissions>
<edit-permission>manager:/platform/administrators</edit-permission>
<container id="singlePageApplicationContainer" template="system:/groovy/portal/webui/container/UIContainer.gtmpl" cssClass="singlePageApplication">
<access-permissions>*:/platform/users</access-permissions>
<portlet-application>
<portlet>
<application-ref>clouddrives</application-ref>
<portlet-ref>cloudStoragePortlet</portlet-ref>
</portlet>
<title>cloud Storage</title>
<access-permissions>*:/platform/administrators</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
</page>

</page-set>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# 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.administration.home=Platform settings
portal.administration.applications=Applications
portal.administration.documents-settings=Documents settings
portal.administration.documents-editors=Documents editors

Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,37 @@
</object-param>
</init-params>
</component-plugin>
</external-component-plugins>
<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>
<object type="org.exoplatform.portal.config.NewPortalConfig">
<field name="predefinedOwner">
<collection type="java.util.HashSet">
<value>
<string>administration</string>
</value>
</collection>
</field>
<field name="ownerType">
<string>portal</string>
</field>
<field name="templateLocation">
<string>war:/conf/editors/portal</string>
</field>
<field name="override">
<boolean>${exo.ecms.portalConfig.administration.override:true}</boolean>
</field>
<field name="importMode">
<string>${exo.ecms.portalConfig.administration.importmode:merge}</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>home</name>
<label>#{portal.administration.home}</label>
<icon>fas fa-cog</icon>
<node>
<name>applications</name>
<label>#{portal.administration.applications}</label>
<icon>fas fa-boxes</icon>
<node>
<name>documents-settings</name>
<label>#{portal.administration.documents-settings}</label>
<icon>fas fa-file-alt</icon>
<node>
<name>documents-editors</name>
<label>#{portal.administration.documents-editors}</label>
<icon>fas fa-edit</icon>
<page-reference>portal::administration::editors</page-reference>
</node>
</node>
</node>
</node>
</page-nodes>
</node-navigation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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/>.
*
-->
<page-set xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.exoplatform.org/xml/ns/gatein_objects_1_8 http://www.exoplatform.org/xml/ns/gatein_objects_1_8"
xmlns="http://www.exoplatform.org/xml/ns/gatein_objects_1_8">
<page>
<name>editors</name>
<title>Editors Administration</title>
<access-permissions>*:/platform/administrators</access-permissions>
<edit-permission>manager:/platform/administrators</edit-permission>
<container id="singlePageApplicationContainer" template="system:/groovy/portal/webui/container/UIContainer.gtmpl" cssClass="singlePageApplication">
<access-permissions>*:/platform/users</access-permissions>
<portlet-application>
<portlet>
<application-ref>editors</application-ref>
<portlet-ref>EditorsAdminPortlet</portlet-ref>
</portlet>
<title>Document Editors Administration</title>
<access-permissions>*:/platform/administrators</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
</page>

</page-set>
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.administration.home=Platform settings
portal.administration.security=Security
portal.administration.transfert-rules=Transfert rules

Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,37 @@
</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>
<object-param>
<name>portal.configuration</name>
<object type="org.exoplatform.portal.config.NewPortalConfig">
<field name="predefinedOwner">
<collection type="java.util.HashSet">
<value>
<string>administration</string>
</value>
</collection>
</field>
<field name="ownerType">
<string>portal</string>
</field>
<field name="templateLocation">
<string>war:/conf/transferRules/portal</string>
</field>
<field name="override">
<boolean>${exo.ecms.portalConfig.administration.override:true}</boolean>
</field>
<field name="importMode">
<string>${exo.ecms.portalConfig.administration.importmode:merge}</string>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
</external-component-plugins>
</configuration>
Loading

0 comments on commit c5521eb

Please sign in to comment.