Package org.jivesoftware.openfire.muc
Interface MUCEventListener
-
- All Known Implementing Classes:
OccupantManager
public interface MUCEventListener
Interface to listen for MUC events. Use theMUCEventDispatcher.addListener(MUCEventListener)
method to register for events.- Author:
- Gaston Dombiak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
messageReceived(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String nickname, org.xmpp.packet.Message message)
Event triggered when a room occupant sent a message to a room.void
nicknameChanged(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String oldNickname, String newNickname)
Event triggered when an occupant changed his nickname in a room.void
occupantJoined(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String nickname)
Event triggered when a new occupant joins a room.void
occupantLeft(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String nickname)
Event triggered when an occupant left a room.void
occupantNickKicked(org.xmpp.packet.JID roomJID, String nickname)
When an XMPP entity / user is kicked out of a room because of nickname collision, this event handler will ensure that this instance of OccupantManager, as well as all instances for the same server on every other cluster node, updates the relevant data that it maintains to perform post-cluster event maintenance.void
privateMessageRecieved(org.xmpp.packet.JID toJID, org.xmpp.packet.JID fromJID, org.xmpp.packet.Message message)
Event triggered when a room occupant sent a private message to another room uservoid
roomCreated(org.xmpp.packet.JID roomJID)
Event triggered when a new room was created.void
roomDestroyed(org.xmpp.packet.JID roomJID)
Event triggered when a room was destroyed.void
roomSubjectChanged(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String newSubject)
Event triggered when the subject of a room is changed.
-
-
-
Method Detail
-
roomCreated
void roomCreated(org.xmpp.packet.JID roomJID)
Event triggered when a new room was created.- Parameters:
roomJID
- JID of the room that was created.
-
roomDestroyed
void roomDestroyed(org.xmpp.packet.JID roomJID)
Event triggered when a room was destroyed.- Parameters:
roomJID
- JID of the room that was destroyed.
-
occupantJoined
void occupantJoined(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String nickname)
Event triggered when a new occupant joins a room.- Parameters:
roomJID
- the JID of the room where the occupant has joined.user
- the JID of the user joining the room.nickname
- nickname of the user in the room.
-
occupantLeft
void occupantLeft(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String nickname)
Event triggered when an occupant left a room.- Parameters:
roomJID
- the JID of the room where the occupant has left.user
- the JID of the user leaving the room.nickname
- nickname of the user leaving the room.
-
occupantNickKicked
void occupantNickKicked(org.xmpp.packet.JID roomJID, String nickname)
When an XMPP entity / user is kicked out of a room because of nickname collision, this event handler will ensure that this instance of OccupantManager, as well as all instances for the same server on every other cluster node, updates the relevant data that it maintains to perform post-cluster event maintenance.- Parameters:
roomJID
- the JID of the room where the occupant is kicked out.nickname
- nickname that the user used in the room.
-
nicknameChanged
void nicknameChanged(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String oldNickname, String newNickname)
Event triggered when an occupant changed his nickname in a room.- Parameters:
roomJID
- the JID of the room where the user changed his nickname.user
- the JID of the user that changed his nickname.oldNickname
- old nickname of the user in the room.newNickname
- new nickname of the user in the room.
-
messageReceived
void messageReceived(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String nickname, org.xmpp.packet.Message message)
Event triggered when a room occupant sent a message to a room.- Parameters:
roomJID
- the JID of the room that received the message.user
- the JID of the user that sent the message.nickname
- nickname used by the user when sending the message.message
- the message sent by the room occupant.
-
privateMessageRecieved
void privateMessageRecieved(org.xmpp.packet.JID toJID, org.xmpp.packet.JID fromJID, org.xmpp.packet.Message message)
Event triggered when a room occupant sent a private message to another room user- Parameters:
toJID
- the JID of who the message is to.fromJID
- the JID of who the message came from.message
- the message sent to user.
-
roomSubjectChanged
void roomSubjectChanged(org.xmpp.packet.JID roomJID, org.xmpp.packet.JID user, String newSubject)
Event triggered when the subject of a room is changed.- Parameters:
roomJID
- the JID of the room that had its subject changed.user
- the JID of the user that changed the subject.newSubject
- new room subject.
-
-