|
Openfire 3.3.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.openfire.event.GroupEventDispatcher
public class GroupEventDispatcher
Dispatches group events. Each event has a type
and optional parameters, as follows:
| Event Type | Extra Params | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
group_created | None | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
group_deleting | None | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
member_added | A param named member with a String username as a payload | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
member_removed | A param named member with a String username as a payload | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
admin_added | A param named admin with a String username as a payload | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
admin_removed | A param named admin with a String username as a payload | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
group_modified |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Nested Class Summary | |
|---|---|
static class |
GroupEventDispatcher.EventType
Represents valid event types. |
| Method Summary | |
|---|---|
static void |
addListener(GroupEventListener listener)
Registers a listener to receive events. |
static void |
dispatchEvent(Group group,
GroupEventDispatcher.EventType eventType,
Map params)
Dispatches an event to all listeners. |
static void |
removeListener(GroupEventListener 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(GroupEventListener listener)
listener - the listener.public static void removeListener(GroupEventListener listener)
listener - the listener.
public static void dispatchEvent(Group group,
GroupEventDispatcher.EventType eventType,
Map params)
group - the group.eventType - the event type.params - event parameters.
|
Openfire 3.3.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||