public abstract class MUCEventDelegate extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MUCEventDelegate.InvitationRejectionResult |
static class |
MUCEventDelegate.InvitationResult |
| Constructor and Description |
|---|
MUCEventDelegate() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
destroyingRoom(String roomName,
org.xmpp.packet.JID userjid)
This event will be triggered when an entity attempts to destroy a room.
|
abstract Map<String,String> |
getRoomConfig(String roomName)
Returns a map containing room configuration variables and values.
|
abstract boolean |
joiningRoom(MUCRoom room,
org.xmpp.packet.JID userjid)
This event will be triggered when an entity joins an existing room.
|
boolean |
loadConfig(MUCRoom room)
Loads a delegate provided room configuration for the room specified.
|
abstract MUCEventDelegate.InvitationResult |
sendingInvitation(MUCRoom room,
org.xmpp.packet.JID inviteeJID,
org.xmpp.packet.JID inviterJID,
String inviteMessage)
This event will be triggered when an entity attempts to invite someone to a room.
|
abstract MUCEventDelegate.InvitationRejectionResult |
sendingInvitationRejection(MUCRoom room,
org.xmpp.packet.JID to,
org.xmpp.packet.JID from,
String reason)
This event will be triggered when an entity reject invite from someone to a room.
|
abstract boolean |
shouldRecreate(String roomName,
org.xmpp.packet.JID userjid)
Returns true if the room that is not present in the server should have existed and needs
to be recreated.
|
public abstract boolean joiningRoom(MUCRoom room, org.xmpp.packet.JID userjid)
room - the MUC room.userjid - the JID of the user attempting to join the room.public abstract MUCEventDelegate.InvitationResult sendingInvitation(MUCRoom room, org.xmpp.packet.JID inviteeJID, org.xmpp.packet.JID inviterJID, String inviteMessage)
room - the MUC room.inviteeJID - the JID of the user the invitation will be sent to.inviterJID - the JID of the user that is sending the invitationinviteMessage - the (optional) message that is sent explaining the invitationpublic abstract MUCEventDelegate.InvitationRejectionResult sendingInvitationRejection(MUCRoom room, org.xmpp.packet.JID to, org.xmpp.packet.JID from, String reason)
room - the MUC room.to - the JID of the user the rejecting of invitation will be sent to.from - the JID of the user that is sending the rejecting of invitationreason - the (optional) message that is sent explaining the rejection invitationpublic abstract Map<String,String> getRoomConfig(String roomName)
roomName - the name of the room the configuration map is associated with.public abstract boolean destroyingRoom(String roomName, org.xmpp.packet.JID userjid)
roomName - the name of the MUC room being destroyed.userjid - the JID of the user attempting to destroy the room.public abstract boolean shouldRecreate(String roomName, org.xmpp.packet.JID userjid)
roomName - name of the room.userjid - JID Of the user trying to join/create the room.public boolean loadConfig(MUCRoom room)
room - the room to load the configuration for.Copyright © 2003–2019 Ignite Realtime. All rights reserved.