at.spardat.xma.security
Interface ContextChangeListener

All Superinterfaces:
java.util.EventListener

public interface ContextChangeListener
extends java.util.EventListener

This class defines the interface which must be implemented by every object which wishes to be informed of changes in the XMAContext.


Method Summary
 void contextChanged(ContextChangeEvent event)
          Called imediately after the context has changed.
 void contextChangeFailed(ContextChangeEvent event, java.lang.Exception exception)
          Called if the context change failed on the server side.
 void contextWillChange(VotingEvent event)
          Called befor the context changes.
 

Method Detail

contextWillChange

public void contextWillChange(VotingEvent event)
Called befor the context changes. If any of the listeners calls event.setDoit(false), the context will not be changed.

Parameters:
event - containing the changeType and doit.

contextChanged

public void contextChanged(ContextChangeEvent event)
Called imediately after the context has changed. Here data related to the old context can be discarded and data related to the new context can be loaded.

Parameters:
event - containing old and new context

contextChangeFailed

public void contextChangeFailed(ContextChangeEvent event,
                                java.lang.Exception exception)
Called if the context change failed on the server side. The recommended action is to show the exception and close the application.

Parameters:
event - containing old and new context
exception - explaining the failure