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
FieldsModifier and TypeFieldDescriptionprotected static org.exoplatform.services.log.LogDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsessionCreated(jakarta.servlet.http.HttpSessionEvent se) Deprecated.voidsessionDestroyed(jakarta.servlet.http.HttpSessionEvent se) Deprecated.This method is called when a HTTP session of a Portal instance is destroyed.
-
Field Details
-
log
protected static org.exoplatform.services.log.Log logDeprecated.
-
-
Constructor Details
-
PortalSessionListener
public PortalSessionListener()Deprecated.
-
-
Method Details
-
sessionCreated
public void sessionCreated(jakarta.servlet.http.HttpSessionEvent se) Deprecated.- Specified by:
sessionCreatedin interfacejakarta.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 theThreadLocalfor the PortalContainer- Specified by:
sessionDestroyedin interfacejakarta.servlet.http.HttpSessionListener
-