Package tigase.muc.modules
Class PresenceModuleNoBroadcast
java.lang.Object
tigase.component.modules.AbstractModule
tigase.muc.modules.AbstractMucModule
tigase.muc.modules.PresenceModuleImpl
tigase.muc.modules.PresenceModuleNoBroadcast
- All Implemented Interfaces:
tigase.component.modules.Module
,tigase.kernel.beans.Initializable
,tigase.kernel.beans.UnregisterAware
,PresenceModule
@Bean(name="presences",
active=true)
public class PresenceModuleNoBroadcast
extends PresenceModuleImpl
Class for MucPresenceModule that strips down generated presence stanzas to bare minimum - only sends back presence to
user that joined the room for compatibility reasons.
- Author:
- wojtek
-
Nested Class Summary
Nested classes/interfaces inherited from class tigase.muc.modules.PresenceModuleImpl
PresenceModuleImpl.DelayDeliveryThread
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
String[]
tigase.criteria.Criteria
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) Methods inherited from class tigase.muc.modules.PresenceModuleImpl
beforeUnregister, clonePresence, initialize, preparePresence, process, processChangeAvailabilityStatus, processChangeNickname, processEntering, sendPresenceToAllOccupants
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
-
PresenceModuleNoBroadcast
public PresenceModuleNoBroadcast()
-
-
Method Details
-
doQuit
public void doQuit(Room room, tigase.xmpp.jid.JID senderJID, Integer... selfStatusCodes) throws tigase.util.stringprep.TigaseStringprepException - Specified by:
doQuit
in interfacePresenceModule
- Overrides:
doQuit
in classPresenceModuleImpl
- Throws:
tigase.util.stringprep.TigaseStringprepException
-
getFeatures
- Specified by:
getFeatures
in interfacetigase.component.modules.Module
- Overrides:
getFeatures
in classPresenceModuleImpl
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria()- Specified by:
getModuleCriteria
in interfacetigase.component.modules.Module
- Overrides:
getModuleCriteria
in classPresenceModuleImpl
-
sendPresencesToNewOccupant
public void sendPresencesToNewOccupant(Room room, tigase.xmpp.jid.JID senderJID) throws tigase.util.stringprep.TigaseStringprepException - Specified by:
sendPresencesToNewOccupant
in interfacePresenceModule
- Overrides:
sendPresencesToNewOccupant
in classPresenceModuleImpl
- Throws:
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 - Overrides:
processExit
in classPresenceModuleImpl
- 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 - Overrides:
sendPresenceToAllOccupants
in classPresenceModuleImpl
- Throws:
tigase.util.stringprep.TigaseStringprepException
-