public class VCardEventDispatcher extends Object
addListener(org.jivesoftware.openfire.vcard.VCardListener)
to add or remove VCardListener
.Constructor and Description |
---|
VCardEventDispatcher() |
Modifier and Type | Method and Description |
---|---|
static void |
addListener(VCardListener listener)
Registers a listener to receive events when a vCard is created, updated or deleted.
|
static void |
dispatchVCardCreated(String user,
org.dom4j.Element vCard)
Dispatches that a vCard was created to all listeners.
|
static void |
dispatchVCardDeleted(String user,
org.dom4j.Element vCard)
Dispatches that a vCard was deleted to all listeners.
|
static void |
dispatchVCardUpdated(String user,
org.dom4j.Element vCard)
Dispatches that a vCard was updated to all listeners.
|
static void |
removeListener(VCardListener listener)
Unregisters a listener to receive events.
|
public static void addListener(VCardListener listener)
listener
- the listener.public static void removeListener(VCardListener listener)
listener
- the listener.public static void dispatchVCardUpdated(String user, org.dom4j.Element vCard)
user
- the user for which the vCard was set.vCard
- the vcard updated.public static void dispatchVCardCreated(String user, org.dom4j.Element vCard)
user
- the user for which the vCard was created.vCard
- the vcard created.public static void dispatchVCardDeleted(String user, org.dom4j.Element vCard)
user
- the user for which the vCard was deleted.vCard
- the vcard deleted.Copyright © 2003-2008 Jive Software.