gatein SVN: r7444 - epp/docs/branches/5.2/Installation_Guide.
by do-not-reply@jboss.org
Author: smumford
Date: 2011-09-15 19:23:25 -0400 (Thu, 15 Sep 2011)
New Revision: 7444
Modified:
epp/docs/branches/5.2/Installation_Guide/publican.cfg
Log:
Updated publican conf file for new iteration
Modified: epp/docs/branches/5.2/Installation_Guide/publican.cfg
===================================================================
--- epp/docs/branches/5.2/Installation_Guide/publican.cfg 2011-09-15 23:21:58 UTC (rev 7443)
+++ epp/docs/branches/5.2/Installation_Guide/publican.cfg 2011-09-15 23:23:25 UTC (rev 7444)
@@ -10,4 +10,4 @@
cvs_branch: DOCS-RHEL-6
cvs_root: :ext:cvs.devel.redhat.com:/cvs/dist
-cvs_pkg: JBoss_Enterprise_Portal_Platform-Installation_Guide-5.1-web-__LANG__
\ No newline at end of file
+cvs_pkg: JBoss_Enterprise_Portal_Platform-Installation_Guide-5.2-web-__LANG__
\ No newline at end of file
13 years, 3 months
gatein SVN: r7443 - in epp/docs/branches/5.2/Release_Notes: en-US and 1 other directory.
by do-not-reply@jboss.org
Author: smumford
Date: 2011-09-15 19:21:58 -0400 (Thu, 15 Sep 2011)
New Revision: 7443
Added:
epp/docs/branches/5.2/Release_Notes/en-US/5.2.0_Release_Notes.ent
epp/docs/branches/5.2/Release_Notes/en-US/5.2.0_Release_Notes.xml
Removed:
epp/docs/branches/5.2/Release_Notes/en-US/5.1.1_Release_Notes.ent
epp/docs/branches/5.2/Release_Notes/en-US/5.1.1_Release_Notes.xml
Modified:
epp/docs/branches/5.2/Release_Notes/publican.cfg
Log:
Minor mechanical modifications
Deleted: epp/docs/branches/5.2/Release_Notes/en-US/5.1.1_Release_Notes.ent
===================================================================
--- epp/docs/branches/5.2/Release_Notes/en-US/5.1.1_Release_Notes.ent 2011-09-15 18:10:12 UTC (rev 7442)
+++ epp/docs/branches/5.2/Release_Notes/en-US/5.1.1_Release_Notes.ent 2011-09-15 23:21:58 UTC (rev 7443)
@@ -1,14 +0,0 @@
-<!-- Product Specifics: -->
-<!ENTITY PRODUCT "JBoss Enterprise Portal Platform">
-
-<!-- Book specifics: -->
-<!ENTITY BOOKID "5.1.1 Release Notes">
-
-<!-- Corporate Specifics: -->
-<!ENTITY YEAR "2011">
-<!ENTITY HOLDER "Red Hat, Inc">
-
-<!-- Version Specifcs: -->
-<!ENTITY VX "5">
-<!ENTITY VY "5.2">
-<!ENTITY VZ "5.2.0">
\ No newline at end of file
Deleted: epp/docs/branches/5.2/Release_Notes/en-US/5.1.1_Release_Notes.xml
===================================================================
--- epp/docs/branches/5.2/Release_Notes/en-US/5.1.1_Release_Notes.xml 2011-09-15 18:10:12 UTC (rev 7442)
+++ epp/docs/branches/5.2/Release_Notes/en-US/5.1.1_Release_Notes.xml 2011-09-15 23:21:58 UTC (rev 7443)
@@ -1,596 +0,0 @@
-<?xml version='1.0' encoding='utf-8' ?>
-<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "5.1.1_Release_Notes.ent">
-%BOOK_ENTITIES;
-]>
-<article>
- <xi:include href="Book_Info.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- <section id="sect-5.1.1_Release_Notes-Introduction">
- <title>Introduction</title>
- <para>
- JBoss Enterprise Portal Platform offers an intuitive, easy to manage user interface and a proven core infrastructure to enable organizations to quickly build dynamic web sites in a highly reusable way. By bringing the principals of Open Choice to the presentation layer, JBoss Enterprise Portal Platform 5 maximizes existing skills and technology investments.
- </para>
- <para>
- By integrating proven open source frameworks such as JBoss Seam, Hibernate, Tomcat and JBoss Cache JBoss Enterprise Portal Platform takes advantage of innovations in the open source community. As well, JBoss Enterprise Portal Platform version 5.1.1 is fully tested and supported by Red Hat, and is certified to work on many leading enterprise hardware and software products.
- </para>
-
- </section>
-
- <section id="sect-5.1.1_Release_Notes-New_and_Upgraded_Components">
- <title>Upgraded Components</title>
-
- <variablelist id="vari-5.1.1_Release_Notes-New_and_Upgraded_Components-Upgraded_Components">
- <title></title>
- <varlistentry>
- <term>eXo Kernel</term>
- <listitem>
- <para>
- The eXo Kernel component has been upgraded to version 2.2.9-GA.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>eXo Core</term>
- <listitem>
- <para>
- The eXo Core component has been upgraded to version 2.3.9-GA.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>JBoss EAP</term>
- <listitem>
- <para>
- The Enterprise Application Platform has been upgraded to 5.1.1-GA.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>JBoss Portlet Bridge</term>
- <listitem>
- <para>
- The JBoss Portlet Bridge component has been upgraded to version 2.1.2.GA.EPP51.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>JBoss Cache</term>
- <listitem>
- <para>
- The JBoss Cache component has been upgraded to version 3.2.7 (as part of the EAP upgrade).
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>eXo JCR</term>
- <listitem>
- <para>
- The eXo Java Content Repository has been upgraded to version 1.12.9. <!--JBEPP-996-->
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>PicketLink</term>
- <listitem>
- <para>
- The PicketLink IDM component has been upgraded to version 1.1.9-GA. <!--JBEPP-858-->
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>Seam</term>
- <listitem>
- <para>
- Seam has been upgraded to 2.2.4.EAP5 (as part of the EAP upgrade).
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>WSRP</term>
- <listitem>
- <para>
- The WSRP component has been upgraded to 2.0.1-GA. <!--JBEPP-789-->
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <para>
- More details about the component versions that make up JBoss Enterprise Portal Platform 5.1.1 can be found in <xref linkend="sect-5.1.1_Release_Notes-Component_Versions"/>
- </para>
- <!-- Source Metadata
- URL: https://issues.jboss.org/browse/JBEPP-897
- Author [w/email]: Honza Fnukal (hfnukal(a)redhat.com)
- License: Red Hat?
- -->
- </section>
-
- <section id="sect-5.1.1_Release_Notes-Component_Versions">
- <title>Component Versions</title>
- <para>
- This section details the versions of the components in JBoss Enterprise Portal Platform 5.1.1.
- </para>
- <table id="tabl-5.1.1_Release_Notes-Component_Versions-JBoss_Enterprise_Portal_Platform_Component_Versions">
- <title>JBoss Enterprise Portal Platform Component Versions</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>
- Component
- </entry>
- <entry>
- Version
- </entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- EAP
- </entry>
- <entry>
- 5.1.1-GA
- </entry>
- </row>
- <row>
- <entry>
- eXo junit
- </entry>
- <entry>
- 1.2.1-GA
- </entry>
- </row>
- <row>
- <entry>
- eXo kernel
- </entry>
- <entry>
- 2.2.9-GA
- </entry>
- </row>
- <row>
- <entry>
- eXo Core
- </entry>
- <entry>
- 2.3.9-GA
- </entry>
- </row>
- <row>
- <entry>
- eXo WS
- </entry>
- <entry>
- 2.1.8-GA
- </entry>
- </row>
- <row>
- <entry>
- eXo JCR
- </entry>
- <entry>
- 1.12.9-GA
- </entry>
- </row>
- <row>
- <entry>
- Apache Shindig
- </entry>
- <entry>
- 1.0-r790473-Patch04
- </entry>
- </row>
- <row>
- <entry>
- Simple Captcha
- </entry>
- <entry>
- 1.1.1-GA-Patch01
- </entry>
- </row>
- <row>
- <entry>
- GateIn Parent
- </entry>
- <entry>
- 1.0.1-GA
- </entry>
- </row>
- <row>
- <entry>
- GateIn dep
- </entry>
- <entry>
- 1.0.2-GA
- </entry>
- </row>
- <row>
- <entry>
- GateIn Common
- </entry>
- <entry>
- 2.0.3-GA
- </entry>
- </row>
- <row>
- <entry>
- GateIn WCI
- </entry>
- <entry>
- 2.0.2-GA
- </entry>
- </row>
- <row>
- <entry>
- GateIn PC
- </entry>
- <entry>
- 2.2.0-GA
- </entry>
- </row>
- <row>
- <entry>
- GateIn WSRP
- </entry>
- <entry>
- 2.0.1-EPP51-GA
- </entry>
- </row>
- <row>
- <entry>
- GateIn MOP
- </entry>
- <entry>
- 1.0.3-GA
- </entry>
- </row>
- <row>
- <entry>
- GateIn SSO
- </entry>
- <entry>
- 1.0.2-epp-GA
- </entry>
- </row>
- <row>
- <entry>
- PicketLink IDM
- </entry>
- <entry>
- 1.1.9.GA
- </entry>
- </row>
- <row>
- <entry>
- Chromattic
- </entry>
- <entry>
- 1.0.3
- </entry>
- </row>
- <row>
- <entry>
- Portlet Bridge
- </entry>
- <entry>
- 2.1.2.GA.EPP51
- </entry>
- </row>
- <row>
- <entry>
- Seam
- </entry>
- <entry>
- 2.2.4.EAP5
- </entry>
- </row>
- <row>
- <entry>
- Richfaces
- </entry>
- <entry>
- 3.3.1.SP3.1.ep5.el6
- </entry>
- </row>
- <row>
- <entry>
- Groovy
- </entry>
- <entry>
- 1.6.5
- </entry>
- </row>
- <row>
- <entry>
- Commons DBCP
- </entry>
- <entry>
- 1.2.2
- </entry>
- </row>
- <row>
- <entry>
- Commons IO
- </entry>
- <entry>
- 1.4
- </entry>
- </row>
- <row>
- <entry>
- Commons Lang
- </entry>
- <entry>
- 2.4
- </entry>
- </row>
- <row>
- <entry>
- HSQLDB
- </entry>
- <entry>
- 1.8.0.7
- </entry>
- </row>
- <row>
- <entry>
- JBoss Cache
- </entry>
- <entry>
- 3.2.7
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <!-- Source Metadata
- URL: https://docspace.corp.redhat.com/docs/DOC-64265
- Author: Thomas Heute (theute(a)redhat.com)
- License: Red Hat is the Holder.
- -->
- </section>
-
- <section id="sect-5.1.1_Release_Notes-Installation">
- <title>Installation</title>
- <para>
- The JBoss Enterprise Portal Platform Installation Guide contains details of software and hardware requirements as well as detailed installation instructions.
- </para>
- <para>
- The Installation Guide can be found online at <ulink type="http" url="http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Portal_Platform/index...." />.
- </para>
-
- </section>
-
- <section id="sect-5.1.1_Release_Notes-Resolved_Issues">
- <title>Resolved Issues</title>
- <xi:include href="resolved_issues.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
-
- </section>
-
- <section id="sect-5.1.1_Release_Notes-Known_Issues">
- <title>Known Issues</title>
- <xi:include href="known_issues.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- </section>
-
- <section>
- <title><remark>NEEDINFO Issues</remark></title>
- <xi:include href="need_info.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- </section>
-
- <section>
- <title><remark>Not Documented Issues</remark></title>
- <xi:include href="not_documented.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- </section>
- <section>
- <title>Security Related Issues</title>
- <variablelist>
- <title></title>
- <!-- https://issues.jboss.org/browse/JBEPP-598 -->
- <varlistentry>
- <term>XSS Issues</term>
- <listitem>
- <para>
- This release of JBoss Enterprise Portal Platform resolves a number of Cross Site Scripting issues found in the user creation and new page creation forms.
- </para>
- <para>
- The following issues have been resolved:
- </para>
- <simplelist>
- <member><ulink type="http" url="https://issues.jboss.org/browse/JBEPP-365"></ulink></member>
- <member><ulink type="http" url="https://issues.jboss.org/browse/JBEPP-598"></ulink></member> <!--RN Here-->
- <member><ulink type="http" url="https://issues.jboss.org/browse/JBEPP-595"></ulink></member>
- <member><ulink type="http" url="https://issues.jboss.org/browse/JBEPP-847"></ulink></member>
- <member><ulink type="http" url="https://issues.jboss.org/browse/JBEPP-997"></ulink></member>
- <member><ulink type="http" url="https://issues.jboss.org/browse/JBEPP-914"></ulink></member>
- </simplelist>
- <para>
- Work to address further XSS issues is ongoing.
- </para>
-
- </listitem>
- </varlistentry>
- <!-- https://issues.jboss.org/browse/JBEPP-597 -->
- <varlistentry>
- <term><ulink url="https://issues.jboss.org/browse/JBEPP-597" /></term>
- <listitem>
- <para>
- The name of a dashboard page entered by user was not properly encoded before being returned on the web browser. This allowed javascript snippets to be executed when creating a new page through the Portal Dashboard. The name of the page is now properly HTML encoded before being returned and javascript is no longer invoked when entered into page fields.
- </para>
-
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><ulink url="https://issues.jboss.org/browse/JBEPP-881" /></term>
- <listitem>
- <!-- Added on advice from Dave Jorm in the security team -->
-
- <para>
- It was found that JBoss Seam 2 did not properly block access to JBoss Expression Language (EL) constructs in page exception handling, allowing arbitrary Java methods to be executed. A remote attacker could use this flaw to execute arbitrary code via a specially-crafted URL provided to certain applications based on the JBoss Seam 2 framework.
- </para>
- <para>
- This issue has been fixed in JBoss Enterprise Application Platform version 5.1.1, which is incorporated in this release of JBoss Enterprise Portal Platform.
- </para>
-
- </listitem>
- </varlistentry>
- </variablelist>
- </section>
- <section>
- <title>Recommended Practices</title>
- <variablelist>
- <!-- https://issues.jboss.org/browse/JBEPP-610 -->
- <varlistentry>
- <term>Plain Text Passwords</term>
- <listitem>
- <para>
- JBoss Enterprise Portal Platform administrators should be aware that passwords saved by users who chose the <guilabel>Remember Me</guilabel> option when logging in are stored in the underlying JCR in plain text. This creates a possible security risk as user passwords could be obtained with an SQL query.
- </para>
- <para>
- While this is the default behavior of JBoss Enterprise Portal Platform, administrators can negate this risk by either disabling the <guilabel>Remember Me</guilabel> option or encrypting the passwords stored in the JCR.
- </para>
- <para>
- Instructions for implementing both of these solutions are included in section 14.1 of the JBoss Enterprise Portal Platform Reference Guide which is available at <ulink type="http" url="http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Portal_Platform/index...."></ulink>.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </section>
-
- <section id="sect-5.1.1_Release_Notes-Migration">
- <title>Migration</title>
- <para>
- JBoss Enterprise Portal Platform 5 is based upon an entirely new core architecture and is not backwards compatible with JBoss Enterprise Portal Platform 4.3.
- </para>
- <para>
- As a value added part of an enterprise subscription the JBoss Portal team is working to develop a set of migration utilities (which may take the form of documentation, guides and/or scripts) to assist customers in migration. We intend to release these utilities in a future revision of JBoss Enterprise Portal Platform 5.
- </para>
- <para>
- For customers seeking to begin a migration prior to the availability of any Red Hat provided migration utilities, please contact Red Hat JBoss Support for migration advice. Red Hat JBoss support will be the main communication channel for migration knowledge as it is developed.
- </para>
- <para>
- Red Hat JBoss Customer Support can be accessed at <ulink type="http" url="https://www.redhat.com/apps/support/" />.
- </para>
- </section>
-
- <section id="sect-5.1.1_Release_Notes-Site_Publisher">
- <title>Site Publisher</title>
- <para>
- Site Publisher provides many additional features for organizations looking to enable line of business resources to directly manage sites, pages and content within the context of the portal versus through integration with an external web content management system.
- </para>
- <para>
- This add-on is available for download from the <ulink type="http" url="https://support.redhat.com/jbossnetwork/restricted/softwareDetail.html?so...">Red Hat Customer Support Portal</ulink>.
- </para>
- <para>
- Documentation for this extension is available at <ulink type="http" url="http://docs.redhat.com/docs/en-US/JBoss_Site_Publisher/index.html">http://docs.redhat.com</ulink>
- </para>
-
- </section>
-
- <section id="sect-5.1.1_Release_Notes-Documentation">
- <title>Documentation</title>
- <para>
- Visit <ulink type="http" url="http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Portal_Platform/index....">http://docs.redhat.com</ulink> for further documentation regarding JBoss Enterprise Portal Platform.
- </para>
- <para>
- This documentation includes:
- </para>
- <para>
- <variablelist>
- <varlistentry>
- <term>Installation Guide</term>
- <listitem>
- <para>
- This document explains how to install and verify the installation of JBoss Enterprise Portal Platform using different installation methods.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>User Guide</term>
- <listitem>
- <para>
- This document provides an easy to follow guide to the functions and options available in JBoss Enterprise Portal Platform. It is intended to be accessible and useful to both experienced and novice portal users.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>Reference Guide</term>
- <listitem>
- <para>
- This is a high-level usage document. It deals with more advanced topics than the Installation and User guides, adding new content or taking concepts discussed in the earlier documents further. It aims to provide supporting documentation for advanced users of JBoss Enterprise Portal Platform. Its primary focus is on advanced use of the product and it assumes an intermediate or advanced knowledge of the technology and terms.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>Site Publisher</term>
- <listitem>
- <para>
- Dedicated Installation and User Guides provide information on installing, configuring and using the JBoss Enterprise Portal Platform Site Publisher extension. These documents assume the required JBoss Enterprise Portal Platform installation is present and functioning properly.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </para>
- <para>
- The online documentation will be updated as necessary so be sure to check the site regularly, especially when a new version of JBoss Enterprise Portal Platform is released.
- </para>
- </section>
-
- <section id="sect-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_">
- <title> Product Support and License Website Links </title>
- <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-Red_Hat_JBoss_Customer_Support">
- <title>Red Hat JBoss Customer Support</title>
- <para>
- <ulink type="http" url="https://access.redhat.com/home " />
- </para>
- </formalpara>
- <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-JBoss_Customer_Support_Portal_Downloads">
- <title>JBoss Customer Support Portal Downloads</title>
- <para>
- <ulink type="http" url="https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?produ..." />
- </para>
- </formalpara>
- <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-Support_Processes">
- <title>Support Processes</title>
- <para>
- <ulink url="https://access.redhat.com/support/policy/support_process.html" />
- </para>
- </formalpara>
- <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-_Production_Support_Scope_of_Coverage_">
- <title> Production Support Scope of Coverage </title>
- <para>
- <ulink url="https://access.redhat.com/support/offerings/production/soc.html" />
- </para>
- </formalpara>
- <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-_Production_Support_Service_Level_Agreement_">
- <title> Production Support Service Level Agreement </title>
- <para>
- <ulink url="https://access.redhat.com/support/offerings/production/sla.html" />
- </para>
- </formalpara>
- <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-_Developer_Support_Scope_of_Coverage">
- <title> Developer Support Scope of Coverage</title>
- <para>
- <ulink url="https://access.redhat.com/support/offerings/developer/soc.html" />
- </para>
- </formalpara>
- <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-_Developer_Support_Service_Level_Agreement">
- <title> Developer Support Service Level Agreement</title>
- <para>
- <ulink url="https://access.redhat.com/support/offerings/developer/sla.html" />
- </para>
- </formalpara>
- <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-_Product_Update_and_Support_Policy">
- <title> Product Update and Support Policy</title>
- <para>
- <ulink url="https://access.redhat.com/support/policy/updates/jboss_notes/" />
- </para>
- </formalpara>
- <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-_JBoss_End_User_License_Agreement">
- <title> JBoss End User License Agreement</title>
- <para>
- <ulink url="http://www.redhat.com/licenses/jboss_eula.html" />
- </para>
- </formalpara>
- </section>
-
- <xi:include href="Revision_History.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</article>
Copied: epp/docs/branches/5.2/Release_Notes/en-US/5.2.0_Release_Notes.ent (from rev 7245, epp/docs/branches/5.2/Release_Notes/en-US/5.1.1_Release_Notes.ent)
===================================================================
--- epp/docs/branches/5.2/Release_Notes/en-US/5.2.0_Release_Notes.ent (rev 0)
+++ epp/docs/branches/5.2/Release_Notes/en-US/5.2.0_Release_Notes.ent 2011-09-15 23:21:58 UTC (rev 7443)
@@ -0,0 +1,14 @@
+<!-- Product Specifics: -->
+<!ENTITY PRODUCT "JBoss Enterprise Portal Platform">
+
+<!-- Book specifics: -->
+<!ENTITY BOOKID "5.1.1 Release Notes">
+
+<!-- Corporate Specifics: -->
+<!ENTITY YEAR "2011">
+<!ENTITY HOLDER "Red Hat, Inc">
+
+<!-- Version Specifcs: -->
+<!ENTITY VX "5">
+<!ENTITY VY "5.2">
+<!ENTITY VZ "5.2.0">
\ No newline at end of file
Copied: epp/docs/branches/5.2/Release_Notes/en-US/5.2.0_Release_Notes.xml (from rev 7242, epp/docs/branches/5.2/Release_Notes/en-US/5.1.1_Release_Notes.xml)
===================================================================
--- epp/docs/branches/5.2/Release_Notes/en-US/5.2.0_Release_Notes.xml (rev 0)
+++ epp/docs/branches/5.2/Release_Notes/en-US/5.2.0_Release_Notes.xml 2011-09-15 23:21:58 UTC (rev 7443)
@@ -0,0 +1,492 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "5.1.1_Release_Notes.ent">
+%BOOK_ENTITIES;
+]>
+<article>
+ <xi:include href="Book_Info.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ <section id="sect-5.1.1_Release_Notes-Introduction">
+ <title>Introduction</title>
+ <para>
+ JBoss Enterprise Portal Platform offers an intuitive, easy to manage user interface and a proven core infrastructure to enable organizations to quickly build dynamic web sites in a highly reusable way. By bringing the principals of Open Choice to the presentation layer, JBoss Enterprise Portal Platform 5 maximizes existing skills and technology investments.
+ </para>
+ <para>
+ By integrating proven open source frameworks such as JBoss Seam, Hibernate, Tomcat and JBoss Cache JBoss Enterprise Portal Platform takes advantage of innovations in the open source community. As well, JBoss Enterprise Portal Platform version 5.1.1 is fully tested and supported by Red Hat, and is certified to work on many leading enterprise hardware and software products.
+ </para>
+
+ </section>
+
+ <section id="sect-5.1.1_Release_Notes-New_and_Upgraded_Components">
+ <title>Upgraded Components</title>
+
+ <variablelist id="vari-5.1.1_Release_Notes-New_and_Upgraded_Components-Upgraded_Components">
+ <title></title>
+ <varlistentry>
+ <term></term>
+ <listitem>
+ <para>
+
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para>
+ More details about the component versions that make up JBoss Enterprise Portal Platform 5.1.1 can be found in <xref linkend="sect-5.1.1_Release_Notes-Component_Versions"/>
+ </para>
+ <!-- Source Metadata
+ URL: https://issues.jboss.org/browse/JBEPP-897
+ Author [w/email]: Honza Fnukal (hfnukal(a)redhat.com)
+ License: Red Hat?
+ -->
+ </section>
+
+ <section id="sect-5.1.1_Release_Notes-Component_Versions">
+ <title>Component Versions</title>
+ <para>
+ This section details the versions of the components in JBoss Enterprise Portal Platform 5.1.1.
+ </para>
+ <table id="tabl-5.1.1_Release_Notes-Component_Versions-JBoss_Enterprise_Portal_Platform_Component_Versions">
+ <title>JBoss Enterprise Portal Platform Component Versions</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>
+ Component
+ </entry>
+ <entry>
+ Version
+ </entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>
+ EAP
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ eXo junit
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ eXo kernel
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ eXo Core
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ eXo WS
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ eXo JCR
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ Apache Shindig
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ Simple Captcha
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ GateIn Parent
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ GateIn dep
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ GateIn Common
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ GateIn WCI
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ GateIn PC
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ GateIn WSRP
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ GateIn MOP
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ GateIn SSO
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ PicketLink IDM
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ Chromattic
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ Portlet Bridge
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ Seam
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ Richfaces
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ Groovy
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ Commons DBCP
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ Commons IO
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ Commons Lang
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ HSQLDB
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ JBoss Cache
+ </entry>
+ <entry>
+
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <!-- Source Metadata
+ URL: https://docspace.corp.redhat.com/docs/DOC-64265
+ Author: Thomas Heute (theute(a)redhat.com)
+ License: Red Hat is the Holder.
+ -->
+ </section>
+
+ <section id="sect-5.1.1_Release_Notes-Installation">
+ <title>Installation</title>
+ <para>
+ The JBoss Enterprise Portal Platform Installation Guide contains details of software and hardware requirements as well as detailed installation instructions.
+ </para>
+ <para>
+ The Installation Guide can be found online at <ulink type="http" url="http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Portal_Platform/index...." />.
+ </para>
+
+ </section>
+
+ <section id="sect-5.1.1_Release_Notes-Resolved_Issues">
+ <title>Resolved Issues</title>
+ <xi:include href="resolved_issues.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+
+ </section>
+
+ <section id="sect-5.1.1_Release_Notes-Known_Issues">
+ <title>Known Issues</title>
+ <xi:include href="known_issues.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </section>
+
+ <section>
+ <title><remark>NEEDINFO Issues</remark></title>
+ <xi:include href="need_info.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </section>
+
+ <section>
+ <title><remark>Not Documented Issues</remark></title>
+ <xi:include href="not_documented.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </section>
+ <section>
+ <title>Security Related Issues</title>
+ <variablelist>
+ <title></title>
+ <varlistentry>
+ <term></term>
+ <listitem>
+ <para>
+
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+ <section>
+ <title>Recommended Practices</title>
+ <variablelist>
+ <!-- https://issues.jboss.org/browse/JBEPP-610 -->
+ <varlistentry>
+ <term>Plain Text Passwords</term>
+ <listitem>
+ <para>
+ JBoss Enterprise Portal Platform administrators should be aware that passwords saved by users who chose the <guilabel>Remember Me</guilabel> option when logging in are stored in the underlying JCR in plain text. This creates a possible security risk as user passwords could be obtained with an SQL query.
+ </para>
+ <para>
+ While this is the default behavior of JBoss Enterprise Portal Platform, administrators can negate this risk by either disabling the <guilabel>Remember Me</guilabel> option or encrypting the passwords stored in the JCR.
+ </para>
+ <para>
+ Instructions for implementing both of these solutions are included in section 14.1 of the JBoss Enterprise Portal Platform Reference Guide which is available at <ulink type="http" url="http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Portal_Platform/index...."></ulink>.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
+ <section id="sect-5.1.1_Release_Notes-Migration">
+ <title>Migration</title>
+ <para>
+ JBoss Enterprise Portal Platform 5 is based upon an entirely new core architecture and is not backwards compatible with JBoss Enterprise Portal Platform 4.3.
+ </para>
+ <para>
+ As a value added part of an enterprise subscription the JBoss Portal team is working to develop a set of migration utilities (which may take the form of documentation, guides and/or scripts) to assist customers in migration. We intend to release these utilities in a future revision of JBoss Enterprise Portal Platform 5.
+ </para>
+ <para>
+ For customers seeking to begin a migration prior to the availability of any Red Hat provided migration utilities, please contact Red Hat JBoss Support for migration advice. Red Hat JBoss support will be the main communication channel for migration knowledge as it is developed.
+ </para>
+ <para>
+ Red Hat JBoss Customer Support can be accessed at <ulink type="http" url="https://www.redhat.com/apps/support/" />.
+ </para>
+ </section>
+
+ <section id="sect-5.1.1_Release_Notes-Site_Publisher">
+ <title>Site Publisher</title>
+ <para>
+ Site Publisher provides many additional features for organizations looking to enable line of business resources to directly manage sites, pages and content within the context of the portal versus through integration with an external web content management system.
+ </para>
+ <para>
+ This add-on is available for download from the <ulink type="http" url="https://support.redhat.com/jbossnetwork/restricted/softwareDetail.html?so...">Red Hat Customer Support Portal</ulink>.
+ </para>
+ <para>
+ Documentation for this extension is available at <ulink type="http" url="http://docs.redhat.com/docs/en-US/JBoss_Site_Publisher/index.html">http://docs.redhat.com</ulink>
+ </para>
+
+ </section>
+
+ <section id="sect-5.1.1_Release_Notes-Documentation">
+ <title>Documentation</title>
+ <para>
+ Visit <ulink type="http" url="http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Portal_Platform/index....">http://docs.redhat.com</ulink> for further documentation regarding JBoss Enterprise Portal Platform.
+ </para>
+ <para>
+ This documentation includes:
+ </para>
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term>Installation Guide</term>
+ <listitem>
+ <para>
+ This document explains how to install and verify the installation of JBoss Enterprise Portal Platform using different installation methods.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>User Guide</term>
+ <listitem>
+ <para>
+ This document provides an easy to follow guide to the functions and options available in JBoss Enterprise Portal Platform. It is intended to be accessible and useful to both experienced and novice portal users.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Reference Guide</term>
+ <listitem>
+ <para>
+ This is a high-level usage document. It deals with more advanced topics than the Installation and User guides, adding new content or taking concepts discussed in the earlier documents further. It aims to provide supporting documentation for advanced users of JBoss Enterprise Portal Platform. Its primary focus is on advanced use of the product and it assumes an intermediate or advanced knowledge of the technology and terms.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Site Publisher</term>
+ <listitem>
+ <para>
+ Dedicated Installation and User Guides provide information on installing, configuring and using the JBoss Enterprise Portal Platform Site Publisher extension. These documents assume the required JBoss Enterprise Portal Platform installation is present and functioning properly.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ <para>
+ The online documentation will be updated as necessary so be sure to check the site regularly, especially when a new version of JBoss Enterprise Portal Platform is released.
+ </para>
+ </section>
+
+ <section id="sect-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_">
+ <title> Product Support and License Website Links </title>
+ <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-Red_Hat_JBoss_Customer_Support">
+ <title>Red Hat JBoss Customer Support</title>
+ <para>
+ <ulink type="http" url="https://access.redhat.com/home " />
+ </para>
+ </formalpara>
+ <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-JBoss_Customer_Support_Portal_Downloads">
+ <title>JBoss Customer Support Portal Downloads</title>
+ <para>
+ <ulink type="http" url="https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?produ..." />
+ </para>
+ </formalpara>
+ <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-Support_Processes">
+ <title>Support Processes</title>
+ <para>
+ <ulink url="https://access.redhat.com/support/policy/support_process.html" />
+ </para>
+ </formalpara>
+ <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-_Production_Support_Scope_of_Coverage_">
+ <title> Production Support Scope of Coverage </title>
+ <para>
+ <ulink url="https://access.redhat.com/support/offerings/production/soc.html" />
+ </para>
+ </formalpara>
+ <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-_Production_Support_Service_Level_Agreement_">
+ <title> Production Support Service Level Agreement </title>
+ <para>
+ <ulink url="https://access.redhat.com/support/offerings/production/sla.html" />
+ </para>
+ </formalpara>
+ <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-_Developer_Support_Scope_of_Coverage">
+ <title> Developer Support Scope of Coverage</title>
+ <para>
+ <ulink url="https://access.redhat.com/support/offerings/developer/soc.html" />
+ </para>
+ </formalpara>
+ <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-_Developer_Support_Service_Level_Agreement">
+ <title> Developer Support Service Level Agreement</title>
+ <para>
+ <ulink url="https://access.redhat.com/support/offerings/developer/sla.html" />
+ </para>
+ </formalpara>
+ <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-_Product_Update_and_Support_Policy">
+ <title> Product Update and Support Policy</title>
+ <para>
+ <ulink url="https://access.redhat.com/support/policy/updates/jboss_notes/" />
+ </para>
+ </formalpara>
+ <formalpara id="form-5.1.1_Release_Notes-_Product_Support_and_License_Website_Links_-_JBoss_End_User_License_Agreement">
+ <title> JBoss End User License Agreement</title>
+ <para>
+ <ulink url="http://www.redhat.com/licenses/jboss_eula.html" />
+ </para>
+ </formalpara>
+ </section>
+
+ <xi:include href="Revision_History.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+</article>
Modified: epp/docs/branches/5.2/Release_Notes/publican.cfg
===================================================================
--- epp/docs/branches/5.2/Release_Notes/publican.cfg 2011-09-15 18:10:12 UTC (rev 7442)
+++ epp/docs/branches/5.2/Release_Notes/publican.cfg 2011-09-15 23:21:58 UTC (rev 7443)
@@ -7,4 +7,4 @@
show_remarks: 1
cvs_branch: DOCS-RHEL-6
cvs_root: :ext:cvs.devel.redhat.com:/cvs/dist
-cvs_pkg: JBoss_Enterprise_Portal_Platform-5.1.1_Release_Notes-5.1-web-__LANG__
\ No newline at end of file
+cvs_pkg: JBoss_Enterprise_Portal_Platform-5.2.0_Release_Notes-5.2-web-__LANG__
\ No newline at end of file
13 years, 3 months
gatein SVN: r7442 - components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2011-09-15 14:10:12 -0400 (Thu, 15 Sep 2011)
New Revision: 7442
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/ServiceDescriptionHandler.java
Log:
- GTNWSRP-240: can only access the portlet's info if it is started?\226?\128?\166
Modified: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/ServiceDescriptionHandler.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/ServiceDescriptionHandler.java 2011-09-15 16:15:09 UTC (rev 7441)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/ServiceDescriptionHandler.java 2011-09-15 18:10:12 UTC (rev 7442)
@@ -170,30 +170,30 @@
if (managedObject instanceof ManagedPortletContainer)
{
ManagedPortletContainer portletContainer = (ManagedPortletContainer)managedObject;
- final PortletInfo info = portletContainer.getInfo();
+ String applicationId = portletContainer.getManagedPortletApplication().getId();
+ String containerId = portletContainer.getId();
- // only process portlet if it's remotable
- if (isRemotable(info.getRuntimeOptionsInfo()))
+ org.gatein.pc.api.PortletContext pc = org.gatein.pc.api.PortletContext.createPortletContext(applicationId, containerId);
+
+ if (managedObjectEvent instanceof ManagedObjectLifeCycleEvent)
{
- String applicationId = portletContainer.getManagedPortletApplication().getId();
- String containerId = portletContainer.getId();
-
- org.gatein.pc.api.PortletContext pc = org.gatein.pc.api.PortletContext.createPortletContext(applicationId, containerId);
-
- if (managedObjectEvent instanceof ManagedObjectLifeCycleEvent)
+ ManagedObjectLifeCycleEvent lifeCycleEvent = (ManagedObjectLifeCycleEvent)managedObjectEvent;
+ LifeCycleStatus status = lifeCycleEvent.getStatus();
+ if (LifeCycleStatus.STARTED.equals(status))
{
- ManagedObjectLifeCycleEvent lifeCycleEvent = (ManagedObjectLifeCycleEvent)managedObjectEvent;
- LifeCycleStatus status = lifeCycleEvent.getStatus();
- if (LifeCycleStatus.STARTED.equals(status))
+ final PortletInfo info = portletContainer.getInfo();
+ // only add the portlet if it's remotable
+ if (isRemotable(info.getRuntimeOptionsInfo()))
{
serviceDescription.addPortletDescription(pc, info);
}
- else
- {
- serviceDescription.removePortletDescription(pc);
- }
}
+ else
+ {
+ serviceDescription.removePortletDescription(pc);
+ }
}
+
}
}
}
13 years, 3 months
gatein SVN: r7441 - in components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer: handlers and 1 other directory.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2011-09-15 12:15:09 -0400 (Thu, 15 Sep 2011)
New Revision: 7441
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/WSRPProducerImpl.java
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/ServiceDescriptionHandler.java
Log:
- GTNWSRP-240: only process remotable portlets in onEvent.
Modified: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/WSRPProducerImpl.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/WSRPProducerImpl.java 2011-09-15 11:35:56 UTC (rev 7440)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/WSRPProducerImpl.java 2011-09-15 16:15:09 UTC (rev 7441)
@@ -520,9 +520,7 @@
private boolean isRemotable(Portlet portlet)
{
Map<String, RuntimeOptionInfo> runtimeOptions = portlet.getInfo().getRuntimeOptionsInfo();
- RuntimeOptionInfo runtimeOptionInfo = runtimeOptions.get(RuntimeOptionInfo.REMOTABLE_RUNTIME_OPTION);
-
- return runtimeOptionInfo != null && "true".equals(runtimeOptionInfo.getValues().get(0));
+ return serviceDescriptionHandler.isRemotable(runtimeOptions);
}
public List<String> getSupportedLocales()
Modified: components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/ServiceDescriptionHandler.java
===================================================================
--- components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/ServiceDescriptionHandler.java 2011-09-15 11:35:56 UTC (rev 7440)
+++ components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/ServiceDescriptionHandler.java 2011-09-15 16:15:09 UTC (rev 7441)
@@ -36,6 +36,7 @@
import org.gatein.pc.api.info.NavigationInfo;
import org.gatein.pc.api.info.ParameterInfo;
import org.gatein.pc.api.info.PortletInfo;
+import org.gatein.pc.api.info.RuntimeOptionInfo;
import org.gatein.pc.api.info.SecurityInfo;
import org.gatein.pc.api.info.WindowStateInfo;
import org.gatein.pc.portlet.container.managed.LifeCycleStatus;
@@ -169,23 +170,29 @@
if (managedObject instanceof ManagedPortletContainer)
{
ManagedPortletContainer portletContainer = (ManagedPortletContainer)managedObject;
- String applicationId = portletContainer.getManagedPortletApplication().getId();
- String containerId = portletContainer.getId();
+ final PortletInfo info = portletContainer.getInfo();
- org.gatein.pc.api.PortletContext pc = org.gatein.pc.api.PortletContext.createPortletContext(applicationId, containerId);
+ // only process portlet if it's remotable
+ if (isRemotable(info.getRuntimeOptionsInfo()))
+ {
+ String applicationId = portletContainer.getManagedPortletApplication().getId();
+ String containerId = portletContainer.getId();
- if (managedObjectEvent instanceof ManagedObjectLifeCycleEvent)
- {
- ManagedObjectLifeCycleEvent lifeCycleEvent = (ManagedObjectLifeCycleEvent)managedObjectEvent;
- LifeCycleStatus status = lifeCycleEvent.getStatus();
- if (LifeCycleStatus.STARTED.equals(status))
+ org.gatein.pc.api.PortletContext pc = org.gatein.pc.api.PortletContext.createPortletContext(applicationId, containerId);
+
+ if (managedObjectEvent instanceof ManagedObjectLifeCycleEvent)
{
- serviceDescription.addPortletDescription(pc, portletContainer.getInfo());
+ ManagedObjectLifeCycleEvent lifeCycleEvent = (ManagedObjectLifeCycleEvent)managedObjectEvent;
+ LifeCycleStatus status = lifeCycleEvent.getStatus();
+ if (LifeCycleStatus.STARTED.equals(status))
+ {
+ serviceDescription.addPortletDescription(pc, info);
+ }
+ else
+ {
+ serviceDescription.removePortletDescription(pc);
+ }
}
- else
- {
- serviceDescription.removePortletDescription(pc);
- }
}
}
}
@@ -231,6 +238,13 @@
serviceDescription = new ServiceDescriptionInfo();
}
+ public boolean isRemotable(Map<String, RuntimeOptionInfo> runtimeOptions)
+ {
+ RuntimeOptionInfo runtimeOptionInfo = runtimeOptions.get(RuntimeOptionInfo.REMOTABLE_RUNTIME_OPTION);
+
+ return runtimeOptionInfo != null && "true".equals(runtimeOptionInfo.getValues().get(0));
+ }
+
private class ServiceDescriptionInfo
{
private long lastGenerated;
13 years, 3 months
gatein SVN: r7440 - in components/wsrp/trunk/consumer/src: main/java/org/gatein/wsrp/consumer/spi and 1 other directories.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2011-09-15 07:35:56 -0400 (Thu, 15 Sep 2011)
New Revision: 7440
Added:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/RegisteringPortletInvokerResolver.java
Removed:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/ActivatingNullInvokerHandler.java
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/AbstractConsumerRegistry.java
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/spi/ConsumerRegistrySPI.java
components/wsrp/trunk/consumer/src/test/java/org/gatein/wsrp/test/support/MockConsumerRegistry.java
Log:
- Renamed ActivatingNullInvokerHandler to RegisteringPortletInvokerResolver and fixed implementation of resolvePortletInvokerFor to only register the consumer instead of activating it (which might not be required) and return null if something went wrong.
- Added (de/)registerWithFederatingPortletInvoker methods on ConsumerRegistrySPI.
Modified: components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/AbstractConsumerRegistry.java
===================================================================
--- components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/AbstractConsumerRegistry.java 2011-09-15 11:28:21 UTC (rev 7439)
+++ components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/AbstractConsumerRegistry.java 2011-09-15 11:35:56 UTC (rev 7440)
@@ -24,9 +24,7 @@
package org.gatein.wsrp.consumer.registry;
import org.gatein.common.util.ParameterValidation;
-import org.gatein.pc.api.PortletInvoker;
import org.gatein.pc.api.PortletInvokerException;
-import org.gatein.pc.federation.FederatedPortletInvoker;
import org.gatein.pc.federation.FederatingPortletInvoker;
import org.gatein.wsrp.WSRPConsumer;
import org.gatein.wsrp.api.session.SessionEventBroadcaster;
@@ -218,13 +216,7 @@
protected void activateConsumer(WSRPConsumer consumer)
{
- ParameterValidation.throwIllegalArgExceptionIfNull(consumer, "WSRPConsumer");
- String id = consumer.getProducerId();
-
- if (!federatingPortletInvoker.isResolved(id))
- {
- startOrStopConsumer(consumer, true);
- }
+ startOrStopConsumer(consumer, true, false);
}
public void deactivateConsumerWith(String id) throws ConsumerException
@@ -235,16 +227,19 @@
protected void deactivateConsumer(WSRPConsumer consumer)
{
- ParameterValidation.throwIllegalArgExceptionIfNull(consumer, "Consumer");
- String id = consumer.getProducerId();
+ startOrStopConsumer(consumer, false, false);
+ }
- // only process if there is a registered Consumer with the specified id
- if (federatingPortletInvoker.isResolved(id))
- {
- startOrStopConsumer(consumer, false);
- }
+ public void registerWithFederatingPortletInvoker(WSRPConsumer consumer)
+ {
+ startOrStopConsumer(consumer, true, true);
}
+ public void deregisterWithFederatingPortletInvoker(WSRPConsumer consumer)
+ {
+ startOrStopConsumer(consumer, false, true);
+ }
+
public String updateProducerInfo(ProducerInfo producerInfo)
{
ParameterValidation.throwIllegalArgExceptionIfNull(producerInfo, "ProducerInfo");
@@ -408,39 +403,39 @@
}
}
- private void startOrStopConsumer(WSRPConsumer consumer, boolean start)
+ private void startOrStopConsumer(WSRPConsumer consumer, boolean start, boolean registerOrDeregisterOnly)
{
+ ParameterValidation.throwIllegalArgExceptionIfNull(consumer, "WSRPConsumer");
try
{
String id = consumer.getProducerId();
if (start)
{
- consumer.activate();
- federatingPortletInvoker.registerInvoker(id, consumer);
+ if (!registerOrDeregisterOnly)
+ {
+ consumer.activate();
+ }
+
+ if (!federatingPortletInvoker.isResolved(id))
+ {
+ federatingPortletInvoker.registerInvoker(id, consumer);
+ }
+
sessionEventBroadcaster.registerListener(getListenerIdFrom(id), consumer);
}
else
{
- FederatedPortletInvoker fedInvoker = federatingPortletInvoker.getFederatedInvoker(id);
- if (fedInvoker != null)
+ if (!registerOrDeregisterOnly)
{
- PortletInvoker invoker = fedInvoker.getPortletInvoker();
- if (invoker instanceof WSRPConsumer)
- {
- consumer = (WSRPConsumer)invoker;
- consumer.deactivate();
- federatingPortletInvoker.unregisterInvoker(id);
- sessionEventBroadcaster.unregisterListener(getListenerIdFrom(id));
- }
- else
- {
- throw new IllegalArgumentException("PortletInvoker with id '" + id + "' is not a WSRPConsumer!");
- }
+ consumer.deactivate();
}
- else
+
+ if (federatingPortletInvoker.isResolved(id))
{
- throw new IllegalArgumentException("There is no registered PortletInvoker with id '" + id + "'");
+ federatingPortletInvoker.unregisterInvoker(id);
}
+
+ sessionEventBroadcaster.unregisterListener(getListenerIdFrom(id));
}
}
catch (Exception e)
Deleted: components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/ActivatingNullInvokerHandler.java
===================================================================
--- components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/ActivatingNullInvokerHandler.java 2011-09-15 11:28:21 UTC (rev 7439)
+++ components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/ActivatingNullInvokerHandler.java 2011-09-15 11:35:56 UTC (rev 7440)
@@ -1,96 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2011, Red Hat Middleware, LLC, and individual
- * contributors as indicated by the @authors tag. See the
- * copyright.txt in the distribution for a full listing of
- * individual contributors.
- *
- * 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 2.1 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.
- */
-
-package org.gatein.wsrp.consumer.registry;
-
-import org.gatein.pc.api.NoSuchPortletException;
-import org.gatein.pc.federation.FederatedPortletInvoker;
-import org.gatein.pc.federation.FederatingPortletInvoker;
-import org.gatein.pc.federation.NullInvokerHandler;
-import org.gatein.pc.federation.impl.FederatedPortletInvokerService;
-import org.gatein.wsrp.WSRPConsumer;
-
-import java.util.Collection;
-
-/**
- * Attempts to activate a WSRP consumer named like the missing invoker that trigger the invocation of this
- * NullInvokerHandler. This is in particularly helpful to activate configured consumers that haven't been started yet
- * when a portlet referencing them is accessed.
- *
- * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
- * @version $Revision$
- */
-public class ActivatingNullInvokerHandler implements NullInvokerHandler
-{
- private transient ConsumerRegistry consumerRegistry;
-
- public FederatedPortletInvoker resolvePortletInvokerFor(String invokerId, FederatingPortletInvoker callingInvoker, String compoundPortletId) throws NoSuchPortletException
- {
- FederatingPortletInvoker registryInvoker = consumerRegistry.getFederatingPortletInvoker();
- if (registryInvoker != callingInvoker)
- {
- throw new IllegalArgumentException("Trying to use a ConsumerRegistry already linked to a different FederatingPortletInvoker ("
- + registryInvoker + ") than the specified one (" + callingInvoker + ")");
- }
-
- WSRPConsumer consumer = consumerRegistry.getConsumer(invokerId);
-
- // if there's no consumer with that invoker id, then there's nothing much we can do
- if (consumer == null)
- {
- if (compoundPortletId != null)
- {
- throw new NoSuchPortletException(compoundPortletId);
- }
- else
- {
- return null;
- }
- }
- else
- {
- // activate the consumer which should register it with this FederatingPortletInvoker
- synchronized (this)
- {
- consumerRegistry.activateConsumerWith(invokerId);
-
- return new FederatedPortletInvokerService(callingInvoker, invokerId, consumer);
- }
- }
- }
-
- public boolean knows(String invoker)
- {
- return consumerRegistry.containsConsumer(invoker);
- }
-
- public Collection<String> getKnownInvokerIds()
- {
- return consumerRegistry.getConfiguredConsumersIds();
- }
-
- public void setConsumerRegistry(ConsumerRegistry consumerRegistry)
- {
- this.consumerRegistry = consumerRegistry;
- }
-}
Copied: components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/RegisteringPortletInvokerResolver.java (from rev 7393, components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/ActivatingNullInvokerHandler.java)
===================================================================
--- components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/RegisteringPortletInvokerResolver.java (rev 0)
+++ components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/RegisteringPortletInvokerResolver.java 2011-09-15 11:35:56 UTC (rev 7440)
@@ -0,0 +1,105 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2011, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * 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 2.1 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.
+ */
+
+package org.gatein.wsrp.consumer.registry;
+
+import org.gatein.pc.api.NoSuchPortletException;
+import org.gatein.pc.federation.FederatedPortletInvoker;
+import org.gatein.pc.federation.FederatingPortletInvoker;
+import org.gatein.pc.federation.PortletInvokerResolver;
+import org.gatein.pc.federation.impl.FederatedPortletInvokerService;
+import org.gatein.wsrp.WSRPConsumer;
+import org.gatein.wsrp.consumer.ConsumerException;
+import org.gatein.wsrp.consumer.spi.ConsumerRegistrySPI;
+
+import java.util.Collection;
+
+/**
+ * Attempts to activate a WSRP consumer named like the missing invoker that trigger the invocation of this
+ * PortletInvokerResolver. This is in particularly helpful to activate configured consumers that haven't been started
+ * yet
+ * when a portlet referencing them is accessed.
+ *
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ */
+public class RegisteringPortletInvokerResolver implements PortletInvokerResolver
+{
+ private transient ConsumerRegistrySPI consumerRegistry;
+
+ public FederatedPortletInvoker resolvePortletInvokerFor(String invokerId, FederatingPortletInvoker callingInvoker, String compoundPortletId) throws NoSuchPortletException
+ {
+ FederatingPortletInvoker registryInvoker = consumerRegistry.getFederatingPortletInvoker();
+ if (registryInvoker != callingInvoker)
+ {
+ throw new IllegalArgumentException("Trying to use a ConsumerRegistry already linked to a different FederatingPortletInvoker ("
+ + registryInvoker + ") than the specified one (" + callingInvoker + ")");
+ }
+
+ WSRPConsumer consumer = consumerRegistry.getConsumer(invokerId);
+
+ // if there's no consumer with that invoker id, then there's nothing much we can do
+ if (consumer == null)
+ {
+ if (compoundPortletId != null)
+ {
+ throw new NoSuchPortletException(compoundPortletId);
+ }
+ else
+ {
+ return null;
+ }
+ }
+ else
+ {
+ // register it with the FederatingPortletInvoker
+ synchronized (this)
+ {
+ try
+ {
+ consumerRegistry.registerWithFederatingPortletInvoker(consumer);
+ return new FederatedPortletInvokerService(callingInvoker, invokerId, consumer);
+ }
+ catch (ConsumerException e)
+ {
+ return null;
+ }
+ }
+ }
+ }
+
+ public boolean knows(String invoker)
+ {
+ return consumerRegistry.containsConsumer(invoker);
+ }
+
+ public Collection<String> getKnownInvokerIds()
+ {
+ return consumerRegistry.getConfiguredConsumersIds();
+ }
+
+ public void setConsumerRegistry(ConsumerRegistrySPI consumerRegistry)
+ {
+ this.consumerRegistry = consumerRegistry;
+ }
+}
Modified: components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/spi/ConsumerRegistrySPI.java
===================================================================
--- components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/spi/ConsumerRegistrySPI.java 2011-09-15 11:28:21 UTC (rev 7439)
+++ components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/spi/ConsumerRegistrySPI.java 2011-09-15 11:35:56 UTC (rev 7440)
@@ -70,4 +70,8 @@
ProducerInfo loadProducerInfo(String id);
WSRPConsumer createConsumerFrom(ProducerInfo producerInfo);
+
+ void registerWithFederatingPortletInvoker(WSRPConsumer consumer);
+
+ void deregisterWithFederatingPortletInvoker(WSRPConsumer consumer);
}
Modified: components/wsrp/trunk/consumer/src/test/java/org/gatein/wsrp/test/support/MockConsumerRegistry.java
===================================================================
--- components/wsrp/trunk/consumer/src/test/java/org/gatein/wsrp/test/support/MockConsumerRegistry.java 2011-09-15 11:28:21 UTC (rev 7439)
+++ components/wsrp/trunk/consumer/src/test/java/org/gatein/wsrp/test/support/MockConsumerRegistry.java 2011-09-15 11:35:56 UTC (rev 7440)
@@ -224,4 +224,14 @@
{
throw new UnsupportedOperationException();
}
+
+ public void registerWithFederatingPortletInvoker(WSRPConsumer consumer)
+ {
+ consumers.put(consumer.getProducerId(), consumer);
+ }
+
+ public void deregisterWithFederatingPortletInvoker(WSRPConsumer consumer)
+ {
+ consumers.remove(consumer.getProducerId());
+ }
}
13 years, 3 months
gatein SVN: r7439 - components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2011-09-15 07:28:21 -0400 (Thu, 15 Sep 2011)
New Revision: 7439
Modified:
components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui/ConsumerManagerBean.java
Log:
- Set selectedId to null if we got an exception.
Modified: components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui/ConsumerManagerBean.java
===================================================================
--- components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui/ConsumerManagerBean.java 2011-09-15 11:14:05 UTC (rev 7438)
+++ components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui/ConsumerManagerBean.java 2011-09-15 11:28:21 UTC (rev 7439)
@@ -195,6 +195,7 @@
}
catch (Exception e)
{
+ selectedId = null;
beanContext.createErrorMessageFrom(MESSAGE_TARGET, e);
return null;
}
13 years, 3 months
gatein SVN: r7438 - epp/portal/branches/EPP_5_2_Branch/webui/dashboard/src/main/java/org/exoplatform/dashboard/webui/component.
by do-not-reply@jboss.org
Author: theute
Date: 2011-09-15 07:14:05 -0400 (Thu, 15 Sep 2011)
New Revision: 7438
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIAddGadgetForm.java
Log:
JBEPP-1179: Adding a rss feed int he dashboard add the wrong rss
Modified: epp/portal/branches/EPP_5_2_Branch/webui/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIAddGadgetForm.java
===================================================================
--- epp/portal/branches/EPP_5_2_Branch/webui/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIAddGadgetForm.java 2011-09-15 11:03:11 UTC (rev 7437)
+++ epp/portal/branches/EPP_5_2_Branch/webui/dashboard/src/main/java/org/exoplatform/dashboard/webui/component/UIAddGadgetForm.java 2011-09-15 11:14:05 UTC (rev 7438)
@@ -97,14 +97,12 @@
//TODO make sure it's an rss feed
// TODO make sure that we did not add it already
uiGadget = uiForm.createUIComponent(context, UIGadget.class, null, null);
- uiGadget.setState(new TransientApplicationState<org.exoplatform.portal.pom.spi.gadget.Gadget>(gadget.getName()));
- String params = "{'rssurl':'" + url + "'}";
+ org.exoplatform.portal.pom.spi.gadget.Gadget contentState = new org.exoplatform.portal.pom.spi.gadget.Gadget();
+ contentState.addUserPref("{'rssurl':'" + url + "'}");
+ TransientApplicationState<org.exoplatform.portal.pom.spi.gadget.Gadget> applicationState = new TransientApplicationState<org.exoplatform.portal.pom.spi.gadget.Gadget>(gadget.getName(), contentState);
- // Julien : I commented those 2 lines
- // we need to save the same way it is done in the UIGadget clas
- // UserGadgetStorage userGadgetStorage = uiForm.getApplicationComponent(UserGadgetStorage.class);
- // userGadgetStorage.save(Util.getPortalRequestContext().getRemoteUser(), gadget.getName(), "" + url.hashCode(), UIGadget.PREF_KEY, params);
+ uiGadget.setState(applicationState);
}
uiContainer.addUIGadget(uiGadget, 0, 0);
13 years, 3 months
gatein SVN: r7437 - in epp/portal/branches/EPP_5_2_Branch: webui/portal/src/main/java/org/exoplatform/portal/webui/application and 1 other directory.
by do-not-reply@jboss.org
Author: theute
Date: 2011-09-15 07:03:11 -0400 (Thu, 15 Sep 2011)
New Revision: 7437
Modified:
epp/portal/branches/EPP_5_2_Branch/web/portal/src/main/webapp/groovy/portal/webui/application/UIGadget.gtmpl
epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/GadgetUtil.java
epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIGadget.java
Log:
JBEPP-1178: When add gadget to dashboard, it display source
Modified: epp/portal/branches/EPP_5_2_Branch/web/portal/src/main/webapp/groovy/portal/webui/application/UIGadget.gtmpl
===================================================================
--- epp/portal/branches/EPP_5_2_Branch/web/portal/src/main/webapp/groovy/portal/webui/application/UIGadget.gtmpl 2011-09-15 11:00:59 UTC (rev 7436)
+++ epp/portal/branches/EPP_5_2_Branch/web/portal/src/main/webapp/groovy/portal/webui/application/UIGadget.gtmpl 2011-09-15 11:03:11 UTC (rev 7437)
@@ -2,25 +2,32 @@
import org.exoplatform.web.application.JavascriptManager;
import org.exoplatform.portal.webui.application.GadgetUtil;
- def rcontext = _ctx.getRequestContext();
- JavascriptManager jsmanager = rcontext.getJavascriptManager();
- def hostName = GadgetUtil.getRelGadgetServerUrl();
- def url = uicomponent.getUrl();
- def metadata = uicomponent.getRpcMetadata();
- def posX = uicomponent.getProperties().getIntValue("locationX") + "px";
- def posY = uicomponent.getProperties().getIntValue("locationY") + "px";
- def zIndex = uicomponent.getProperties().getIntValue("zIndex");
- def id = uicomponent.getId();
- def isDev = uicomponent.isGadgetDeveloper();
- def noCache = uicomponent.isNoCache();
- def isDebug = uicomponent.isDebug();
- def view = uicomponent.getView();
- def userPref = uicomponent.getUserPref();
- jsmanager.importJavascript("eXo.gadget.UIGadget");
- rcontext.getJavascriptManager().addCustomizedOnLoadScript("eXo.gadget.UIGadget.confirmDeleteGadget = '" + _ctx.appRes("UIGadgetContainerManagement.confirm.DeleteGadget") + "';");
- jsmanager.addCustomizedOnLoadScript("eXo.gadget.UIGadget.createGadget('$url','content-$id', $metadata, $userPref, '$view', '$hostName', " + (isDev ? 1 : 0)
- + ", " + (isDebug ? 1 : 0) + ", " + (noCache ? 1 : 0) + ");");
-
+ def rcontext = _ctx.getRequestContext();
+ JavascriptManager jsmanager = rcontext.getJavascriptManager();
+ def hostName = GadgetUtil.getRelGadgetServerUrl();
+ def url = null;
+ def metadata = "";
+ def posX = uicomponent.getProperties().getIntValue("locationX") + "px";
+ def posY = uicomponent.getProperties().getIntValue("locationY") + "px";
+ def zIndex = uicomponent.getProperties().getIntValue("zIndex");
+ def id = uicomponent.getId() != null ? uicomponent.getId() : "UIGadget";
+ def isDev = uicomponent.isGadgetDeveloper();
+ def noCache = uicomponent.isNoCache();
+ def isDebug = uicomponent.isDebug();
+ def view = uicomponent.getView();
+ def userPref = null;
+
+ def isLossData = uicomponent.isLossData();
+ if(!isLossData) {
+ url = uicomponent.getUrl();
+ metadata = uicomponent.getRpcMetadata();
+ userPref = uicomponent.getUserPref();
+ jsmanager.importJavascript("eXo.gadget.UIGadget");
+ rcontext.getJavascriptManager().addCustomizedOnLoadScript("eXo.gadget.UIGadget.confirmDeleteGadget = '" + _ctx.appRes("UIGadgetContainerManagement.confirm.DeleteGadget") + "';");
+ jsmanager.addCustomizedOnLoadScript("eXo.gadget.UIGadget.createGadget('$url','content-$id', $metadata, $userPref, '$view', '$hostName', " + (isDev ? 1 : 0)
+ + ", " + (isDebug ? 1 : 0) + ", " + (noCache ? 1 : 0) + ");");
+ }
+
boolean isMini = Boolean.parseBoolean(uicomponent.getProperties().get("minimized"));
String miniTitle = _ctx.appRes("UIGadget.tooltip.Minimize");
String unminiTitle = _ctx.appRes("UIGadget.tooltip.Unminimize");
Modified: epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/GadgetUtil.java
===================================================================
--- epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/GadgetUtil.java 2011-09-15 11:00:59 UTC (rev 7436)
+++ epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/GadgetUtil.java 2011-09-15 11:03:11 UTC (rev 7437)
@@ -88,6 +88,7 @@
"{\"context\":{\"country\":\"" + gadgetService.getCountry() + "\",\"language\":\""
+ gadgetService.getLanguage() + "\"},\"gadgets\":[" + "{\"moduleId\":" + gadgetService.getModuleId()
+ ",\"url\":\"" + urlStr + "\",\"prefs\":[]}]}";
+
// Send data
String gadgetServer = getGadgetServerUrl();
URL url = new URL(gadgetServer + (gadgetServer.endsWith("/") ? "" : "/") + "metadata");
@@ -148,6 +149,7 @@
}
return result;
}
+
public static String createToken(String gadgetURL, Long moduleId)
{
SecurityTokenGenerator tokenGenerator =
Modified: epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIGadget.java
===================================================================
--- epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIGadget.java 2011-09-15 11:00:59 UTC (rev 7436)
+++ epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIGadget.java 2011-09-15 11:03:11 UTC (rev 7437)
@@ -231,6 +231,7 @@
return null;
}
}
+
public String getRpcMetadata()
{
try
@@ -250,6 +251,7 @@
return null;
}
}
+
/**
* Check if content of gadget has <UserPref>? (Content is parsed from gadget specification in .xml file)
* @return boolean
13 years, 3 months
gatein SVN: r7436 - in components/pc/trunk/api/src: test/java/org/gatein/pc/api and 1 other directory.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2011-09-15 07:00:59 -0400 (Thu, 15 Sep 2011)
New Revision: 7436
Modified:
components/pc/trunk/api/src/main/java/org/gatein/pc/api/PortletContext.java
components/pc/trunk/api/src/test/java/org/gatein/pc/api/PortletContextTestCase.java
Log:
- Make PortletContext components Serializable.
- Added test case to make sure PortletContext stays Serializable regardless of internal changes.
Modified: components/pc/trunk/api/src/main/java/org/gatein/pc/api/PortletContext.java
===================================================================
--- components/pc/trunk/api/src/main/java/org/gatein/pc/api/PortletContext.java 2011-09-15 09:05:50 UTC (rev 7435)
+++ components/pc/trunk/api/src/main/java/org/gatein/pc/api/PortletContext.java 2011-09-15 11:00:59 UTC (rev 7436)
@@ -389,7 +389,7 @@
return components;
}
- public static interface PortletContextComponents
+ public static interface PortletContextComponents extends Serializable
{
String getApplicationName();
@@ -410,14 +410,14 @@
boolean isInterpreted();
}
- protected static interface Components extends PortletContextComponents
+ protected static interface Components extends PortletContextComponents, Serializable
{
Components createCopyWithoutInvoker();
Components createCopyWithInvoker(String invoker);
}
- private static class InterpretedPortletContextComponents implements Components
+ private static class InterpretedPortletContextComponents implements Components, Serializable
{
private final String applicationName;
private final String portletName;
@@ -499,7 +499,7 @@
}
}
- private static class UninterpretedPortletContextComponents implements Components
+ private static class UninterpretedPortletContextComponents implements Components, Serializable
{
private static final String ERROR = "This PortletContext was not intepreted, only the portlet name is available!";
private final String portletName;
Modified: components/pc/trunk/api/src/test/java/org/gatein/pc/api/PortletContextTestCase.java
===================================================================
--- components/pc/trunk/api/src/test/java/org/gatein/pc/api/PortletContextTestCase.java 2011-09-15 09:05:50 UTC (rev 7435)
+++ components/pc/trunk/api/src/test/java/org/gatein/pc/api/PortletContextTestCase.java 2011-09-15 11:00:59 UTC (rev 7436)
@@ -25,6 +25,12 @@
import junit.framework.TestCase;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.ObjectInputStream;
+import java.io.ObjectOutputStream;
+
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
* @version $Revision$
@@ -445,4 +451,27 @@
final PortletContext referencedContext = PortletContext.reference("invoker", context);
assertEquals(context, PortletContext.dereference(referencedContext));
}
+
+ public void testSerializationRoundtrip()
+ {
+ final PortletContext context = PortletContext.createPortletContext(" local\t " + PortletContext.INVOKER_SEPARATOR + " / foo \t. \t\n bar");
+
+ try
+ {
+ final File tempFile = File.createTempFile("pc-serialized", null, new File("/tmp"));
+ tempFile.deleteOnExit();
+ ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(tempFile.getName()));
+ out.writeObject(context);
+ out.close();
+
+ final ObjectInputStream in = new ObjectInputStream(new FileInputStream(tempFile.getName()));
+ final Object fromSerialization = in.readObject();
+
+ assertEquals(context, fromSerialization);
+ }
+ catch (Exception ex)
+ {
+ fail(ex.getMessage());
+ }
+ }
}
13 years, 3 months
gatein SVN: r7435 - epp/portal/branches/EPP_5_2_Branch/webui/dashboard/src/main/resources/groovy/dashboard/webui/component.
by do-not-reply@jboss.org
Author: theute
Date: 2011-09-15 05:05:50 -0400 (Thu, 15 Sep 2011)
New Revision: 7435
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboardSelectContainer.gtmpl
Log:
JBEPP-1177: IE7: Position of Add gadget icon in Dashboard workspace is incorrect when list gadget too long
Modified: epp/portal/branches/EPP_5_2_Branch/webui/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboardSelectContainer.gtmpl
===================================================================
--- epp/portal/branches/EPP_5_2_Branch/webui/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboardSelectContainer.gtmpl 2011-09-15 05:05:37 UTC (rev 7434)
+++ epp/portal/branches/EPP_5_2_Branch/webui/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboardSelectContainer.gtmpl 2011-09-15 09:05:50 UTC (rev 7435)
@@ -36,8 +36,8 @@
<%
List lstGadgets = uicomponent.getGadgetsOfCategory(category);
if(lstGadgets != null){
- if(lstGadgets.size() >= 20)
- uiPopup.setWindowSize(-1, 600);
+// if(lstGadgets.size() >= 20)
+// uiPopup.setWindowSize(-1, 600);
for(gadget in lstGadgets){
%>
13 years, 3 months