public class ClearspaceMUCEventDelegate extends MUCEventDelegate
MUCEventDelegate.InvitationResult
Constructor and Description |
---|
ClearspaceMUCEventDelegate() |
Modifier and Type | Method and Description |
---|---|
boolean |
destroyingRoom(String roomName,
org.xmpp.packet.JID userjid)
This event will be triggered when an entity attempts to destroy a room.
|
Map<String,String> |
getRoomConfig(String roomName)
Returns a map containing room configuration variables and values.
|
boolean |
joiningRoom(MUCRoom room,
org.xmpp.packet.JID userjid)
Returns true if the user is allowed to join the room.
|
MUCEventDelegate.InvitationResult |
sendingInvitation(MUCRoom room,
org.xmpp.packet.JID invitee,
org.xmpp.packet.JID inviter,
String reason)
This event will be triggered when an entity attempts to invite someone to a room.
|
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.
|
loadConfig
public MUCEventDelegate.InvitationResult sendingInvitation(MUCRoom room, org.xmpp.packet.JID invitee, org.xmpp.packet.JID inviter, String reason)
MUCEventDelegate
sendingInvitation
in class MUCEventDelegate
room
- the MUC room.invitee
- the JID of the user the invitation will be sent to.inviter
- the JID of the user that is sending the invitationreason
- the (optional) message that is sent explaining the invitationpublic boolean joiningRoom(MUCRoom room, org.xmpp.packet.JID userjid)
joiningRoom
in class MUCEventDelegate
room
- the room the user is attempting to join.userjid
- the JID of the user attempting to join the room.public boolean shouldRecreate(String roomName, org.xmpp.packet.JID userjid)
MUCEventDelegate
shouldRecreate
in class MUCEventDelegate
roomName
- name of the room.userjid
- JID Of the user trying to join/create the room.public Map<String,String> getRoomConfig(String roomName)
MUCEventDelegate
getRoomConfig
in class MUCEventDelegate
roomName
- the name of the room the configuration map is associated with.public boolean destroyingRoom(String roomName, org.xmpp.packet.JID userjid)
Returns true if the user is allowed to destroy the room.
destroyingRoom
in class MUCEventDelegate
roomName
- the name of the MUC room being destroyed.userjid
- the JID of the user attempting to destroy the room.Copyright © 2003-2008 Jive Software.