Class PresenceModuleNoBroadcast

java.lang.Object
tigase.component.modules.AbstractModule
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 Details

    • log

      protected static final Logger 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 interface PresenceModule
      Overrides:
      doQuit in class PresenceModuleImpl
      Throws:
      tigase.util.stringprep.TigaseStringprepException
    • getFeatures

      public 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
    • sendPresencesToNewOccupant

      public void sendPresencesToNewOccupant(Room room, tigase.xmpp.jid.JID senderJID) throws tigase.util.stringprep.TigaseStringprepException
      Specified by:
      sendPresencesToNewOccupant in interface PresenceModule
      Overrides:
      sendPresencesToNewOccupant in class PresenceModuleImpl
      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 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, String newNickName) throws tigase.util.stringprep.TigaseStringprepException
      Overrides:
      sendPresenceToAllOccupants in class PresenceModuleImpl
      Throws:
      tigase.util.stringprep.TigaseStringprepException