Author: jaredmorgs
Date: 2013-01-24 20:01:20 -0500 (Thu, 24 Jan 2013)
New Revision: 9076
Modified:
epp/docs/branches/6.0/Reference_Guide/en-US/Revision_History.xml
epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/DefaultPortalConfiguration.xml
epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/DefaultPortalPermissionConfiguration.xml
Log:
BZ#903884 - Changes incorporated for
https://docs.jboss.org/author/display/GTNPORTAL35/Default+Portal+Configur.... Ready for
QE
Modified: epp/docs/branches/6.0/Reference_Guide/en-US/Revision_History.xml
===================================================================
--- epp/docs/branches/6.0/Reference_Guide/en-US/Revision_History.xml 2013-01-25 00:13:45
UTC (rev 9075)
+++ epp/docs/branches/6.0/Reference_Guide/en-US/Revision_History.xml 2013-01-25 01:01:20
UTC (rev 9076)
@@ -8,6 +8,20 @@
<simpara>
<revhistory>
<revision>
+ <revnumber>6.0.0-35</revnumber>
+ <date>Fri Jan 25 2013</date>
+ <author>
+ <firstname>Jared</firstname>
+ <surname>Morgan</surname>
+ <email/>
+ </author>
+ <revdescription>
+ <simplelist>
+ <member>Changes incorporated for
https://docs.jboss.org/author/display/GTNPORTAL35/Default+Portal+Configur.... Ready for
QE.</member>
+ </simplelist>
+ </revdescription>
+ </revision>
+ <revision>
<revnumber>6.0.0-34</revnumber>
<date>Fri Jan 25 2013</date>
<author>
Modified:
epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/DefaultPortalConfiguration.xml
===================================================================
---
epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/DefaultPortalConfiguration.xml 2013-01-25
00:13:45 UTC (rev 9075)
+++
epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/DefaultPortalConfiguration.xml 2013-01-25
01:01:20 UTC (rev 9076)
@@ -5,6 +5,7 @@
]>
<chapter id="chap-Reference_Guide-Default_Portal_Configuration">
<title>Default Portal Configuration</title>
+ <remark>Source content:
https://docs.jboss.org/author/display/GTNPORTAL35/Default+Portal+Configur...
<section
id="sect-Reference_Guide-Default_Portal_Configuration-Overview">
<title>Overview</title>
<para>
@@ -20,7 +21,7 @@
<section
id="sect-Reference_Guide-Default_Portal_Configuration-Configuration">
<title>Configuration</title>
<para>
- The following example configuration can be found at:
"<filename>02portal.war:/WEB-INF/conf/portal/portal-configuration.xml</filename>".
+ The following example configuration can be found at:
<filename><replaceable>JPP_HOME</replaceable>/gatein/gatein.ear/portal.war/WEB-INF/conf/portal/portal-configuration.xml</filename>.
</para>
<programlisting language="XML" role="XML"><xi:include
xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../extras/PortalDevelopment_DefaultPortalConfiguration/default143.xml"
parse="text"/></programlisting>
<para>
@@ -33,40 +34,93 @@
<emphasis>Components</emphasis>,
<emphasis>component-plugins</emphasis>, and
<emphasis>init-params</emphasis> are explained in a later chapter of this
document.
</para>
</section>
- <section
id="sect-Reference_Guide-Default_Portal_Configuration-Disabling_a_Portal">
- <!--
+ <section>
+ <title>Delete Portal Definitions using Component Plug-ins</title>
+ <para>In some cases, portal definitions and portal template definitions are
defined but not used any more. To delete them, it is possible to add a component plug-in
to
<filename><replaceable>JPP_HOME</replaceable>/gatein/gatein.ear/portal.war/WEB-INF/conf/portal/portal-configuration.xml</filename>
which detects these definitions and cleans up the
<filename>portal-configuration.xml</filename> file automatically.
+</para>
+ <example>
+ <title>Portal Definition Clean-up Directives</title>
+ <programlisting
language="XML"><external-component-plugins>
+
<target-component>org.exoplatform.portal.config.UserPortalConfigService</target-component>
+ <component-plugin>
+ <name>new.portal.config.user.listener</name>
+ <set-method>deleteListenerElements</set-method>
+
<type>org.exoplatform.portal.config.NewPortalConfigListener</type>
+ <description>this listener delete some predefined portal and templates
configuration</description>
+ <init-params>
+ <object-param>
+ <name>site.templates.location</name>
+ <description>description</description>
+ <object
type="org.exoplatform.portal.config.SiteConfigTemplates">
+ <field name="portalTemplates">
+ <collection type="java.util.HashSet">
+ <value>
+ <string>basic</string>
+ </value>
+ <value>
+ <string>classic</string>
+ </value>
+ </collection>
+ </field>
+ </object>
+ </object-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>classic</string></value>
+ </collection>
+ </field>
+ <field
name="ownerType"><string>portal</string></field>
+ </object>
+ </object-param>
+ </init-params>
+ </component-plugin>
+</external-component-plugins></programlisting>
+ </example>
+ </section>
+ <section>
+ <title>Set the Info Bar Behavior</title>
+ <para>You can set the info bar shown by default for portlets of a portal by
adding a <property> to the <portal-config> configuration of
the
<filename>JPP_HOME/gatein/gatein.ear/portal.war/WEB-INF/conf/portal/portal/classic/portal.xml</filename>
file.</para>
+ <programlisting language="XML"><properties>
+ <entry key="showPortletInfo">1</entry>
+</properties></programlisting>
+ <para>There are two values for "showPortletInfo": 0 and 1. If
the value is 1, the info bar of portlets is shown by default. If the value is 0, it is
hidden.</para>
+ </section>
+ <section
id="sect-Reference_Guide-Default_Portal_Configuration-Disabling_a_Portal">
+<!--
This content is mirrored in the JPP 5.2 Reference Guide.
Any changes here should be reflected there as well.
- -->
- <title><remark>BZ#794416</remark>Disabling a
Portal</title>
- <para>
+ --> <title><remark>BZ#794416</remark>Disabling a
Portal</title>
+ <para>
Once you have created a custom portal that suits your needs, you may wish to
disable a portal that is no longer required.
</para>
-
- <task>
- <title>Task: Disable a portal in EPP 5</title>
- <tasksummary>
- <para>
+ <task>
+ <title>Task: Disable a portal in EPP 5</title>
+ <tasksummary>
+ <para>
The procedure below will show you how to disable an unused portal
in a JBoss Portal Platform instance.
</para>
- </tasksummary>
- <taskprerequisites>
- <title>Prerequisites: </title>
- <itemizedlist>
- <listitem>
- <para>
+ </tasksummary>
+ <taskprerequisites>
+ <title>Prerequisites: </title>
+ <itemizedlist>
+ <listitem>
+ <para>
<remark>Are there any pre-reqs for this
task?</remark>
</para>
- </listitem>
- </itemizedlist>
- </taskprerequisites>
- <procedure>
- <title></title>
- <step>
- <para>
+ </listitem>
+ </itemizedlist>
+ </taskprerequisites>
+ <procedure>
+ <title/>
+ <step>
+ <para>
Add the following configuration to the
<filename>configuration.xml</filename> of the custom extension in order to
disable a portal:
</para>
-<programlisting language="XML" role="XML"><![CDATA[<?xml
version="1.0" encoding="UTF-8"?>
+ <programlisting language="XML"
role="XML"><![CDATA[<?xml version="1.0"
encoding="UTF-8"?>
<configuration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd
http://www.exoplaform.org/xml/ns/kernel_1_1.xsd"
xmlns="http://www.exoplaform.org/xml/ns/kernel_1_1.xsd">
@@ -97,17 +151,16 @@
</external-component-plugins>
</configuration>
]]></programlisting>
- </step>
- </procedure>
- <taskrelated>
- <note>
- <title></title>
- <para>
+ </step>
+ </procedure>
+ <taskrelated>
+ <note>
+ <title/>
+ <para>
Disabling the default <emphasis>portal</emphasis>
container is possible as well, but some functions, such as WSRP, or Services Management,
depend on the default portal container to be deployed, and will no longer work if this is
disabled.
</para>
- </note>
- </taskrelated>
- </task>
- </section>
-
+ </note>
+ </taskrelated>
+ </task>
+ </section>
</chapter>
Modified:
epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/DefaultPortalPermissionConfiguration.xml
===================================================================
---
epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/DefaultPortalPermissionConfiguration.xml 2013-01-25
00:13:45 UTC (rev 9075)
+++
epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/DefaultPortalPermissionConfiguration.xml 2013-01-25
01:01:20 UTC (rev 9076)
@@ -8,7 +8,7 @@
<section
id="sect-Reference_Guide-Portal_Default_Permission_Configuration-Overview">
<title>Overview</title>
<para>
- The default permission configuration for the portal is defined through the
<literal>org.exoplatform.portal.config.UserACL</literal> component
configuration in the
<filename><replaceable>JPP_DIST</replaceable>/jboss-as/server/<replaceable>PROFILE</replaceable>/deploy/gatein.ear/02portal.war/WEB-INF/conf/portal/portal-configuration.xml</filename>
file.
+ The default permission configuration for the portal is defined through the
<literal>org.exoplatform.portal.config.UserACL</literal> component
configuration in the
<filename><replaceable>JPP_HOME</replaceable>/gatein/gatein.ear/portal.war/WEB-INF/conf/portal/portal-configuration.xml</filename>
file.
</para>
<para>
It defines eight permissions types: