Class PresenceModuleImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.util.logging.Logger log  
      • Fields inherited from class tigase.component.modules.AbstractModule

        eventBus, writer
      • 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()  
      protected tigase.xml.Element clonePresence​(tigase.xml.Element element)  
      void doQuit​(Room room, tigase.xmpp.jid.JID senderJID, java.lang.Integer... selfStatusCodes)  
      java.lang.String[] getFeatures()  
      tigase.criteria.Criteria getModuleCriteria()  
      void initialize()  
      protected PresenceModule.PresenceWrapper preparePresence​(tigase.xmpp.jid.JID destinationJID, tigase.xml.Element presence, Room room, tigase.xmpp.jid.JID occupantJID, boolean newRoomCreated)  
      void process​(tigase.server.Packet element)  
      protected void processChangeAvailabilityStatus​(Room room, tigase.xml.Element presenceElement, tigase.xmpp.jid.JID senderJID, java.lang.String nickname)  
      protected void processChangeNickname​(Room room, tigase.xml.Element element, tigase.xmpp.jid.JID senderJID, java.lang.String senderNickname, java.lang.String newNickName)  
      protected void processEntering​(Room room, boolean roomCreated, tigase.xml.Element element, tigase.xmpp.jid.JID senderJID, java.lang.String nickname)  
      protected void processExit​(Room room, tigase.xml.Element presenceElement, tigase.xmpp.jid.JID senderJID)  
      void sendPresencesToNewOccupant​(Room room, tigase.xmpp.jid.JID senderJID)  
      protected tigase.xml.Element sendPresenceToAllOccupants​(Room room, tigase.xmpp.jid.JID senderJID, boolean newRoomCreated, java.lang.String newNickName)  
      protected void sendPresenceToAllOccupants​(tigase.xml.Element $presence, Room room, tigase.xmpp.jid.JID senderJID, boolean newRoomCreated, java.lang.String newNickName)  
      • 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 Detail

      • log

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

      • PresenceModuleImpl

        public PresenceModuleImpl()
    • Method Detail

      • sendPresencesToNewOccupant

        public void sendPresencesToNewOccupant​(Room room,
                                               tigase.xmpp.jid.JID senderJID)
                                        throws tigase.util.stringprep.TigaseStringprepException
        Specified by:
        sendPresencesToNewOccupant in interface PresenceModule
        Throws:
        tigase.util.stringprep.TigaseStringprepException
      • 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
        Throws:
        tigase.util.stringprep.TigaseStringprepException
      • 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 element)
                     throws MUCException,
                            tigase.util.stringprep.TigaseStringprepException
        Specified by:
        process in interface tigase.component.modules.Module
        Throws:
        MUCException
        tigase.util.stringprep.TigaseStringprepException
      • 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
      • 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,
                                                       java.lang.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,
                                             java.lang.String senderNickname,
                                             java.lang.String newNickName)
                                      throws tigase.util.stringprep.TigaseStringprepException,
                                             MUCException
        Throws:
        tigase.util.stringprep.TigaseStringprepException
        MUCException
      • processEntering

        protected void processEntering​(Room room,
                                       boolean roomCreated,
                                       tigase.xml.Element element,
                                       tigase.xmpp.jid.JID senderJID,
                                       java.lang.String nickname)
                                throws MUCException,
                                       tigase.util.stringprep.TigaseStringprepException
        Throws:
        MUCException
        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
        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
        Throws:
        tigase.util.stringprep.TigaseStringprepException
      • sendPresenceToAllOccupants

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