|
Openfire 3.7.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.openfire.event.UserEventDispatcher
public class UserEventDispatcher
Dispatches user events. Each event has a type
and optional parameters, as follows:
Event Type | Extra Params | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
user_created | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
user_deleting | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
user_modified |
|
Nested Class Summary | |
---|---|
static class |
UserEventDispatcher.EventType
Represents valid event types. |
Method Summary | |
---|---|
static void |
addListener(UserEventListener listener)
Registers a listener to receive events. |
static void |
dispatchEvent(User user,
UserEventDispatcher.EventType eventType,
Map<String,Object> params)
Dispatches an event to all listeners. |
static void |
removeListener(UserEventListener listener)
Unregisters a listener to receive events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addListener(UserEventListener listener)
listener
- the listener.public static void removeListener(UserEventListener listener)
listener
- the listener.public static void dispatchEvent(User user, UserEventDispatcher.EventType eventType, Map<String,Object> params)
user
- the user.eventType
- the event type.params
- event parameters.
|
Openfire 3.7.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |