Author: julien(a)jboss.com
Date: 2008-01-23 11:07:45 -0500 (Wed, 23 Jan 2008)
New Revision: 9580
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/PortletControllerContextImpl.java
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/PortletURLRenderer.java
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/URLParameterConstants.java
Log:
added javadoc on various constants.
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/PortletControllerContextImpl.java
===================================================================
---
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/PortletControllerContextImpl.java 2008-01-23
15:58:49 UTC (rev 9579)
+++
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/PortletControllerContextImpl.java 2008-01-23
16:07:45 UTC (rev 9580)
@@ -206,7 +206,7 @@
}
else
{
- Map<String, String[]> publicNavigationalStateChanges =
(Map<String,
String[]>)IOTools.unserialize(Tools.fromHexString(req.getParameter(PAGE_NAVIGATIONAL_STATE_CHANGES)));
+ Map<String, String[]> publicNavigationalStateChanges =
(Map<String,
String[]>)IOTools.unserialize(Tools.fromHexString(req.getParameter(PUBLIC_NAVIGATIONAL_STATE_CHANGES)));
//
request = new PortletController.PortletRenderRequest(
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/PortletURLRenderer.java
===================================================================
---
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/PortletURLRenderer.java 2008-01-23
15:58:49 UTC (rev 9579)
+++
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/PortletURLRenderer.java 2008-01-23
16:07:45 UTC (rev 9580)
@@ -175,7 +175,7 @@
HashMap<String, String[]> serialiableChanges = new
HashMap<String, String[]>(changes);
byte[] bytes = IOTools.serialize(serialiableChanges);
String ns = Tools.toHexString(bytes);
- parameters.put(PAGE_NAVIGATIONAL_STATE_CHANGES, ns);
+ parameters.put(PUBLIC_NAVIGATIONAL_STATE_CHANGES, ns);
}
catch (IOException e)
{
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/URLParameterConstants.java
===================================================================
---
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/URLParameterConstants.java 2008-01-23
15:58:49 UTC (rev 9579)
+++
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/URLParameterConstants.java 2008-01-23
16:07:45 UTC (rev 9580)
@@ -33,22 +33,70 @@
{
}
+ /**
+ * The life cycle type of the invocation. The values accepted are
<code>ACTION_LIFECYCLE</code>,
+ * <code>RENDER_LIFECYCLE</code> and
<code>RESOURCE_LIFECYCLE</code>.
+ */
public static final String LIFECYCLE_TYPE = "type";
+ /**
+ * The portlet mode.
+ */
public static final String MODE = "mode";
+
+ /**
+ * The window state.
+ */
public static final String WINDOW_STATE = "windowstate";
+
+ /**
+ * The portlet navigational state for any type of lifecycle.
+ */
public static final String NAVIGATIONAL_STATE = "navigationalstate";
+
+ /**
+ * The portlet resource state for lifecycle of type
<code>RENDER_LIFECYCLE</code>.
+ */
public static final String RESOURCE_STATE = "resourcestate";
+
+ /**
+ * The portlet interaction state for lifecycle of type
<code>ACTION_LIFECYCLE</code>.
+ */
public static final String INTERACTION_STATE = "interactionstate";
+ /**
+ * The page state for any kind of lifecycle.
+ */
public static final String PAGE_STATE = "pagestate";
- public static final String PAGE_NAVIGATIONAL_STATE_CHANGES =
"pagenavigationalstatechanges";
- public static final String RESOURCE_ID = "id";
+ /**
+ * The public navigational state changes of a portlet for lifecycle of type
<code>RENDER_LIFECYCLE</code>.
+ */
+ public static final String PUBLIC_NAVIGATIONAL_STATE_CHANGES =
"publicnavigationalstatechanges";
+
+ /**
+ * The resource id for lifecycle of type <code>RESOURCE_LIFECYCLE</code>.
+ */
+ public static final String RESOURCE_ID = "resourceid";
+
+ /**
+ * The resource cacheability for lifecycle of type
<code>RENDER_LIFECYCLE</code>.
+ */
public static final String RESOURCE_CACHEABILITY = "resourcecacheability";
+ /**
+ * Denotes an action lifecycle operation.
+ */
public static final String ACTION_LIFECYCLE = "action";
+
+ /**
+ * Denotes a render lifecycle operation.
+ */
public static final String RENDER_LIFECYCLE = "render";
+
+ /**
+ * Denotes a resource lifecycle operation.
+ */
public static final String RESOURCE_LIFECYCLE = "resource";
}
Show replies by date