org.opennms.web.acegisecurity
Class AcegiSessionAttributeListenerOnmsEventBuilder

java.lang.Object
  extended by org.opennms.web.acegisecurity.AcegiSessionAttributeListenerOnmsEventBuilder
All Implemented Interfaces:
EventListener, HttpSessionAttributeListener

public class AcegiSessionAttributeListenerOnmsEventBuilder
extends Object
implements HttpSessionAttributeListener

Listens for HTTP session attribute changes and sends events when the Acegi security context object is removed from a users session. It is assumed that this is a precursor to the user logging out or having their session destroyed (e.g.: because of a timeout). Cooperates with SessionNotatingLogoutHandler to determine if the user clicked the "log out" link in the UI. Different events are sent for a user-initiated log out vs. a session removal for another reason.

Author:
DJ Gregor

Field Summary
static String LOGGED_OUT_EVENT
           
static String SESSION_REMOVED_EVENT
           
 
Constructor Summary
AcegiSessionAttributeListenerOnmsEventBuilder()
           
 
Method Summary
 void attributeAdded(HttpSessionBindingEvent event)
           
 void attributeRemoved(HttpSessionBindingEvent event)
           
 void attributeReplaced(HttpSessionBindingEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGED_OUT_EVENT

public static final String LOGGED_OUT_EVENT
See Also:
Constant Field Values

SESSION_REMOVED_EVENT

public static final String SESSION_REMOVED_EVENT
See Also:
Constant Field Values
Constructor Detail

AcegiSessionAttributeListenerOnmsEventBuilder

public AcegiSessionAttributeListenerOnmsEventBuilder()
Method Detail

attributeAdded

public void attributeAdded(HttpSessionBindingEvent event)
Specified by:
attributeAdded in interface HttpSessionAttributeListener

attributeRemoved

public void attributeRemoved(HttpSessionBindingEvent event)
Specified by:
attributeRemoved in interface HttpSessionAttributeListener

attributeReplaced

public void attributeReplaced(HttpSessionBindingEvent event)
Specified by:
attributeReplaced in interface HttpSessionAttributeListener


Copyright © 2009. All Rights Reserved.