at.spardat.xma.security
Class ContextChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byat.spardat.xma.security.ContextChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class ContextChangeEvent
extends java.util.EventObject

EventObject used to notify a user change. It is delivered to all ContextChangeListener registered at the LoginModuleWithContextChange of the application after the user, the mandant, the environment or the locale has changed. Which of these changes can actually happen depends on the LoginModule.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContextChangeEvent(java.lang.Object source, XMAContext oldContext, XMAContext newContext)
          Creates the event object.
 
Method Summary
 XMAContext getNewContext()
          Get the XMAContext before the user change
 XMAContext getOldContext()
          Get the XMAContext after the user change
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextChangeEvent

public ContextChangeEvent(java.lang.Object source,
                          XMAContext oldContext,
                          XMAContext newContext)
Creates the event object.

Parameters:
source - the LoginModule sending the event
oldContext - the XMAContext before the user change
newContext - the XMContext after the user change
Method Detail

getNewContext

public XMAContext getNewContext()
Get the XMAContext before the user change

Returns:
the XMAContext before the user change

getOldContext

public XMAContext getOldContext()
Get the XMAContext after the user change

Returns:
the XMAContext after the user change