Class 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
    • Field Detail

      • log

        protected static final java.util.logging.Logger log
    • Constructor Detail

      • PresenceModuleNoBroadcast

        public PresenceModuleNoBroadcast()
    • Method Detail

      • doQuit

        public void doQuit​(Room room,
                           tigase.xmpp.jid.JID senderJID,
                           java.lang.Integer... selfStatusCodes)
                    throws tigase.util.stringprep.TigaseStringprepException
        Specified by:
        doQuit in interface PresenceModule
        Overrides:
        doQuit in class PresenceModuleImpl
        Throws:
        tigase.util.stringprep.TigaseStringprepException
      • getFeatures

        public java.lang.String[] getFeatures()
        Specified by:
        getFeatures in interface tigase.component.modules.Module
        Overrides:
        getFeatures in class PresenceModuleImpl
      • getModuleCriteria

        public tigase.criteria.Criteria getModuleCriteria()
        Specified by:
        getModuleCriteria in interface tigase.component.modules.Module
        Overrides:
        getModuleCriteria in class PresenceModuleImpl
      • processExit

        protected void processExit​(Room room,
                                   tigase.xml.Element presenceElement,
                                   tigase.xmpp.jid.JID senderJID)
                            throws MUCException,
                                   tigase.util.stringprep.TigaseStringprepException
        Overrides:
        processExit in class PresenceModuleImpl
        Throws:
        MUCException
        tigase.util.stringprep.TigaseStringprepException
      • sendPresenceToAllOccupants

        protected void sendPresenceToAllOccupants​(tigase.xml.Element $presence,
                                                  Room room,
                                                  tigase.xmpp.jid.JID senderJID,
                                                  boolean newRoomCreated,
                                                  java.lang.String newNickName)
                                           throws tigase.util.stringprep.TigaseStringprepException
        Overrides:
        sendPresenceToAllOccupants in class PresenceModuleImpl
        Throws:
        tigase.util.stringprep.TigaseStringprepException