JBoss Portal SVN: r6233 - docs/trunk/referenceGuide/en/modules.
by portal-commits@lists.jboss.org
Author: julien(a)jboss.com
Date: 2007-02-12 17:33:02 -0500 (Mon, 12 Feb 2007)
New Revision: 6233
Modified:
docs/trunk/referenceGuide/en/modules/ipc.xml
Log:
update IPC section to update with new DTD + cosmetic
Modified: docs/trunk/referenceGuide/en/modules/ipc.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/ipc.xml 2007-02-12 22:28:08 UTC (rev 6232)
+++ docs/trunk/referenceGuide/en/modules/ipc.xml 2007-02-12 22:33:02 UTC (rev 6233)
@@ -76,17 +76,17 @@
<para>Enabling IPC, also requires that the listener be declared in the *-object.xml, so the Portal recognizes
it.
The declaration happens at the page level, as in our example:
- <programlisting>
- <![CDATA[
+ <programlisting><![CDATA[<!DOCTYPE deployments PUBLIC
+ "-//JBoss Portal//DTD Portal Object 2.6//EN"
+ "http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
<deployments>
<deployment>
<parent-ref>default</parent-ref>
<if-exists>overwrite</if-exists>
- <properties/>
<page>
<page-name>IPC</page-name>
<listener>ipc_listener</listener>
- <properties/>...]]>
+ ...]]>
</programlisting>
<note>The
<emphasis>listener</emphasis>
@@ -104,48 +104,46 @@
</para>
<para>In our example, Portlet A will be modifying the behaviour of Portlet B. So then we will declare the
listener in Portlet B, the recipient portlet.
- <programlisting>
- <![CDATA[
+ <programlisting><![CDATA[
public static class Listener implements PortalNodeEventListener
+{
+ public PortalNodeEvent onEvent(PortalNodeEventContext context, PortalNodeEvent event)
{
- public PortalNodeEvent onEvent(PortalNodeEventContext context, PortalNodeEvent event)
- {
- PortalNode node = event.getNode();
+ PortalNode node = event.getNode();
- // Get node name
- String nodeName = node.getName();
+ // Get node name
+ String nodeName = node.getName();
- // See if we need to create a new event or not
- WindowActionEvent newEvent = null;
- if(nodeName.equals("HelloWorldPortletAWindow") && event instanceof WindowActionEvent)
+ // See if we need to create a new event or not
+ WindowActionEvent newEvent = null;
+ if(nodeName.equals("HelloWorldPortletAWindow") && event instanceof WindowActionEvent)
+ {
+ // Find window B
+ WindowActionEvent wae = (WindowActionEvent) event;
+ PortalNode windowB = node.resolve("../HelloWorldPortletBWindow");
+ if(windowB != null)
{
- // Find window B
- WindowActionEvent wae = (WindowActionEvent) event;
- PortalNode windowB = node.resolve("../HelloWorldPortletBWindow");
- if(windowB != null)
- {
- // We can redirect and modify the view/mode as well!
- newEvent = new WindowActionEvent(windowB);
- newEvent.setMode(wae.getMode());
- //newEvent.setWindowState(WindowState.MAXIMIZED);
- newEvent.setParameters(wae.getParameters());
- }
+ // We can redirect and modify the view/mode as well!
+ newEvent = new WindowActionEvent(windowB);
+ newEvent.setMode(wae.getMode());
+ //newEvent.setWindowState(WindowState.MAXIMIZED);
+ newEvent.setParameters(wae.getParameters());
}
+ }
- //
- if(newEvent != null)
- {
- // If we have a new event redirect to it
- return newEvent;
- }
- else
- {
- // Otherwise bubble up
- return context.dispatch();
- }
+ //
+ if(newEvent != null)
+ {
+ // If we have a new event redirect to it
+ return newEvent;
}
- }]]>
- </programlisting>
+ else
+ {
+ // Otherwise bubble up
+ return context.dispatch();
+ }
+ }
+}]]></programlisting>
</para>
<para>
It is important to note here some of the important items in this listener class.
@@ -163,8 +161,8 @@
<para>
Modify Portlet B windowmode and/or windowstate (ie, Maximize and place in Edit Mode):
<programlisting>
- newEvent.setMode(wae.getMode()); // Mode.EDIT;
- newEvent.setWindowState(wae.getWindowState()); // WindowState.MAXIMIZED</programlisting>
+newEvent.setMode(wae.getMode()); // Mode.EDIT;
+newEvent.setWindowState(wae.getWindowState()); // WindowState.MAXIMIZED</programlisting>
</para>
</sect2>
</sect1>
@@ -172,18 +170,16 @@
<title>Communicating with another Portlet</title>
<para>
Creating a link from Portlet A to Portlet B occurs in the same way you would normally create a PortletURL:
- <programlisting>
- <![CDATA[
- html.append("<form action=\"" + resp.createActionURL() + "\" method=\"post\">");
- html.append("<input type=\"text\" name=\"sometext\"><br/>");
- html.append("<select name=\"color\">");
- html.append("<option>blue</option>");
- html.append("<option>red</option>");
- html.append("<option>black</option>");
- html.append("</select>");
- html.append("<input type=\"submit\"/>");
- html.append("</form>");]]>
- </programlisting>
+ <programlisting><![CDATA[
+html.append("<form action=\"" + resp.createActionURL() + "\" method=\"post\">");
+html.append("<input type=\"text\" name=\"sometext\"><br/>");
+html.append("<select name=\"color\">");
+html.append("<option>blue</option>");
+html.append("<option>red</option>");
+html.append("<option>black</option>");
+html.append("</select>");
+html.append("<input type=\"submit\"/>");
+html.append("</form>");]]></programlisting>
As you can see from the code above, we are creating a simple HTML form with an ActionURL from within Portlet A.
It will target itself, but be intercepted by the listener, created in Portlet B. This form passes some text and
a color value from input fields.
@@ -191,19 +187,17 @@
<para>
Now, in Portlet B, our listener innerclass will trigger the processAction() in Portlet B, reading in the
parameters from the Portlet A form:
- <programlisting>
- <![CDATA[
- public void processAction(JBossActionRequest request, JBossActionResponse response) throws PortletException, PortletSecurityException, IOException
+ <programlisting><![CDATA[
+public void processAction(JBossActionRequest request, JBossActionResponse response) throws PortletException, PortletSecurityException, IOException
+{
+ String color = request.getParameter("color");
+ String text = request.getParameter("sometext");
+ if(color != null && text != null)
{
- String color = request.getParameter("color");
- String text = request.getParameter("sometext");
- if(color != null && text != null)
- {
- response.setRenderParameter("color", color);
- response.setRenderParameter("sometext", text);
- }
- }]]>
- </programlisting>
+ response.setRenderParameter("color", color);
+ response.setRenderParameter("sometext", text);
+ }
+}]]></programlisting>
Setting the render parameters, it will now pass them on to the Portlet B, doView();
</para>
@@ -219,7 +213,7 @@
, you can see the basics of creating a link to a Portal Page. I have added comments in-line to explain the code
sample below:
<programlisting>
- <![CDATA[
+<![CDATA[
// Get the ParentNode. Since we are inside a Window, the Parent is the Page
PortalNode thisNode = req.getPortalNode().getParent();
@@ -232,8 +226,7 @@
// Output the Node's name and URL for users
html.append("Page: " + linkToNode.getName() + " -> ");
html.append("<a href=\"" + pageURL.toString() + "\">" + linkToNode.getName() + "</a>");
- ]]>
- </programlisting>
+ ]]></programlisting>
</para>
</sect1>
</chapter>
19 years, 2 months
JBoss Portal SVN: r6232 - docs/trunk/referenceGuide/en/modules.
by portal-commits@lists.jboss.org
Author: julien(a)jboss.com
Date: 2007-02-12 17:28:08 -0500 (Mon, 12 Feb 2007)
New Revision: 6232
Modified:
docs/trunk/referenceGuide/en/modules/xmldescriptors.xml
Log:
update descriptor section to update with new DTDs
Modified: docs/trunk/referenceGuide/en/modules/xmldescriptors.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/xmldescriptors.xml 2007-02-12 22:15:50 UTC (rev 6231)
+++ docs/trunk/referenceGuide/en/modules/xmldescriptors.xml 2007-02-12 22:28:08 UTC (rev 6232)
@@ -29,10 +29,13 @@
.
<programlisting><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE deployments PUBLIC
+ "-//JBoss Portal//DTD Portal Object 2.6//EN"
+ "http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
<deployments>
<deployment>
+ <parent-ref>default.default</parent-ref>
<if-exists>overwrite</if-exists>
- <parent-ref>default.default</parent-ref>
<window>
<window-name>HelloWorldJSPPortletWindow</window-name>
<instance-ref>HelloWorldJSPPortletInstance</instance-ref>
@@ -149,6 +152,9 @@
from McDonalds announcements.
<programlisting><![CDATA[
<?xml version="1.0" standalone="yes"?>
+<!DOCTYPE deployments PUBLIC
+ "-//JBoss Portal//DTD Portlet Instances 2.6//EN"
+ "http://www.jboss.org/portal/dtd/portlet-instances_2_6.dtd">
<deployments>
<deployment>
<instance>
@@ -166,8 +172,8 @@
</preferences>
<security-constraint>
<policy-permission>
+ <action-name>view</action-name>
<unchecked/>
- <action-name>view</action-name>
</policy-permission>
</security-constraint>
</instance>
@@ -188,8 +194,8 @@
</preferences>
<security-constraint>
<policy-permission>
+ <action-name>view</action-name>
<unchecked/>
- <action-name>view</action-name>
</policy-permission>
</security-constraint>
</instance>
@@ -260,8 +266,8 @@
<para>
<programlisting><![CDATA[<security-constraint>
<policy-permission>
+ <action-name>viewrecursive</action-name>
<unchecked/>
- <action-name>viewrecursive</action-name>
</policy-permission>
</security-constraint>]]></programlisting>
The security contraint portion is worth taking a look at, in an isolated fashion. It allows you to
@@ -323,11 +329,15 @@
<title>Injecting Header Content</title>
<para>
<programlisting><![CDATA[
+<?xml version="1.0" standalone="yes"?>
+<!DOCTYPE portlet-app PUBLIC
+ "-//JBoss Portal//DTD JBoss Portlet 2.6//EN"
+ "http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd">
<portlet-app>
<portlet>
<portlet-name>ManagementPortlet</portlet-name>
<header-content>
- <link rel="stylesheet" type="text/css" href="/images/management/management.css" title="" media="screen"/>
+ <link rel="stylesheet" type="text/css" href="/images/management/management.css" media="screen"/>
</header-content>
</portlet>
</portlet-app>]]></programlisting>
@@ -339,6 +349,10 @@
<title>Injecting Services in the portlet context</title>
<para>
<programlisting><![CDATA[
+<?xml version="1.0" standalone="yes"?>
+<!DOCTYPE portlet-app PUBLIC
+ "-//JBoss Portal//DTD JBoss Portlet 2.6//EN"
+ "http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd">
<portlet-app>
<service>
<service-name>UserModule</service-name>
@@ -436,8 +450,7 @@
</listitem>
<listitem>
<para>
- <programlisting>
- <![CDATA[<init-param><name>...</name><value>...</value></init-param>]]></programlisting>
+ <programlisting><![CDATA[<init-param><name>...</name><value>...</value></init-param>]]></programlisting>
Using the
<emphasis>init-param</emphasis>
tag, you can specify initialization parameters to create initial state inside your portlet class.
@@ -557,8 +570,7 @@
<user-name>portal</user-name>
<password>portalpassword</password>
</local-tx-datasource>
-</datasources>
- ]]></programlisting>
+</datasources>]]></programlisting>
Please verify that the username, password, url, and driver-class are correct for
your flavor of DB.
</para>
@@ -625,25 +637,28 @@
<emphasis>helloworldportalpage.war/WEB-INF/</emphasis>
, and it looks like this:
<programlisting><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE deployments PUBLIC
+ "-//JBoss Portal//DTD Portal Object 2.6//EN"
+ "http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
<deployments>
<deployment>
+ <parent-ref>default</parent-ref>
<if-exists>overwrite</if-exists>
- <parent-ref>default</parent-ref>
<properties/>
<page>
<page-name>MyPage</page-name>
+ <security-constraint>
+ <policy-permission>
+ <action-name>viewrecursive</action-name>
+ <unchecked/>
+ </policy-permission>
+ </security-constraint>
<window>
<window-name>HelloWorldPortletPageWindow</window-name>
<instance-ref>HelloWorldPortletPageInstance</instance-ref>
<region>center</region>
<height>0</height>
</window>
- <security-constraint>
- <policy-permission>
- <unchecked/>
- <action-name>viewrecursive</action-name>
- </policy-permission>
- </security-constraint>
</page>
</deployment>
</deployments>]]>
@@ -732,8 +747,8 @@
<para>
<programlisting><![CDATA[<security-constraint>
<policy-permission>
+ <action-name>viewrecursive</action-name>
<unchecked/>
- <action-name>viewrecursive</action-name>
</policy-permission>
</security-constraint>]]></programlisting>
The security contraint portion is worth taking a look at, in an isolated fashion. It allows you to
@@ -794,12 +809,25 @@
, and it looks like this:
<programlisting><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE deployments PUBLIC
+ "-//JBoss Portal//DTD Portal Object 2.6//EN"
+ "http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
<deployments>
<deployment>
<parent-ref/>
<if-exists>overwrite</if-exists>
<portal>
<portal-name>HelloPortal</portal-name>
+ <supported-modes>
+ <mode>view</mode>
+ <mode>edit</mode>
+ <mode>help</mode>
+ </supported-modes>
+ <supported-window-states>
+ <window-state>normal</window-state>
+ <window-state>minimized</window-state>
+ <window-state>maximized</window-state>
+ </supported-window-states>
<properties>
<!-- Set the layout for the default portal -->
<!-- see also portal-layouts.xml -->
@@ -826,57 +854,46 @@
<value>maximizedRegion</value>
</property>
</properties>
- <supported-modes>
- <mode>view</mode>
- <mode>edit</mode>
- <mode>help</mode>
- </supported-modes>
- <supported-window-states>
- <window-state>normal</window-state>
- <window-state>minimized</window-state>
- <window-state>maximized</window-state>
- </supported-window-states>
+ <security-constraint>
+ <policy-permission>
+ <action-name>personalizerecursive</action-name>
+ <unchecked/>
+ </policy-permission>
+ </security-constraint>
<page>
<page-name>default</page-name>
- <properties/>
+ <security-constraint>
+ <policy-permission>
+ <action-name>viewrecursive</action-name>
+ <unchecked/>
+ </policy-permission>
+ </security-constraint>
<window>
<window-name>MyPortletWindow</window-name>
<instance-ref>MyPortletInstance</instance-ref>
<region>center</region>
<height>0</height>
</window>
- <security-constraint>
- <policy-permission>
- <unchecked/>
- <action-name>viewrecursive</action-name>
- </policy-permission>
- </security-constraint>
</page>
- <security-constraint>
- <policy-permission>
- <unchecked/>
- <action-name>personalizerecursive</action-name>
- </policy-permission>
- </security-constraint>
</portal>
</deployment>
<deployment>
+ <parent-ref>HelloPortal</parent-ref>
<if-exists>overwrite</if-exists>
- <parent-ref>HelloPortal</parent-ref>
<page>
<page-name>foobar</page-name>
+ <security-constraint>
+ <policy-permission>
+ <action-name>viewrecursive</action-name>
+ <unchecked/>
+ </policy-permission>
+ </security-constraint>
<window>
<window-name>MyPortletWindow</window-name>
<instance-ref>MyPortletInstance</instance-ref>
<region>center</region>
<height>0</height>
</window>
- <security-constraint>
- <policy-permission>
- <unchecked/>
- <action-name>viewrecursive</action-name>
- </policy-permission>
- </security-constraint>
</page>
</deployment>
</deployments>]]>
19 years, 2 months
JBoss Portal SVN: r6231 - docs/trunk/referenceGuide/en/modules.
by portal-commits@lists.jboss.org
Author: julien(a)jboss.com
Date: 2007-02-12 17:15:50 -0500 (Mon, 12 Feb 2007)
New Revision: 6231
Modified:
docs/trunk/referenceGuide/en/modules/tutorials.xml
Log:
cosmetic : should not look like formatted by a monkey
Modified: docs/trunk/referenceGuide/en/modules/tutorials.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/tutorials.xml 2007-02-12 22:09:21 UTC (rev 6230)
+++ docs/trunk/referenceGuide/en/modules/tutorials.xml 2007-02-12 22:15:50 UTC (rev 6231)
@@ -112,9 +112,7 @@
you should have one java source file:
<emphasis>HelloWorldPortlet\src\main\org\jboss\portlet\hello\HelloWorldPortlet.java</emphasis>
, and it should contain the following:
- <programlisting>
- <![CDATA[
-package org.jboss.portlet.hello;
+ <programlisting><![CDATA[package org.jboss.portlet.hello;
import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;
@@ -364,15 +362,13 @@
</listitem>
<listitem>
<para>
- <programlisting>
- <![CDATA[<window-name>HelloWorldPortletWindow</window-name>]]></programlisting>
+ <programlisting><![CDATA[<window-name>HelloWorldPortletWindow</window-name>]]></programlisting>
Can be named anything.
</para>
</listitem>
<listitem>
<para>
- <programlisting>
- <![CDATA[<instance-ref>HelloWorldPortletInstance</instance-ref>]]></programlisting>
+ <programlisting><![CDATA[<instance-ref>HelloWorldPortletInstance</instance-ref>]]></programlisting>
The value of
<emphasis>instance-ref</emphasis>
must match the value of
@@ -464,8 +460,7 @@
:
<programlisting><![CDATA[
18:25:56,366 INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)] Started in 1m:3s:688ms
-18:26:21,147 INFO [TomcatDeployer] deploy, ctxPath=/helloworldportlet, warUrl=.../tmp/deploy/tmp35219helloworldportlet-exp.war/
- ]]></programlisting>
+18:26:21,147 INFO [TomcatDeployer] deploy, ctxPath=/helloworldportlet, warUrl=.../tmp/deploy/tmp35219helloworldportlet-exp.war/]]></programlisting>
Pointing your browser to
<ulink url="http://localhost:8080/portal/">http://localhost:8080/portal/</ulink>
, should yield a view of our HelloWorldPortlet:
@@ -520,9 +515,7 @@
you should have one java source file:
<emphasis>HelloWorldPortlet\src\main\org\jboss\portlet\hello\HelloWorldJSPPortlet.java</emphasis>
, and it should contain the following:
- <programlisting>
- <![CDATA[
-package org.jboss.portlet.hello;
+ <programlisting><![CDATA[package org.jboss.portlet.hello;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
@@ -583,13 +576,11 @@
<itemizedlist>
<listitem>
<para>
- <programlisting>
- <![CDATA[
- protected void doHelp
+ <programlisting><![CDATA[ protected void doHelp(RenderRequest rRequest, RenderResponse rResponse) { ... }
- AND
+// And
- protected void doEdit]]>
+protected void doEdit(RenderRequest rRequest, RenderResponse rResponse) { ... } ]]>
</programlisting>
Support for these Modes must be declared in the portlet.xml. They will be triggered when a user
clicks on the respective icons in the portlet window titlebar, or through generated links within
@@ -606,8 +597,7 @@
// do something
aResponse.setRenderParameter("yourname", sYourname);
-}
- ]]></programlisting>
+}]]></programlisting>
This method will be triggered upon clicking on an ActionURL from our view.jsp. It will retrieve
<emphasis>yourname</emphasis>
from the HTML form, and pass it along as a renderParameter to the doView().
@@ -742,8 +732,7 @@
<itemizedlist>
<listitem>
<para>
- <programlisting>
- <![CDATA[<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>]]></programlisting>
+ <programlisting><![CDATA[<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>]]></programlisting>
Define the portlet taglib. You do not need to bundle the portlet taglib, JBoss Portal will
handle that for you.
</para>
@@ -760,8 +749,7 @@
</listitem>
<listitem>
<para>
- <programlisting>
- <![CDATA[<form action="<portlet:actionURL><portlet:param name="page" value="mainview"/></portlet:actionURL>" method="POST">]]></programlisting>
+ <programlisting><![CDATA[<form action="<portlet:actionURL><portlet:param name="page" value="mainview"/></portlet:actionURL>" method="POST">]]></programlisting>
We create an HTML form, but generate the URL it will post to, using the portlet tag library. In
this case, notice how we are creating an
<emphasis>actionURL</emphasis>
@@ -845,8 +833,7 @@
:
<programlisting><![CDATA[
15:54:34,234 INFO [Server] JBoss (MX MicroKernel) [4.0.4.CR2 (build: CVSTag=JBoss_4_0_4_CR2 date=200603311500)] Started in 1m:9s:766ms
-15:55:04,062 INFO [TomcatDeployer] deploy, ctxPath=/helloworldjspportlet, warUrl=.../tmp/deploy/tmp57782helloworldjspportlet-exp.war/
- ]]></programlisting>
+15:55:04,062 INFO [TomcatDeployer] deploy, ctxPath=/helloworldjspportlet, warUrl=.../tmp/deploy/tmp57782helloworldjspportlet-exp.war/]]></programlisting>
Pointing your browser to
<ulink url="http://localhost:8080/portal/">http://localhost:8080/portal/</ulink>
, should yield a view of our HelloWorldPortlet:
19 years, 2 months
JBoss Portal SVN: r6230 - docs/trunk/referenceGuide/en/modules.
by portal-commits@lists.jboss.org
Author: julien(a)jboss.com
Date: 2007-02-12 17:09:21 -0500 (Mon, 12 Feb 2007)
New Revision: 6230
Modified:
docs/trunk/referenceGuide/en/modules/tutorials.xml
Log:
cosmetic
Modified: docs/trunk/referenceGuide/en/modules/tutorials.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/tutorials.xml 2007-02-12 22:06:53 UTC (rev 6229)
+++ docs/trunk/referenceGuide/en/modules/tutorials.xml 2007-02-12 22:09:21 UTC (rev 6230)
@@ -113,7 +113,8 @@
<emphasis>HelloWorldPortlet\src\main\org\jboss\portlet\hello\HelloWorldPortlet.java</emphasis>
, and it should contain the following:
<programlisting>
- <![CDATA[package org.jboss.portlet.hello;
+ <![CDATA[
+package org.jboss.portlet.hello;
import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;
19 years, 2 months
JBoss Portal SVN: r6229 - docs/trunk/referenceGuide/en/modules.
by portal-commits@lists.jboss.org
Author: julien(a)jboss.com
Date: 2007-02-12 17:06:53 -0500 (Mon, 12 Feb 2007)
New Revision: 6229
Modified:
docs/trunk/referenceGuide/en/modules/featurelist.xml
Log:
updating feature list
Modified: docs/trunk/referenceGuide/en/modules/featurelist.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/featurelist.xml 2007-02-12 22:02:05 UTC (rev 6228)
+++ docs/trunk/referenceGuide/en/modules/featurelist.xml 2007-02-12 22:06:53 UTC (rev 6229)
@@ -17,23 +17,21 @@
</listitem>
<listitem>
<emphasis role="bold">DB Agnostic:</emphasis>
- Will work with any RDBMS supported by
- Hibernate
+ Will work with any RDBMS supported by Hibernate
</listitem>
<listitem>
<emphasis role="bold">SSO/LDAP:</emphasis>
Leverages Tomcat and JBoss single sign on (SSO)
solutions.
+ Identity mapping framework adaptable to the enterprise LDAP deployments.
</listitem>
<listitem>
<emphasis role="bold">JAAS Authentication:</emphasis>
- Custom authentication via JAAS login
- modules.
+ Custom authentication via JAAS login modules.
</listitem>
<listitem>
<emphasis role="bold">Cacheing:</emphasis>
- Utilizes render-view caching for improved
- performance.
+ Utilizes render-view caching for improved performance.
</listitem>
<listitem>
<emphasis role="bold">Clusterable:</emphasis>
@@ -283,43 +281,4 @@
to the user based on his/her browser settings.
</listitem>
</itemizedlist>
- <para>
- <emphasis role="bold">Message Boards</emphasis>
- </para>
- <itemizedlist>
- <listitem>
- <emphasis role="bold">Instant reply:</emphasis>
- Instant reply feature, makes for one-click
- replies to posts.
- </listitem>
- <listitem>
- <emphasis role="bold">Post quoting:</emphasis>
- Quote an existing topic and poster within a
- reply.
- </listitem>
- <listitem>
- <emphasis role="bold">Flood control:</emphasis>
- Prevents abuse of multiple posts withing a
- set configurable time-frame.
- </listitem>
- <listitem>
- <emphasis role="bold">Category creation:</emphasis>
- Create a category that contains forums
- within it.
- </listitem>
- <listitem>
- <emphasis role="bold">Forum creation:</emphasis>
- Create a forum and assign it to a specific
- category.
- </listitem>
- <listitem>
- <emphasis role="bold">Forum modification:</emphasis>
- Edit, move, delete forums.
- </listitem>
- <listitem>
- <emphasis role="bold">Forum and category reordering:</emphasis>
- Reorder categories and
- forums in the order you would like them to appear on the page.
- </listitem>
- </itemizedlist>
</preface>
19 years, 2 months
JBoss Portal SVN: r6228 - in docs/trunk/referenceGuide/en: modules and 1 other directory.
by portal-commits@lists.jboss.org
Author: julien(a)jboss.com
Date: 2007-02-12 17:02:05 -0500 (Mon, 12 Feb 2007)
New Revision: 6228
Added:
docs/trunk/referenceGuide/en/images/tutorials/first_portlet/desc_relationship.odp
Modified:
docs/trunk/referenceGuide/en/images/tutorials/first_portlet/desc_relationship.gif
docs/trunk/referenceGuide/en/modules/tutorials.xml
Log:
updating tutorial first portlet descriptors with new DTD
Modified: docs/trunk/referenceGuide/en/images/tutorials/first_portlet/desc_relationship.gif
===================================================================
(Binary files differ)
Added: docs/trunk/referenceGuide/en/images/tutorials/first_portlet/desc_relationship.odp
===================================================================
(Binary files differ)
Property changes on: docs/trunk/referenceGuide/en/images/tutorials/first_portlet/desc_relationship.odp
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: docs/trunk/referenceGuide/en/modules/tutorials.xml
===================================================================
--- docs/trunk/referenceGuide/en/modules/tutorials.xml 2007-02-12 20:34:50 UTC (rev 6227)
+++ docs/trunk/referenceGuide/en/modules/tutorials.xml 2007-02-12 22:02:05 UTC (rev 6228)
@@ -261,6 +261,10 @@
<listitem>
<para>portlet-instances.xml
<programlisting><![CDATA[
+<?xml version="1.0" standalone="yes"?>
+<!DOCTYPE deployments PUBLIC
+ "-//JBoss Portal//DTD Portlet Instances 2.6//EN"
+ "http://www.jboss.org/portal/dtd/portlet-instances_2_6.dtd">
<deployments>
<deployment>
<instance>
@@ -287,10 +291,14 @@
<listitem>
<para>helloworld-object.xml
<programlisting><![CDATA[
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE deployments PUBLIC
+ "-//JBoss Portal//DTD Portal Object 2.6//EN"
+ "http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
<deployments>
<deployment>
+ <parent-ref>default.default</parent-ref>
<if-exists>overwrite</if-exists>
- <parent-ref>default.default</parent-ref>
<window>
<window-name>HelloWorldPortletWindow</window-name>
<instance-ref>HelloWorldPortletInstance</instance-ref>
@@ -299,12 +307,45 @@
</window>
</deployment>
</deployments>]]></programlisting>
+
The *-object.xml is responsible for creating/configuring windows, pages, and even portal
- instances. In our example, we are creating a portlet window, assigning it to a page, and
+ objects. In our example, we are creating a portlet window, assigning it to a page, and
specifying where it should appear on that page. This is a specific descriptor to JBoss Portal.
+ Since 2.6 we can replace also the window section by the following which will do exactly the same.
+
+ <programlisting><![CDATA[
+<window>
+ <window-name>HelloWorldPortletWindow</window-name>
+ <content>
+ <content-type>portlet</content-type>
+ <content-uri>HelloWorldPortletInstance</content-uri>
+ </content>
+ <region>center</region>
+ <height>1</height>
+</window>
+]]></programlisting>
+ The kind of declaration allows to declare for a window different kind of content types. You can see
+ that as a generic way to declare content for a window. In our case the type of content is portlet
+ and the content uri declares the HelloWorldPortletInstance. The content uri value is the identifier of
+ the content. It is possible to declare windows with content type cms and use directly the path
+ to the file in the CMS to make the window show cms content. That behavior is pluggable and it
+ is virtually possible to plug in any kind of content.
<itemizedlist>
<listitem>
<para>
+ <programlisting><![CDATA[<parent-ref>default.default</parent-ref>]]></programlisting>
+ Tells the portal where this portlet should appear. In this case,
+ <emphasis>default.default</emphasis>
+ specifies that this portlet should appear in the portal instance named
+ <emphasis>default</emphasis>
+ and the
+ page named
+ <emphasis>default</emphasis>
+ .
+ </para>
+ </listitem>
+ <listitem>
+ <para>
<programlisting><![CDATA[<if-exists>overwrite</if-exists>]]></programlisting>
Instructs the portal to overwrite or keep this object if it already exists.
Possible values are
@@ -322,19 +363,6 @@
</listitem>
<listitem>
<para>
- <programlisting><![CDATA[<parent-ref>default.default</parent-ref>]]></programlisting>
- Tells the portal where this portlet should appear. In this case,
- <emphasis>default.default</emphasis>
- specifies that this portlet should appear in the portal instance named
- <emphasis>default</emphasis>
- and the
- page named
- <emphasis>default</emphasis>
- .
- </para>
- </listitem>
- <listitem>
- <para>
<programlisting>
<![CDATA[<window-name>HelloWorldPortletWindow</window-name>]]></programlisting>
Can be named anything.
19 years, 2 months
JBoss Portal SVN: r6227 - trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2007-02-12 15:34:50 -0500 (Mon, 12 Feb 2007)
New Revision: 6227
Modified:
trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/ProducerInfo.java
Log:
- Optimization: avoid having to retrieve the service description when there is no need to.
Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/ProducerInfo.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/ProducerInfo.java 2007-02-12 20:33:30 UTC (rev 6226)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/ProducerInfo.java 2007-02-12 20:34:50 UTC (rev 6227)
@@ -199,7 +199,7 @@
log.debug("Registration not required");
setRegistrationInfo(RegistrationInfo.REGISTRATION_NOT_NEEDED);
setServiceDescriptionRequest(getUnregisteredServiceDescriptionRequest());
- extractOfferedPortlets(getServiceDescription());
+ extractOfferedPortlets(serviceDescription);
isInitialized = true;
}
@@ -314,14 +314,14 @@
public Portlet getPortlet(String portletId) throws PortletInvokerException
{
- refresh(false);
+ boolean justRefreshed = refresh(false);
- // if cache is still valid, use information from cached service description
- if (useCache() && !isCacheExpired())
+ // if cache is still valid or we just refreshed, use information from cached service description
+ if (justRefreshed || (useCache() && !isCacheExpired()))
{
log.debug("getPortlet from cached service description");
- return (Portlet)getPortletMap().get(portletId);
+ return (Portlet)popsMap.get(portletId);
}
else // otherwise, retrieve just the information for the appropriate portlet
{
19 years, 2 months
JBoss Portal SVN: r6226 - in trunk/wsrp/src/main/org/jboss/portal/test/wsrp: v1/consumer and 1 other directories.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2007-02-12 15:33:30 -0500 (Mon, 12 Feb 2007)
New Revision: 6226
Modified:
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/framework/MarkupBehavior.java
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/framework/ServiceDescriptionBehavior.java
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/ServiceDescriptionTestCase.java
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/V1ConsumerBaseTest.java
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/BasicMarkupBehavior.java
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/EmptyMarkupBehavior.java
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/InitCookieMarkupBehavior.java
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/NullMarkupBehavior.java
trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/SessionMarkupBehavior.java
Log:
- MarkupBehaviors now register their portlet handle which updates the current service description.
- Updated tests.
Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/framework/MarkupBehavior.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/framework/MarkupBehavior.java 2007-02-12 18:35:57 UTC (rev 6225)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/framework/MarkupBehavior.java 2007-02-12 20:33:30 UTC (rev 6226)
@@ -67,8 +67,15 @@
*/
public abstract class MarkupBehavior extends TestProducerBehavior implements WSRP_v1_Markup_PortType
{
- protected List handles = new ArrayList(3);
+ private List handles = new ArrayList(3);
+ private BehaviorRegistry registry;
+
+ protected MarkupBehavior(BehaviorRegistry registry)
+ {
+ this.registry = registry;
+ }
+
public MarkupResponse getMarkup(GetMarkup getMarkup) throws UnsupportedWindowStateFault, InvalidCookieFault,
InvalidSessionFault, AccessDeniedFault, InconsistentParametersFault, InvalidHandleFault, UnsupportedLocaleFault,
UnsupportedModeFault, OperationFailedFault, MissingParametersFault, InvalidUserCategoryFault,
@@ -164,4 +171,10 @@
{
return "";
}
+
+ protected void registerHandle(String handle)
+ {
+ handles.add(handle);
+ registry.getServiceDescriptionBehavior().addPortletDescription(createPortletDescription(handle, getSuffixFor(handle)));
+ }
}
Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/framework/ServiceDescriptionBehavior.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/framework/ServiceDescriptionBehavior.java 2007-02-12 18:35:57 UTC (rev 6225)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/framework/ServiceDescriptionBehavior.java 2007-02-12 20:33:30 UTC (rev 6226)
@@ -23,15 +23,18 @@
package org.jboss.portal.test.wsrp.framework;
+import org.jboss.portal.common.util.Tools;
import org.jboss.portal.wsrp.WSRPTypeFactory;
import org.jboss.portal.wsrp.core.CookieProtocol;
import org.jboss.portal.wsrp.core.GetServiceDescription;
import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
import org.jboss.portal.wsrp.core.OperationFailedFault;
+import org.jboss.portal.wsrp.core.PortletDescription;
import org.jboss.portal.wsrp.core.ServiceDescription;
import org.jboss.portal.wsrp.core.WSRP_v1_ServiceDescription_PortType;
import java.rmi.RemoteException;
+import java.util.List;
/**
* @author <a href="mailto:chris.laprun@jboss.com?subject=org.jboss.portal.test.wsrp.framework.ServiceDescriptionBehavior">Chris
@@ -45,7 +48,7 @@
private static final ServiceDescription DEFAULT_SERVICE_DESCRIPTION = WSRPTypeFactory.createServiceDescription(false);
public static final ServiceDescriptionBehavior DEFAULT = new ServiceDescriptionBehavior();
- protected ServiceDescriptionBehavior()
+ public ServiceDescriptionBehavior()
{
//Prepare sample ServiceDescription
serviceDescription = WSRPTypeFactory.createServiceDescription(false);
@@ -54,7 +57,7 @@
public ServiceDescription getServiceDescription(GetServiceDescription getServiceDescription) throws
OperationFailedFault, InvalidRegistrationFault, RemoteException
{
- return DEFAULT_SERVICE_DESCRIPTION;
+ return serviceDescription;
}
public void setRequiresRegistration(boolean requiresRegistration)
@@ -71,4 +74,19 @@
{
return DEFAULT_SERVICE_DESCRIPTION;
}
+
+ void addPortletDescription(PortletDescription portletDescription)
+ {
+ PortletDescription[] initial = serviceDescription.getOfferedPortlets();
+ if (initial == null || initial.length == 0)
+ {
+ serviceDescription.setOfferedPortlets(new PortletDescription[]{portletDescription});
+ }
+ else
+ {
+ List portlets = Tools.toList(initial);
+ portlets.add(portletDescription);
+ serviceDescription.setOfferedPortlets((PortletDescription[])portlets.toArray(new PortletDescription[0]));
+ }
+ }
}
Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/ServiceDescriptionTestCase.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/ServiceDescriptionTestCase.java 2007-02-12 18:35:57 UTC (rev 6225)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/ServiceDescriptionTestCase.java 2007-02-12 20:33:30 UTC (rev 6226)
@@ -26,6 +26,7 @@
import org.jboss.portal.portlet.Portlet;
import org.jboss.portal.portlet.PortletContext;
import org.jboss.portal.test.wsrp.v1.consumer.behaviors.BasicMarkupBehavior;
+import org.jboss.portal.test.wsrp.v1.consumer.behaviors.BasicServiceDescriptionBehavior;
import org.jboss.portal.test.wsrp.v1.consumer.behaviors.SessionMarkupBehavior;
import java.util.Set;
@@ -44,6 +45,14 @@
super();
}
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ // override default service description behavior to make sure we have the correct state
+ producer.getBehaviorRegistry().setServiceDescriptionBehavior(new BasicServiceDescriptionBehavior());
+ }
+
public void testGetportlets() throws Exception
{
//invoke consumer
Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/V1ConsumerBaseTest.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/V1ConsumerBaseTest.java 2007-02-12 18:35:57 UTC (rev 6225)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/V1ConsumerBaseTest.java 2007-02-12 20:33:30 UTC (rev 6226)
@@ -27,10 +27,10 @@
import org.jboss.portal.portlet.info.MetaInfo;
import org.jboss.portal.test.wsrp.WSRPConsumerBaseTest;
import org.jboss.portal.test.wsrp.framework.BehaviorRegistry;
+import org.jboss.portal.test.wsrp.framework.ServiceDescriptionBehavior;
import org.jboss.portal.test.wsrp.framework.support.ServiceObjectFactory;
import org.jboss.portal.test.wsrp.v1.consumer.behaviors.BasicMarkupBehavior;
import org.jboss.portal.test.wsrp.v1.consumer.behaviors.BasicPortletManagementBehavior;
-import org.jboss.portal.test.wsrp.v1.consumer.behaviors.BasicServiceDescriptionBehavior;
import org.jboss.portal.test.wsrp.v1.consumer.behaviors.EmptyMarkupBehavior;
import org.jboss.portal.test.wsrp.v1.consumer.behaviors.InitCookieMarkupBehavior;
import org.jboss.portal.test.wsrp.v1.consumer.behaviors.NullMarkupBehavior;
@@ -65,12 +65,12 @@
// reset the behaviors
BehaviorRegistry registry = producer.getBehaviorRegistry();
registry.setPortletManagementBehavior(new BasicPortletManagementBehavior(registry));
- registry.setServiceDescriptionBehavior(new BasicServiceDescriptionBehavior());
- registry.registerMarkupBehavior(new BasicMarkupBehavior());
- registry.registerMarkupBehavior(new EmptyMarkupBehavior());
- registry.registerMarkupBehavior(new InitCookieMarkupBehavior());
- registry.registerMarkupBehavior(new NullMarkupBehavior());
- registry.registerMarkupBehavior(new SessionMarkupBehavior());
+ registry.setServiceDescriptionBehavior(new ServiceDescriptionBehavior());
+ registry.registerMarkupBehavior(new BasicMarkupBehavior(registry));
+ registry.registerMarkupBehavior(new EmptyMarkupBehavior(registry));
+ registry.registerMarkupBehavior(new InitCookieMarkupBehavior(registry));
+ registry.registerMarkupBehavior(new NullMarkupBehavior(registry));
+ registry.registerMarkupBehavior(new SessionMarkupBehavior(registry));
// make sure we use clean producer info for each test
consumer.refreshProducerInfo();
}
Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/BasicMarkupBehavior.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/BasicMarkupBehavior.java 2007-02-12 18:35:57 UTC (rev 6225)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/BasicMarkupBehavior.java 2007-02-12 20:33:30 UTC (rev 6226)
@@ -25,6 +25,7 @@
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
+import org.jboss.portal.test.wsrp.framework.BehaviorRegistry;
import org.jboss.portal.test.wsrp.framework.MarkupBehavior;
import org.jboss.portal.wsrp.WSRPConstants;
import org.jboss.portal.wsrp.WSRPTypeFactory;
@@ -46,9 +47,10 @@
public static final String NS = "ns1";
- public BasicMarkupBehavior()
+ public BasicMarkupBehavior(BehaviorRegistry registry)
{
- handles.add(PORTLET_HANDLE);
+ super(registry);
+ registerHandle(PORTLET_HANDLE);
}
public String getMarkupString(Mode mode, WindowState windowState, String navigationalState, GetMarkup getMarkup)
Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/EmptyMarkupBehavior.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/EmptyMarkupBehavior.java 2007-02-12 18:35:57 UTC (rev 6225)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/EmptyMarkupBehavior.java 2007-02-12 20:33:30 UTC (rev 6226)
@@ -25,6 +25,7 @@
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
+import org.jboss.portal.test.wsrp.framework.BehaviorRegistry;
import org.jboss.portal.test.wsrp.framework.MarkupBehavior;
import org.jboss.portal.wsrp.core.GetMarkup;
@@ -39,9 +40,10 @@
public static final String PORTLET_HANDLE = "EmptyMarkup";
- public EmptyMarkupBehavior()
+ public EmptyMarkupBehavior(BehaviorRegistry registry)
{
- handles.add(PORTLET_HANDLE);
+ super(registry);
+ registerHandle(PORTLET_HANDLE);
}
public String getMarkupString(Mode mode, WindowState windowState, String navigationalState, GetMarkup getMarkup)
Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/InitCookieMarkupBehavior.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/InitCookieMarkupBehavior.java 2007-02-12 18:35:57 UTC (rev 6225)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/InitCookieMarkupBehavior.java 2007-02-12 20:33:30 UTC (rev 6226)
@@ -25,6 +25,7 @@
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
+import org.jboss.portal.test.wsrp.framework.BehaviorRegistry;
import org.jboss.portal.test.wsrp.framework.MarkupBehavior;
import org.jboss.portal.wsrp.core.GetMarkup;
import org.jboss.portal.wsrp.core.InvalidCookieFault;
@@ -40,9 +41,10 @@
public static final String PORTLET_HANDLE = "initcookiehandle";
- public InitCookieMarkupBehavior()
+ public InitCookieMarkupBehavior(BehaviorRegistry registry)
{
- handles.add(PORTLET_HANDLE);
+ super(registry);
+ registerHandle(PORTLET_HANDLE);
}
protected String getMarkupString(Mode mode, WindowState windowState, String navigationalState, GetMarkup getMarkup) throws InvalidCookieFault, OperationFailedFault
Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/NullMarkupBehavior.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/NullMarkupBehavior.java 2007-02-12 18:35:57 UTC (rev 6225)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/NullMarkupBehavior.java 2007-02-12 20:33:30 UTC (rev 6226)
@@ -25,6 +25,7 @@
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
+import org.jboss.portal.test.wsrp.framework.BehaviorRegistry;
import org.jboss.portal.test.wsrp.framework.MarkupBehavior;
import org.jboss.portal.wsrp.core.GetMarkup;
@@ -39,9 +40,10 @@
public static final String PORTLET_HANDLE = "NullMarkup";
- public NullMarkupBehavior()
+ public NullMarkupBehavior(BehaviorRegistry registry)
{
- handles.add(PORTLET_HANDLE);
+ super(registry);
+ registerHandle(PORTLET_HANDLE);
}
public String getMarkupString(Mode mode, WindowState windowState, String navigationalState, GetMarkup getMarkup)
Modified: trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/SessionMarkupBehavior.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/SessionMarkupBehavior.java 2007-02-12 18:35:57 UTC (rev 6225)
+++ trunk/wsrp/src/main/org/jboss/portal/test/wsrp/v1/consumer/behaviors/SessionMarkupBehavior.java 2007-02-12 20:33:30 UTC (rev 6226)
@@ -25,6 +25,7 @@
import org.jboss.portal.Mode;
import org.jboss.portal.WindowState;
+import org.jboss.portal.test.wsrp.framework.BehaviorRegistry;
import org.jboss.portal.test.wsrp.framework.MarkupBehavior;
import org.jboss.portal.wsrp.WSRPTypeFactory;
import org.jboss.portal.wsrp.core.BlockingInteractionResponse;
@@ -50,9 +51,10 @@
private int count = 0;
private String sessionId;
- public SessionMarkupBehavior()
+ public SessionMarkupBehavior(BehaviorRegistry registry)
{
- handles.add(PORTLET_HANDLE);
+ super(registry);
+ registerHandle(PORTLET_HANDLE);
}
public String getMarkupString(Mode mode, WindowState windowState, String navigationalState, GetMarkup getMarkup)
19 years, 2 months
JBoss Portal SVN: r6225 - in trunk: core-admin/src/resources/portal-admin-war/WEB-INF and 1 other directory.
by portal-commits@lists.jboss.org
Author: roy.russo(a)jboss.com
Date: 2007-02-12 13:35:57 -0500 (Mon, 12 Feb 2007)
New Revision: 6225
Modified:
trunk/build/build.xml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/portlet.xml
Log:
portal-admin portlet stub
Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml 2007-02-12 18:16:53 UTC (rev 6224)
+++ trunk/build/build.xml 2007-02-12 18:35:57 UTC (rev 6225)
@@ -43,7 +43,7 @@
<!--+====================================================================+-->
<target name="init" unless="init.disable" depends="_buildmagic:init">
- </target>
+ </target>
<!--+====================================================================+-->
@@ -70,7 +70,7 @@
<!-- Module name(s) & version -->
<property name="module.version"
- value="${version.major}.${version.minor}.${version.revision}${version.tag}"/>
+ value="${version.major}.${version.minor}.${version.revision}${version.tag}"/>
<!-- ========= -->
<!-- Libraries -->
@@ -133,13 +133,14 @@
<module name="core-samples"/>
<module name="wsrp"/>
<module name="registration"/>
- <module name="workflow"/>
+ <module name="workflow"/>
+ <module name="core-admin"/>
<!-- Module groups -->
<group name="portal">
<include
- modules="common, test, api, faces, jems, server, security, identity, search, format, portlet, portlet-federation, theme, workflow, cms, bridge, samples, registration, wsrp, core, core-cms, core-management, core-samples"/>
+ modules="common, test, api, faces, jems, server, security, identity, search, format, portlet, portlet-federation, theme, workflow, cms, bridge, samples, registration, wsrp, core, core-cms, core-management, core-samples, core-admin"/>
</group>
<group name="cms">
@@ -202,8 +203,8 @@
<!--+====================================================================+-->
<target name="output"
- description="Generate all target output."
- depends="init">
+ description="Generate all target output."
+ depends="init">
<!-- Add module specific elements here. -->
</target>
@@ -214,7 +215,7 @@
<!--+====================================================================+-->
<target name="docs">
- <ant antfile="build-targets.xml" target="_default:docs"/>
+ <ant antfile="build-targets.xml" target="_default:docs"/>
<!-- Add module specific elements here. -->
</target>
@@ -223,12 +224,12 @@
<!--+====================================================================+-->
<target name="release"
- description="Builds the default release structure."
- depends="modules-most, output"/>
+ description="Builds the default release structure."
+ depends="modules-most, output"/>
<target name="release-full"
- description="Builds the full release structure."
- depends="modules-all, release"/>
+ description="Builds the full release structure."
+ depends="modules-all, release"/>
<!--+====================================================================+-->
<!--| Misc. |-->
@@ -237,26 +238,26 @@
<!--+====================================================================+-->
<target name="clean" depends="createthirdparty, modules-clean, _buildmagic:clean"
- description="Cleans up most generated files.">
+ description="Cleans up most generated files.">
<!-- Add module specific elements here. -->
</target>
<target name="clobber" depends="_buildmagic:clobber, clean, modules-clobber"
- description="Cleans up all generated files.">
+ description="Cleans up all generated files.">
<!-- Add module specific elements here. -->
</target>
<target name="main" depends="most"
- description="Executes the default target (most)."/>
+ description="Executes the default target (most)."/>
<target name="all" depends="createthirdparty, modules-all"
- description="Executes all modules and builds everything."/>
+ description="Executes all modules and builds everything."/>
<target name="most" depends="createthirdparty, modules-most"
- description="Executes all modules and builds most everything."/>
+ description="Executes all modules and builds most everything."/>
<target name="help" depends="_buildmagic:help:build"
- description="Show this help message."/>
+ description="Show this help message."/>
<!--
@@ -272,23 +273,23 @@
<!--</target>-->
<target name="deploy"
- description="Deploy."
- depends="main">
+ description="Deploy."
+ depends="main">
<require file="${jboss.home}/server/${portal.deploy.dir}"/>
<copy file="../core/output/lib/jboss-portal.sar" todir="${jboss.home}/server/${portal.deploy.dir}"
- overwrite="true"/>
+ overwrite="true"/>
</target>
<target name="undeploy"
- description="Undeploy."
- depends="init">
+ description="Undeploy."
+ depends="init">
<require file="${jboss.home}/server/${portal.deploy.dir}"/>
<delete file="${jboss.home}/server/${portal.deploy.dir}/jboss-portal.sar"/>
</target>
<target name="exploded-deploy"
- description="Deploy exploded sar."
- depends="main">
+ description="Deploy exploded sar."
+ depends="main">
<require file="${jboss.home}/server/${portal.deploy.dir}"/>
<delete dir="${jboss.home}/server/${portal.deploy.dir}/jboss-portal-exploded.sar"/>
<mkdir dir="${jboss.home}/server/${portal.deploy.dir}/jboss-portal-exploded.sar"/>
@@ -361,20 +362,20 @@
<!-- then generate a new libraries.ent file and include it in -->
<!-- the build -->
<target name="createthirdparty" unless="inhibit.downloads"
- depends="check.inhibit.downloads">
- <ant antfile="build-thirdparty.xml" target="generate-lib-file"/>
- </target>
+ depends="check.inhibit.downloads">
+ <ant antfile="build-thirdparty.xml" target="generate-lib-file"/>
+ </target>
<!-- check if thirdparty libraries are to be downloaded -->
<target name="check.inhibit.downloads">
- <condition property="inhibit.downloads">
- <or>
- <uptodate property="dependencies.current"
- srcfile="build-thirdparty.xml"
- targetfile="../thirdparty/libraries.ent"/>
- <istrue value="${nodownload}"/>
- </or>
- </condition>
- </target>
+ <condition property="inhibit.downloads">
+ <or>
+ <uptodate property="dependencies.current"
+ srcfile="build-thirdparty.xml"
+ targetfile="../thirdparty/libraries.ent"/>
+ <istrue value="${nodownload}"/>
+ </or>
+ </condition>
+ </target>
</project>
Modified: trunk/core-admin/src/resources/portal-admin-war/WEB-INF/portlet.xml
===================================================================
--- trunk/core-admin/src/resources/portal-admin-war/WEB-INF/portlet.xml 2007-02-12 18:16:53 UTC (rev 6224)
+++ trunk/core-admin/src/resources/portal-admin-war/WEB-INF/portlet.xml 2007-02-12 18:35:57 UTC (rev 6225)
@@ -31,7 +31,7 @@
<description>Administration portlet for portal pages administration</description>
<portlet-name>AdminPortlet</portlet-name>
<display-name>Portal Admin Portlet</display-name>
- <portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
+ <portlet-class>org.jboss.portal.core.admin.AdminPortlet</portlet-class>
<expiration-cache>-1</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
19 years, 2 months
JBoss Portal SVN: r6224 - in trunk: core/src/resources/portal-core-sar/conf/hibernate/portal and 3 other directories.
by portal-commits@lists.jboss.org
Author: julien(a)jboss.com
Date: 2007-02-12 13:16:53 -0500 (Mon, 12 Feb 2007)
New Revision: 6224
Modified:
trunk/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/ehcache.xml
trunk/core/src/resources/portal-core-sar/conf/hibernate/instance/ehcache.xml
trunk/core/src/resources/portal-core-sar/conf/hibernate/portal/ehcache.xml
trunk/core/src/resources/portal-core-sar/conf/hibernate/portlet/ehcache.xml
trunk/core/src/resources/portal-core-sar/conf/hibernate/user/ehcache.xml
Log:
JBPORTAL-1249 : Increase the cache timeout value to 30 mns instead of 2 mns
Modified: trunk/core/src/resources/portal-core-sar/conf/hibernate/instance/ehcache.xml
===================================================================
--- trunk/core/src/resources/portal-core-sar/conf/hibernate/instance/ehcache.xml 2007-02-12 17:54:14 UTC (rev 6223)
+++ trunk/core/src/resources/portal-core-sar/conf/hibernate/instance/ehcache.xml 2007-02-12 18:16:53 UTC (rev 6224)
@@ -54,8 +54,8 @@
<defaultCache
maxElementsInMemory="10000"
eternal="false"
- timeToIdleSeconds="120"
- timeToLiveSeconds="120"
+ timeToIdleSeconds="1800"
+ timeToLiveSeconds="1800"
overflowToDisk="false"
/>
</ehcache>
Modified: trunk/core/src/resources/portal-core-sar/conf/hibernate/portal/ehcache.xml
===================================================================
--- trunk/core/src/resources/portal-core-sar/conf/hibernate/portal/ehcache.xml 2007-02-12 17:54:14 UTC (rev 6223)
+++ trunk/core/src/resources/portal-core-sar/conf/hibernate/portal/ehcache.xml 2007-02-12 18:16:53 UTC (rev 6224)
@@ -54,8 +54,8 @@
<defaultCache
maxElementsInMemory="10000"
eternal="false"
- timeToIdleSeconds="120"
- timeToLiveSeconds="120"
+ timeToIdleSeconds="1800"
+ timeToLiveSeconds="1800"
overflowToDisk="false"
/>
</ehcache>
Modified: trunk/core/src/resources/portal-core-sar/conf/hibernate/portlet/ehcache.xml
===================================================================
--- trunk/core/src/resources/portal-core-sar/conf/hibernate/portlet/ehcache.xml 2007-02-12 17:54:14 UTC (rev 6223)
+++ trunk/core/src/resources/portal-core-sar/conf/hibernate/portlet/ehcache.xml 2007-02-12 18:16:53 UTC (rev 6224)
@@ -54,8 +54,8 @@
<defaultCache
maxElementsInMemory="10000"
eternal="false"
- timeToIdleSeconds="120"
- timeToLiveSeconds="120"
+ timeToIdleSeconds="1800"
+ timeToLiveSeconds="1800"
overflowToDisk="false"
/>
</ehcache>
Modified: trunk/core/src/resources/portal-core-sar/conf/hibernate/user/ehcache.xml
===================================================================
--- trunk/core/src/resources/portal-core-sar/conf/hibernate/user/ehcache.xml 2007-02-12 17:54:14 UTC (rev 6223)
+++ trunk/core/src/resources/portal-core-sar/conf/hibernate/user/ehcache.xml 2007-02-12 18:16:53 UTC (rev 6224)
@@ -54,8 +54,8 @@
<defaultCache
maxElementsInMemory="10000"
eternal="false"
- timeToIdleSeconds="120"
- timeToLiveSeconds="120"
+ timeToIdleSeconds="1800"
+ timeToLiveSeconds="1800"
overflowToDisk="false"
/>
</ehcache>
Modified: trunk/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/ehcache.xml
===================================================================
--- trunk/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/ehcache.xml 2007-02-12 17:54:14 UTC (rev 6223)
+++ trunk/core-cms/src/resources/portal-cms-sar/conf/hibernate/cms/ehcache.xml 2007-02-12 18:16:53 UTC (rev 6224)
@@ -54,8 +54,8 @@
<defaultCache
maxElementsInMemory="10000"
eternal="false"
- timeToIdleSeconds="120"
- timeToLiveSeconds="120"
+ timeToIdleSeconds="1800"
+ timeToLiveSeconds="1800"
overflowToDisk="false"
/>
</ehcache>
19 years, 2 months