Class PresenceModuleImpl

java.lang.Object
tigase.component.modules.AbstractModule
tigase.muc.modules.AbstractMucModule
tigase.muc.modules.PresenceModuleImpl
All Implemented Interfaces:
tigase.component.modules.Module, tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware, PresenceModule
Direct Known Subclasses:
PresenceModuleNoBroadcast

@Bean(name="presences", parent=MUCComponent.class, active=true) public class PresenceModuleImpl extends AbstractMucModule implements PresenceModule, tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware
Author:
bmalkow
  • Field Details

    • log

      protected static final Logger log
  • Constructor Details

    • PresenceModuleImpl

      public PresenceModuleImpl()
  • Method Details

    • 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, Integer... selfStatusCodes) throws tigase.util.stringprep.TigaseStringprepException
      Specified by:
      doQuit in interface PresenceModule
      Throws:
      tigase.util.stringprep.TigaseStringprepException
    • getFeatures

      public 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, 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, String senderNickname, 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, 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, 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, String newNickName) throws tigase.util.stringprep.TigaseStringprepException
      Throws:
      tigase.util.stringprep.TigaseStringprepException