Class PortalSessionListener

java.lang.Object
org.exoplatform.portal.application.PortalSessionListener
All Implemented Interfaces:
jakarta.servlet.http.HttpSessionListener, EventListener

@Deprecated public class PortalSessionListener extends Object implements jakarta.servlet.http.HttpSessionListener
Deprecated.
Currently we do not store anything outside of the session, that's why we do not need to clean anything when a session is destroyed.
This session listener was created for purpose of expiring the portal session stored in the StateManager and removes the WindowInfos object from the WindowInfosContainer container

Created by The eXo Platform SAS Date: Jan 25, 2003 Time: 5:25:52 PM

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static org.exoplatform.services.log.Log
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sessionCreated(jakarta.servlet.http.HttpSessionEvent se)
    Deprecated.
     
    void
    sessionDestroyed(jakarta.servlet.http.HttpSessionEvent se)
    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 Details

    • log

      protected static org.exoplatform.services.log.Log log
      Deprecated.
  • Constructor Details

    • PortalSessionListener

      public PortalSessionListener()
      Deprecated.
  • Method Details

    • sessionCreated

      public void sessionCreated(jakarta.servlet.http.HttpSessionEvent se)
      Deprecated.
      Specified by:
      sessionCreated in interface jakarta.servlet.http.HttpSessionListener
    • sessionDestroyed

      public void sessionDestroyed(jakarta.servlet.http.HttpSessionEvent se)
      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) Put the portal instance in the Portal ThreadLocal 3) Get the main entry point (WebAppController) from the current portal container 4) Extract from the WebAppController the PortalApplication object which is the entry point to the StateManager object 5) Expire the portal session stored in the StateManager 6) Finally, removes the WindowInfos object from the WindowInfosContainer container 7) Flush the ThreadLocal for the PortalContainer
      Specified by:
      sessionDestroyed in interface jakarta.servlet.http.HttpSessionListener