public class LockOutEventDispatcher extends Object
addListener(LockOutEventListener)
and removeListener(LockOutEventListener)
to add or remove LockOutEventListener
.Constructor and Description |
---|
LockOutEventDispatcher() |
Modifier and Type | Method and Description |
---|---|
static void |
accountLocked(LockOutFlag flag)
Notifies the listeners that an account was just set to be disabled/locked out.
|
static void |
accountUnlocked(String username)
Notifies the listeners that an account was just enabled (lockout removed).
|
static void |
addListener(LockOutEventListener listener)
Registers a listener to receive events.
|
static void |
lockedAccountDenied(String username)
Notifies the listeners that a locked out account attempted to log in.
|
static void |
removeListener(LockOutEventListener listener)
Unregisters a listener to receive events.
|
public static void addListener(LockOutEventListener listener)
listener
- the listener.public static void removeListener(LockOutEventListener listener)
listener
- the listener.public static void accountLocked(LockOutFlag flag)
flag
- The LockOutFlag that was set, which includes the username of the account and start/end times.public static void accountUnlocked(String username)
username
- The username of the account that was enabled.public static void lockedAccountDenied(String username)
username
- The username of the account that tried to log in.Copyright © 2003-2008 Jive Software.