Skip to content

Commit

Permalink
feat: Configure app-center navigation and pages for administration si…
Browse files Browse the repository at this point in the history
…te - EXO-66546_66871 - Meeds-io/MIPs#88 (#285)
  • Loading branch information
azayati authored Oct 20, 2023
1 parent aefdfe2 commit cb8316a
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# This file is part of the Meeds project (https://meeds.io/).
# Copyright (C) 2023 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.
#
portal.administration.home=Platform settings
portal.administration.general=General
portal.administration.appCenterAdminSetup=Applications center
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,38 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
</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>
<priority>1000</priority>
<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/app-center/portal</string>
</field>
<field name="override">
<boolean>${exo.app-center.portalConfig.administration.override:true}</boolean>
</field>
<field name="importMode">
<string>${exo.app-center.portalConfig.administration.importmode:insert}</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,45 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2023 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.
-->
<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>general</name>
<label>#{portal.administration.general}</label>
<icon>fas fa-folder</icon>
<node>
<name>applicationsCenter</name>
<label>#{portal.administration.appCenterAdminSetup}</label>
<icon>fas fa-list-alt</icon>
<page-reference>portal::administration::appCenterAdminSetup</page-reference>
</node>
</node>
</node>
</page-nodes>
</node-navigation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2023 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.
-->
<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>appCenterAdminSetup</name>
<title>App center admin setup</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/administrators</access-permissions>
<portlet-application>
<portlet>
<application-ref>app-center</application-ref>
<portlet-ref>AppCenterAdminSetupPortlet</portlet-ref>
<preferences>
<preference>
<name>pageSize</name>
<value>10</value>
<read-only>false</read-only>
</preference>
</preferences>
</portlet>
<title>App Center Admin Setup</title>
<access-permissions>*:/platform/administrators</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
</page>
</page-set>
1 change: 1 addition & 0 deletions translations.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ baseDir=add-ons/app-center/
global.properties=app-center-webapps/src/main/resources/locale/navigation/portal/global_en.properties
appCenterPortlets.properties=app-center-services/src/main/resources/locale/addon/appcenter_en.properties
appCenterNavigation.properties=app-center-webapps/src/main/resources/locale/navigation/group/platform/administrators_en.properties
administration.properties=app-center-webapps/src/main/resources/locale/navigation/portal/administration_en.properties

0 comments on commit cb8316a

Please sign in to comment.