portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raph...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/portal PortalState.java
Date Mon, 04 Jun 2001 17:40:20 GMT
raphael     01/06/04 10:40:20

  Modified:    src/java/org/apache/jetspeed/portal PortalState.java
  Log:
  user User temp storage rather than global Session to prevent
  state leaks after Logout
  
  Revision  Changes    Path
  1.3       +8 -12     jakarta-jetspeed/src/java/org/apache/jetspeed/portal/PortalState.java
  
  Index: PortalState.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/PortalState.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PortalState.java	2001/05/31 17:10:54	1.2
  +++ PortalState.java	2001/06/04 17:40:18	1.3
  @@ -88,7 +88,7 @@
        */
       public static boolean hasMaximized( RunData rundata )
       {
  -        return (rundata.getSession().getAttribute(MAXIMIZED)!=null);
  +        return (rundata.getUser().getTemp(MAXIMIZED)!=null);
       }
   
       /**
  @@ -98,7 +98,7 @@
        */
       public static String getMaximized( RunData rundata )
       {
  -        return (String)rundata.getSession().getAttribute(MAXIMIZED);
  +        return (String)rundata.getUser().getTemp(MAXIMIZED);
       }
   
       /**
  @@ -109,8 +109,7 @@
        */
       public static void setMaximized( String portlet, RunData rundata )
       {
  -        Log.note("Maximized: "+portlet);
  -        rundata.getSession().setAttribute(MAXIMIZED, portlet);
  +        rundata.getUser().setTemp(MAXIMIZED, portlet);
       }
   
       /**
  @@ -159,8 +158,7 @@
        */
       public static void clearMaximized( RunData rundata )
       {
  -        Log.note("Maximized cleared");
  -        rundata.getSession().removeAttribute(MAXIMIZED);
  +        rundata.getUser().removeTemp(MAXIMIZED);
       }
   
       /**
  @@ -170,7 +168,7 @@
        */
       public static boolean hasCustomized( RunData rundata )
       {
  -        return (rundata.getSession().getAttribute(CUSTOMIZED)!=null);
  +        return (rundata.getUser().getTemp(CUSTOMIZED)!=null);
       }
   
       /**
  @@ -180,7 +178,7 @@
        */
       public static String getCustomized( RunData rundata )
       {
  -        return (String)rundata.getSession().getAttribute(CUSTOMIZED);
  +        return (String)rundata.getUser().getTemp(CUSTOMIZED);
       }
   
       /**
  @@ -191,8 +189,7 @@
        */
       public static void setCustomized( String portlet, RunData rundata )
       {
  -        Log.note("Customized: "+portlet);
  -        rundata.getSession().setAttribute(CUSTOMIZED, portlet);
  +        rundata.getUser().setTemp(CUSTOMIZED, portlet);
       }
   
       /**
  @@ -247,8 +244,7 @@
        */
       public static void clearCustomized( RunData rundata )
       {
  -        Log.note("Customized cleared");
  -        rundata.getSession().removeAttribute(CUSTOMIZED);
  +        rundata.getUser().removeTemp(CUSTOMIZED);
       }
   
       /**
  
  
  

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


Mime
View raw message