portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r333093 - in /portals/jetspeed-2/trunk: components/portal/src/java/org/apache/jetspeed/container/state/impl/AbstractNavigationalState.java jetspeed-api/src/java/org/apache/jetspeed/container/state/MutableNavigationalState.java
Date Sun, 13 Nov 2005 18:42:49 GMT
Author: taylor
Date: Sun Nov 13 10:42:42 2005
New Revision: 333093

URL: http://svn.apache.org/viewcvs?rev=333093&view=rev
Log:
add api to clear navigational state parameters

Modified:
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/state/impl/AbstractNavigationalState.java
    portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/state/MutableNavigationalState.java

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/state/impl/AbstractNavigationalState.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/state/impl/AbstractNavigationalState.java?rev=333093&r1=333092&r2=333093&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/state/impl/AbstractNavigationalState.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/state/impl/AbstractNavigationalState.java
Sun Nov 13 10:42:42 2005
@@ -180,4 +180,18 @@
     {
         return requestStates.getWindowIdIterator();
     }
+    
+    public void clearParameters(PortletWindow window)
+    {
+        PortletWindowRequestNavigationalState state = requestStates.getPortletWindowNavigationalState(window.getId().toString());
+        if (state != null)
+        {
+            Map map = state.getParametersMap();
+            if (map != null)
+            {
+                map.clear();
+                state.setClearParameters(true);
+            }
+        }
+    }
 }

Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/state/MutableNavigationalState.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/state/MutableNavigationalState.java?rev=333093&r1=333092&r2=333093&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/state/MutableNavigationalState.java
(original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/state/MutableNavigationalState.java
Sun Nov 13 10:42:42 2005
@@ -65,4 +65,11 @@
      * @param portletMode
      */
     void setMode(PortletWindow window, PortletMode portletMode);
+    
+    /**
+     * Clear the request parameters to emulate an action reset
+     * 
+     * @param window
+     */
+    void clearParameters(PortletWindow window);
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message