Class PresenceModuleImpl

    • Field Detail

      • log

        protected static final Logger log
        Field description
    • Constructor Detail

      • PresenceModuleImpl

        public PresenceModuleImpl()
        Constructs ...
        Parameters:
        config -
        writer -
        mucRepository -
        historyProvider -
        sender -
        mucLogger -
    • Method Detail

      • clonePresence

        protected tigase.xml.Element clonePresence​(tigase.xml.Element element)
        Method description
        Parameters:
        element -
        Returns:
      • doQuit

        public void doQuit​(Room room,
                           tigase.xmpp.JID senderJID)
                    throws tigase.util.TigaseStringprepException
        Specified by:
        doQuit in interface PresenceModule
        Parameters:
        room -
        senderJID -
        Throws:
        tigase.util.TigaseStringprepException
      • getFeatures

        public String[] getFeatures()
        Method description
        Specified by:
        getFeatures in interface tigase.component.modules.Module
        Returns:
      • getModuleCriteria

        public tigase.criteria.Criteria getModuleCriteria()
        Method description
        Specified by:
        getModuleCriteria in interface tigase.component.modules.Module
        Returns:
      • preparePresence

        protected PresenceModule.PresenceWrapper preparePresence​(tigase.xmpp.JID destinationJID,
                                                                 tigase.xml.Element presence,
                                                                 Room room,
                                                                 tigase.xmpp.JID occupantJID,
                                                                 boolean newRoomCreated,
                                                                 String newNickName)
                                                          throws tigase.util.TigaseStringprepException
        Throws:
        tigase.util.TigaseStringprepException
      • process

        public void process​(tigase.server.Packet element)
                     throws MUCException,
                            tigase.util.TigaseStringprepException
        Method description
        Specified by:
        process in interface tigase.component.modules.Module
        Parameters:
        element -
        Throws:
        MUCException
        tigase.util.TigaseStringprepException
      • processChangeAvailabilityStatus

        protected void processChangeAvailabilityStatus​(Room room,
                                                       tigase.xml.Element presenceElement,
                                                       tigase.xmpp.JID senderJID,
                                                       String nickname)
                                                throws tigase.util.TigaseStringprepException
        Method description
        Parameters:
        room -
        presenceElement -
        senderJID -
        nickname -
        Throws:
        tigase.util.TigaseStringprepException
      • processChangeNickname

        protected void processChangeNickname​(Room room,
                                             tigase.xml.Element element,
                                             tigase.xmpp.JID senderJID,
                                             String senderNickname,
                                             String newNickName)
                                      throws tigase.util.TigaseStringprepException,
                                             MUCException
        Method description
        Parameters:
        room -
        element -
        senderJID -
        senderNickname -
        newNickName -
        Throws:
        MUCException
        tigase.util.TigaseStringprepException
      • processEntering

        protected void processEntering​(Room room,
                                       boolean roomCreated,
                                       tigase.xml.Element element,
                                       tigase.xmpp.JID senderJID,
                                       String nickname)
                                throws MUCException,
                                       tigase.util.TigaseStringprepException
        Method description
        Parameters:
        room -
        roomCreated -
        element -
        senderJID -
        nickname -
        Throws:
        MUCException
        tigase.util.TigaseStringprepException
      • processExit

        protected void processExit​(Room room,
                                   tigase.xml.Element presenceElement,
                                   tigase.xmpp.JID senderJID)
                            throws MUCException,
                                   tigase.util.TigaseStringprepException
        Method description
        Parameters:
        room -
        presenceElement -
        senderJID -
        Throws:
        MUCException
        tigase.util.TigaseStringprepException
      • sendPresenceToAllOccupants

        protected void sendPresenceToAllOccupants​(tigase.xml.Element $presence,
                                                  Room room,
                                                  tigase.xmpp.JID senderJID,
                                                  boolean newRoomCreated,
                                                  String newNickName)
                                           throws tigase.util.TigaseStringprepException
        Throws:
        tigase.util.TigaseStringprepException
      • sendPresenceToAllOccupants

        protected void sendPresenceToAllOccupants​(Room room,
                                                  tigase.xmpp.JID senderJID,
                                                  boolean newRoomCreated,
                                                  String newNickName)
                                           throws tigase.util.TigaseStringprepException
        Throws:
        tigase.util.TigaseStringprepException
      • sendPresencesToNewOccupant

        public void sendPresencesToNewOccupant​(Room room,
                                               tigase.xmpp.JID senderJID)
                                        throws tigase.util.TigaseStringprepException
        Specified by:
        sendPresencesToNewOccupant in interface PresenceModule
        Throws:
        tigase.util.TigaseStringprepException