Package tigase.muc.modules
Class PresenceModuleImpl
java.lang.Object
tigase.component.modules.AbstractModule
tigase.muc.modules.AbstractMucModule
tigase.muc.modules.PresenceModuleImpl
- All Implemented Interfaces:
tigase.component.modules.Module
,tigase.kernel.beans.Initializable
,tigase.kernel.beans.UnregisterAware
,PresenceModule
- Direct Known Subclasses:
PresenceModuleNoBroadcast
@Bean(name="presences",
parent=MUCComponent.class,
active=true)
public class PresenceModuleImpl
extends AbstractMucModule
implements PresenceModule, tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware
- Author:
- bmalkow
-
Nested Class Summary
Nested classes/interfaces inherited from interface tigase.muc.modules.PresenceModule
PresenceModule.PresenceWrapper
-
Field Summary
Fields inherited from class tigase.component.modules.AbstractModule
eventBus, writer
Fields inherited from interface tigase.component.modules.Module
EMPTY_FEATURES
Fields inherited from interface tigase.muc.modules.PresenceModule
ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected tigase.xml.Element
clonePresence
(tigase.xml.Element element) void
String[]
tigase.criteria.Criteria
void
protected PresenceModule.PresenceWrapper
preparePresence
(tigase.xmpp.jid.JID destinationJID, tigase.xml.Element presence, Room room, tigase.xmpp.jid.JID occupantJID, boolean newRoomCreated) 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 tigase.xml.Element
sendPresenceToAllOccupants
(Room room, tigase.xmpp.jid.JID senderJID, boolean newRoomCreated, String newNickName) protected void
sendPresenceToAllOccupants
(tigase.xml.Element $presence, Room room, tigase.xmpp.jid.JID senderJID, boolean newRoomCreated, String newNickName) Methods inherited from class tigase.muc.modules.AbstractMucModule
createResultIQ, getNicknameFromJid, sendMucMessage, validateRTBL
Methods inherited from class tigase.component.modules.AbstractModule
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tigase.component.modules.Module
canHandle
-
Field Details
-
log
-
-
Constructor Details
-
PresenceModuleImpl
public PresenceModuleImpl()
-
-
Method Details
-
sendPresencesToNewOccupant
public void sendPresencesToNewOccupant(Room room, tigase.xmpp.jid.JID senderJID) throws tigase.util.stringprep.TigaseStringprepException - Specified by:
sendPresencesToNewOccupant
in interfacePresenceModule
- Throws:
tigase.util.stringprep.TigaseStringprepException
-
doQuit
public void doQuit(Room room, tigase.xmpp.jid.JID senderJID, Integer... selfStatusCodes) throws tigase.util.stringprep.TigaseStringprepException - Specified by:
doQuit
in interfacePresenceModule
- Throws:
tigase.util.stringprep.TigaseStringprepException
-
getFeatures
- Specified by:
getFeatures
in interfacetigase.component.modules.Module
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria()- Specified by:
getModuleCriteria
in interfacetigase.component.modules.Module
-
process
public void process(tigase.server.Packet element) throws MUCException, tigase.util.stringprep.TigaseStringprepException - Specified by:
process
in interfacetigase.component.modules.Module
- Throws:
MUCException
tigase.util.stringprep.TigaseStringprepException
-
initialize
public void initialize()- Specified by:
initialize
in interfacetigase.kernel.beans.Initializable
-
beforeUnregister
public void beforeUnregister()- Specified by:
beforeUnregister
in interfacetigase.kernel.beans.UnregisterAware
-
clonePresence
protected tigase.xml.Element clonePresence(tigase.xml.Element element) -
preparePresence
protected PresenceModule.PresenceWrapper preparePresence(tigase.xmpp.jid.JID destinationJID, tigase.xml.Element presence, Room room, tigase.xmpp.jid.JID occupantJID, boolean newRoomCreated) throws tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.util.stringprep.TigaseStringprepException
-
processChangeAvailabilityStatus
protected void processChangeAvailabilityStatus(Room room, tigase.xml.Element presenceElement, tigase.xmpp.jid.JID senderJID, String nickname) throws tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.util.stringprep.TigaseStringprepException
-
processChangeNickname
protected void processChangeNickname(Room room, tigase.xml.Element element, tigase.xmpp.jid.JID senderJID, String senderNickname, String newNickName) throws tigase.util.stringprep.TigaseStringprepException, MUCException - Throws:
tigase.util.stringprep.TigaseStringprepException
MUCException
-
processEntering
protected void processEntering(Room room, boolean roomCreated, tigase.xml.Element element, tigase.xmpp.jid.JID senderJID, String nickname) throws MUCException, tigase.util.stringprep.TigaseStringprepException - Throws:
MUCException
tigase.util.stringprep.TigaseStringprepException
-
processExit
protected void processExit(Room room, tigase.xml.Element presenceElement, tigase.xmpp.jid.JID senderJID) throws MUCException, tigase.util.stringprep.TigaseStringprepException - Throws:
MUCException
tigase.util.stringprep.TigaseStringprepException
-
sendPresenceToAllOccupants
protected void sendPresenceToAllOccupants(tigase.xml.Element $presence, Room room, tigase.xmpp.jid.JID senderJID, boolean newRoomCreated, String newNickName) throws tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.util.stringprep.TigaseStringprepException
-
sendPresenceToAllOccupants
protected tigase.xml.Element sendPresenceToAllOccupants(Room room, tigase.xmpp.jid.JID senderJID, boolean newRoomCreated, String newNickName) throws tigase.util.stringprep.TigaseStringprepException - Throws:
tigase.util.stringprep.TigaseStringprepException
-