at.spardat.xma.security
Class VotingEvent
java.lang.Object
java.util.EventObject
at.spardat.xma.security.VotingEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class VotingEvent
- extends java.util.EventObject
EventObject used to anounce a user change. It is delivered to all ContextChangeListener
registered at the LoginModuleWithContextChange of the application befor the user, the
mandant, the environment or the locale will be changed. Which of these changes can actually happen
depends on the LoginModule.
If any of the listeners calls setDoit(boolean) with parameter false, the change will not happen.
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
VotingEvent(java.lang.Object source)
Creates the event object. |
|
Method Summary |
boolean |
isDoit()
Query if a change is currently allowed. |
void |
setDoit(boolean b)
Allow or disallow a change in the XMAContext |
| 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 |
VotingEvent
public VotingEvent(java.lang.Object source)
- Creates the event object.
- Parameters:
source - the LoginModule sending the event
isDoit
public boolean isDoit()
- Query if a change is currently allowed.
- Returns:
- true if no listener has called setDoit(false).
setDoit
public void setDoit(boolean b)
- Allow or disallow a change in the XMAContext
- Parameters:
b - true to allow, false to disallow