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 ClassesNested classes/interfaces inherited from interface tigase.muc.modules.PresenceModule
PresenceModule.PresenceWrapper -
Field Summary
FieldsFields inherited from class tigase.component.modules.AbstractModule
eventBus, writerFields inherited from interface tigase.component.modules.Module
EMPTY_FEATURESFields inherited from interface tigase.muc.modules.PresenceModule
ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected tigase.xml.ElementclonePresence(tigase.xml.Element element) voidString[]tigase.criteria.Criteriavoidprotected PresenceModule.PresenceWrapperpreparePresence(tigase.xmpp.jid.JID destinationJID, tigase.xml.Element presence, Room room, tigase.xmpp.jid.JID occupantJID, boolean newRoomCreated) voidprocess(tigase.server.Packet element) protected voidprocessChangeAvailabilityStatus(Room room, tigase.xml.Element presenceElement, tigase.xmpp.jid.JID senderJID, String nickname) protected voidprocessChangeNickname(Room room, tigase.xml.Element element, tigase.xmpp.jid.JID senderJID, String senderNickname, String newNickName) protected voidprocessEntering(Room room, boolean roomCreated, tigase.xml.Element element, tigase.xmpp.jid.JID senderJID, String nickname) protected voidprocessExit(Room room, tigase.xml.Element presenceElement, tigase.xmpp.jid.JID senderJID) voidsendPresencesToNewOccupant(Room room, tigase.xmpp.jid.JID senderJID) protected tigase.xml.ElementsendPresenceToAllOccupants(Room room, tigase.xmpp.jid.JID senderJID, boolean newRoomCreated, String newNickName) protected voidsendPresenceToAllOccupants(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, sendMucMessageMethods inherited from class tigase.component.modules.AbstractModule
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
sendPresencesToNewOccupantin 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:
doQuitin interfacePresenceModule- Throws:
tigase.util.stringprep.TigaseStringprepException
-
getFeatures
- Specified by:
getFeaturesin interfacetigase.component.modules.Module
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria()- Specified by:
getModuleCriteriain interfacetigase.component.modules.Module
-
process
public void process(tigase.server.Packet element) throws MUCException, tigase.util.stringprep.TigaseStringprepException - Specified by:
processin interfacetigase.component.modules.Module- Throws:
MUCExceptiontigase.util.stringprep.TigaseStringprepException
-
initialize
public void initialize()- Specified by:
initializein interfacetigase.kernel.beans.Initializable
-
beforeUnregister
public void beforeUnregister()- Specified by:
beforeUnregisterin 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.TigaseStringprepExceptionMUCException
-
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:
MUCExceptiontigase.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:
MUCExceptiontigase.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
-