Class RoomPresenceModule

  • All Implemented Interfaces:
    tigase.component.modules.Module, tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware, tigase.stats.StatisticHolder

    @Bean(name="roomPresenceModule",
          parent=IMixComponent.class,
          active=true)
    public class RoomPresenceModule
    extends tigase.pubsub.AbstractPubSubModule
    implements tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MUC_USER_XMLNS  
      static java.lang.String MUC_XMLNS  
      • Fields inherited from class tigase.pubsub.AbstractPubSubModule

        config, log, packetWriter, pubSubLogic
      • Fields inherited from class tigase.stats.CounterValue

        counter, level, name
      • Fields inherited from interface tigase.component.modules.Module

        EMPTY_FEATURES
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beforeUnregister()  
      void broadcastMessage​(tigase.xmpp.jid.BareJID channelJID, java.lang.String senderNick, tigase.xml.Element message)  
      boolean canHandle​(tigase.server.Packet packet)  
      java.lang.String[] getFeatures()  
      tigase.criteria.Criteria getModuleCriteria()  
      void handleBroadcastMessageEvent​(RoomPresenceModule.MucMessageBroadcastEvent event)  
      void handleKickoutEvent​(RoomGhostbuster.KickoutEvent event)  
      void initialize()  
      void participantJoined​(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID occupant, java.lang.String nick)  
      void participantLeft​(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID occupant, java.lang.String nick)  
      void process​(tigase.server.Packet packet)  
      • Methods inherited from class tigase.pubsub.AbstractPubSubModule

        getRepository, makeArray, makeArray
      • Methods inherited from class tigase.stats.StatisticHolderImpl

        getStatistics, setStatisticsPrefix, statisticExecutedIn
      • Methods inherited from class tigase.stats.Counter

        everyHour, everyMinute, everySecond, getPerHour, getPerMinute, getPerSecond
      • Methods inherited from class tigase.stats.CounterValue

        getLevel, getName, getValue, inc, setName, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface tigase.stats.StatisticHolder

        everyHour, everyMinute, everySecond
    • Constructor Detail

      • RoomPresenceModule

        public RoomPresenceModule()
    • Method Detail

      • canHandle

        public boolean canHandle​(tigase.server.Packet packet)
        Specified by:
        canHandle in interface tigase.component.modules.Module
        Overrides:
        canHandle in class tigase.pubsub.AbstractPubSubModule
      • getFeatures

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

        public tigase.criteria.Criteria getModuleCriteria()
        Specified by:
        getModuleCriteria in interface tigase.component.modules.Module
      • process

        public void process​(tigase.server.Packet packet)
                     throws tigase.component.exceptions.ComponentException,
                            tigase.util.stringprep.TigaseStringprepException
        Specified by:
        process in interface tigase.component.modules.Module
        Throws:
        tigase.component.exceptions.ComponentException
        tigase.util.stringprep.TigaseStringprepException
      • broadcastMessage

        public void broadcastMessage​(tigase.xmpp.jid.BareJID channelJID,
                                     java.lang.String senderNick,
                                     tigase.xml.Element message)
      • initialize

        public void initialize()
        Specified by:
        initialize in interface tigase.kernel.beans.Initializable
      • beforeUnregister

        public void beforeUnregister()
        Specified by:
        beforeUnregister in interface tigase.kernel.beans.UnregisterAware
      • participantJoined

        public void participantJoined​(tigase.xmpp.jid.BareJID channelJID,
                                      tigase.xmpp.jid.JID occupant,
                                      java.lang.String nick)
      • participantLeft

        public void participantLeft​(tigase.xmpp.jid.BareJID channelJID,
                                    tigase.xmpp.jid.JID occupant,
                                    java.lang.String nick)