org.jasig.portal.portlet.session
Class PortletSessionExpirationManager

java.lang.Object
  extended by org.jasig.portal.portlet.session.PortletSessionExpirationManager
All Implemented Interfaces:
EventListener, org.apache.pluto.spi.optional.PortletInvocationListener, ApplicationListener

public class PortletSessionExpirationManager
extends Object
implements org.apache.pluto.spi.optional.PortletInvocationListener, ApplicationListener

After each request processed by a portlet the portlets session (if one exists) is stored in a Map in the Portal's session. When a portal session is invalidated the PortletSession.invalidate() method is called on all portlet sessions in the Map. TODO this may not play well with distributed sessions

Version:
$Revision$
Author:
Eric Dalquist

Field Summary
protected  org.apache.commons.logging.Log logger
           
static String PORTLET_SESSIONS_MAP
           
 
Constructor Summary
PortletSessionExpirationManager()
           
 
Method Summary
 IPortalRequestUtils getPortalRequestUtils()
           
 void onApplicationEvent(ApplicationEvent event)
           
 void onBegin(org.apache.pluto.spi.optional.PortletInvocationEvent event)
           
 void onEnd(org.apache.pluto.spi.optional.PortletInvocationEvent event)
           
 void onError(org.apache.pluto.spi.optional.PortletInvocationEvent event, Throwable t)
           
 void setPortalRequestUtils(IPortalRequestUtils portalRequestUtils)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORTLET_SESSIONS_MAP

public static final String PORTLET_SESSIONS_MAP

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

PortletSessionExpirationManager

public PortletSessionExpirationManager()
Method Detail

getPortalRequestUtils

public IPortalRequestUtils getPortalRequestUtils()
Returns:
the portalRequestUtils

setPortalRequestUtils

public void setPortalRequestUtils(IPortalRequestUtils portalRequestUtils)
Parameters:
portalRequestUtils - the portalRequestUtils to set

onEnd

public void onEnd(org.apache.pluto.spi.optional.PortletInvocationEvent event)
Specified by:
onEnd in interface org.apache.pluto.spi.optional.PortletInvocationListener

onApplicationEvent

public void onApplicationEvent(ApplicationEvent event)
Specified by:
onApplicationEvent in interface ApplicationListener

onBegin

public void onBegin(org.apache.pluto.spi.optional.PortletInvocationEvent event)
Specified by:
onBegin in interface org.apache.pluto.spi.optional.PortletInvocationListener

onError

public void onError(org.apache.pluto.spi.optional.PortletInvocationEvent event,
                    Throwable t)
Specified by:
onError in interface org.apache.pluto.spi.optional.PortletInvocationListener


Copyright © 2010 Jasig. All Rights Reserved.