org.exoplatform.forum.service
Class ForumSessionListener

java.lang.Object
  extended by org.exoplatform.forum.service.ForumSessionListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionListener

Deprecated.

@Deprecated
public class ForumSessionListener
extends java.lang.Object
implements javax.servlet.http.HttpSessionListener


Field Summary
protected static org.apache.commons.logging.Log log
          Deprecated.  
 
Constructor Summary
ForumSessionListener()
          Deprecated.  
 
Method Summary
 void sessionCreated(javax.servlet.http.HttpSessionEvent event)
          Deprecated.  
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
          Deprecated. This method is called when a HTTP session of a Portal instance is destroyed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Deprecated. 
Constructor Detail

ForumSessionListener

public ForumSessionListener()
Deprecated. 
Method Detail

sessionCreated

public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
Deprecated. 
Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
Deprecated. 
This method is called when a HTTP session of a Portal instance is destroyed. By default the session time is 30 minutes. In this method, we: 1) first get the portal instance name from where the session is removed. 2) Get the correct instance object from the Root container 3) Put the portal instance in the Portal ThreadLocal 4) Get the main entry point (WebAppController) from the current portal container 5) Extract from the WebAppController the PortalApplication object which is the entry point to the StateManager object 6) Expire the portal session stored in the StateManager 7) Finally, removes the WindowInfos object from the WindowInfosContainer container 8) Flush the threadlocal for the PortalContainer

Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener


Copyright © 2011 eXo Platform SAS. All Rights Reserved.