portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r390421 - /portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/state/impl/PortletWindowBaseNavigationalState.java
Date Fri, 31 Mar 2006 13:38:38 GMT
Author: ate
Date: Fri Mar 31 05:38:38 2006
New Revision: 390421

URL: http://svn.apache.org/viewcvs?rev=390421&view=rev
Log:
non-serializable PortletMode and WindowState need to be transient

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

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/state/impl/PortletWindowBaseNavigationalState.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/state/impl/PortletWindowBaseNavigationalState.java?rev=390421&r1=390420&r2=390421&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/state/impl/PortletWindowBaseNavigationalState.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/state/impl/PortletWindowBaseNavigationalState.java
Fri Mar 31 05:38:38 2006
@@ -28,26 +28,39 @@
  */
 public class PortletWindowBaseNavigationalState implements Serializable
 {
-    private PortletMode portletMode;
-    private WindowState windowState;
+    private String modeName;
+    private String stateName;
+    
+    private transient PortletMode portletMode;
+    private transient WindowState windowState;
     
     public PortletMode getPortletMode()
     {
-        return portletMode;
+        if ( portletMode == null && modeName != null )
+        {
+            portletMode = new PortletMode(modeName);
+        }
+        return portletMode ;
     }
     
     public void setPortletMode(PortletMode portletMode)
     {
         this.portletMode = portletMode;
+        this.modeName = portletMode == null ? null : portletMode.toString();
     }
     
     public WindowState getWindowState()
     {
+        if ( windowState == null && stateName != null )
+        {
+            windowState = new WindowState(stateName);
+        }
         return windowState;
     }
     
     public void setWindowState(WindowState windowState)
     {
         this.windowState = windowState;
+        this.stateName = windowState == null ? null : windowState.toString();
     }
 }



---------------------------------------------------------------------
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