@Bean(name="presences",
parent=MUCComponent.class,
active=true)
public class PresenceModuleImpl
extends AbstractMucModule
implements PresenceModule
| Modifier and Type | Class and Description |
|---|---|
static class |
PresenceModuleImpl.DelayDeliveryThread |
PresenceModule.PresenceWrapper| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
log |
ID| Constructor and Description |
|---|
PresenceModuleImpl() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCodes(PresenceModule.PresenceWrapper wrapper,
boolean newRoomCreated,
String newNickName) |
protected tigase.xml.Element |
clonePresence(tigase.xml.Element element) |
void |
doQuit(Room room,
tigase.xmpp.jid.JID senderJID) |
static Role |
getDefaultRole(RoomConfig config,
Affiliation affiliation) |
String[] |
getFeatures() |
tigase.criteria.Criteria |
getModuleCriteria() |
protected PresenceModule.PresenceWrapper |
preparePresence(tigase.xmpp.jid.JID destinationJID,
tigase.xml.Element presence,
Room room,
tigase.xmpp.jid.JID occupantJID,
boolean newRoomCreated,
String newNickName) |
void |
process(tigase.server.Packet element) |
protected void |
processChangeAvailabilityStatus(Room room,
tigase.xml.Element presenceElement,
tigase.xmpp.jid.JID senderJID,
String nickname) |
protected void |
processChangeNickname(Room room,
tigase.xml.Element element,
tigase.xmpp.jid.JID senderJID,
String senderNickname,
String newNickName) |
protected void |
processEntering(Room room,
boolean roomCreated,
tigase.xml.Element element,
tigase.xmpp.jid.JID senderJID,
String nickname) |
protected void |
processExit(Room room,
tigase.xml.Element presenceElement,
tigase.xmpp.jid.JID senderJID) |
void |
sendPresencesToNewOccupant(Room room,
tigase.xmpp.jid.JID senderJID) |
protected void |
sendPresenceToAllOccupants(tigase.xml.Element $presence,
Room room,
tigase.xmpp.jid.JID senderJID,
boolean newRoomCreated,
String newNickName) |
protected void |
sendPresenceToAllOccupants(Room room,
tigase.xmpp.jid.JID senderJID,
boolean newRoomCreated,
String newNickName) |
createResultIQ, getNicknameFromJid, sendMucMessagefireEvent, getEventBus, getWriter, setEventBus, setWriter, write, writeprotected static final Logger log
public static void addCodes(PresenceModule.PresenceWrapper wrapper, boolean newRoomCreated, String newNickName)
public static Role getDefaultRole(RoomConfig config, Affiliation affiliation)
protected tigase.xml.Element clonePresence(tigase.xml.Element element)
public void doQuit(Room room, tigase.xmpp.jid.JID senderJID) throws tigase.util.stringprep.TigaseStringprepException
doQuit in interface PresenceModuletigase.util.stringprep.TigaseStringprepExceptionpublic String[] getFeatures()
getFeatures in interface tigase.component.modules.Modulepublic tigase.criteria.Criteria getModuleCriteria()
getModuleCriteria in interface tigase.component.modules.Moduleprotected PresenceModule.PresenceWrapper preparePresence(tigase.xmpp.jid.JID destinationJID, tigase.xml.Element presence, Room room, tigase.xmpp.jid.JID occupantJID, boolean newRoomCreated, String newNickName) throws tigase.util.stringprep.TigaseStringprepException
tigase.util.stringprep.TigaseStringprepExceptionpublic void process(tigase.server.Packet element)
throws MUCException,
tigase.util.stringprep.TigaseStringprepException
process in interface tigase.component.modules.ModuleMUCExceptiontigase.util.stringprep.TigaseStringprepExceptionprotected void processChangeAvailabilityStatus(Room room, tigase.xml.Element presenceElement, tigase.xmpp.jid.JID senderJID, String nickname) throws tigase.util.stringprep.TigaseStringprepException
tigase.util.stringprep.TigaseStringprepExceptionprotected void processChangeNickname(Room room, tigase.xml.Element element, tigase.xmpp.jid.JID senderJID, String senderNickname, String newNickName) throws tigase.util.stringprep.TigaseStringprepException, MUCException
tigase.util.stringprep.TigaseStringprepExceptionMUCExceptionprotected void processEntering(Room room, boolean roomCreated, tigase.xml.Element element, tigase.xmpp.jid.JID senderJID, String nickname) throws MUCException, tigase.util.stringprep.TigaseStringprepException
MUCExceptiontigase.util.stringprep.TigaseStringprepExceptionprotected void processExit(Room room, tigase.xml.Element presenceElement, tigase.xmpp.jid.JID senderJID) throws MUCException, tigase.util.stringprep.TigaseStringprepException
MUCExceptiontigase.util.stringprep.TigaseStringprepExceptionprotected void sendPresenceToAllOccupants(tigase.xml.Element $presence,
Room room,
tigase.xmpp.jid.JID senderJID,
boolean newRoomCreated,
String newNickName)
throws tigase.util.stringprep.TigaseStringprepException
tigase.util.stringprep.TigaseStringprepExceptionprotected void sendPresenceToAllOccupants(Room room, tigase.xmpp.jid.JID senderJID, boolean newRoomCreated, String newNickName) throws tigase.util.stringprep.TigaseStringprepException
tigase.util.stringprep.TigaseStringprepExceptionpublic void sendPresencesToNewOccupant(Room room, tigase.xmpp.jid.JID senderJID) throws tigase.util.stringprep.TigaseStringprepException
sendPresencesToNewOccupant in interface PresenceModuletigase.util.stringprep.TigaseStringprepExceptionCopyright © 2007–2019 "Tigase, Inc.". All rights reserved.