Class DefaultParticipantStatusListener

  • All Implemented Interfaces:
    ParticipantStatusListener

    @Deprecated
    public class DefaultParticipantStatusListener
    extends java.lang.Object
    implements ParticipantStatusListener
    Deprecated.
    Default implementation of the ParticipantStatusListener interface.

    This class does not provide any behavior by default. It just avoids having to implement all the inteface methods if the user is only interested in implementing some of the methods.

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void adminGranted​(org.jxmpp.jid.EntityFullJid participant)
      Deprecated.
      Called when an owner grants administrator privileges to a user.
      void adminRevoked​(org.jxmpp.jid.EntityFullJid participant)
      Deprecated.
      Called when an owner revokes administrator privileges from a user.
      void banned​(org.jxmpp.jid.EntityFullJid participant, org.jxmpp.jid.Jid actor, java.lang.String reason)
      Deprecated.
      Called when an administrator or owner banned a participant from the room.
      void joined​(org.jxmpp.jid.EntityFullJid participant)
      Deprecated.
      Called when a new room occupant has joined the room.
      void kicked​(org.jxmpp.jid.EntityFullJid participant, org.jxmpp.jid.Jid actor, java.lang.String reason)
      Deprecated.
      Called when a room participant has been kicked from the room.
      void left​(org.jxmpp.jid.EntityFullJid participant)
      Deprecated.
      Called when a room occupant has left the room on its own.
      void membershipGranted​(org.jxmpp.jid.EntityFullJid participant)
      Deprecated.
      Called when an administrator grants a user membership to the room.
      void membershipRevoked​(org.jxmpp.jid.EntityFullJid participant)
      Deprecated.
      Called when an administrator revokes a user membership to the room.
      void moderatorGranted​(org.jxmpp.jid.EntityFullJid participant)
      Deprecated.
      Called when an administrator grants moderator privileges to a user.
      void moderatorRevoked​(org.jxmpp.jid.EntityFullJid participant)
      Deprecated.
      Called when an administrator revokes moderator privileges from a user.
      void nicknameChanged​(org.jxmpp.jid.EntityFullJid participant, org.jxmpp.jid.parts.Resourcepart newNickname)
      Deprecated.
      Called when a participant changed his/her nickname in the room.
      void ownershipGranted​(org.jxmpp.jid.EntityFullJid participant)
      Deprecated.
      Called when an owner grants a user ownership on the room.
      void ownershipRevoked​(org.jxmpp.jid.EntityFullJid participant)
      Deprecated.
      Called when an owner revokes a user ownership on the room.
      void voiceGranted​(org.jxmpp.jid.EntityFullJid participant)
      Deprecated.
      Called when a moderator grants voice to a visitor.
      void voiceRevoked​(org.jxmpp.jid.EntityFullJid participant)
      Deprecated.
      Called when a moderator revokes voice from a participant.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultParticipantStatusListener

        public DefaultParticipantStatusListener()
        Deprecated.
    • Method Detail

      • joined

        public void joined​(org.jxmpp.jid.EntityFullJid participant)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when a new room occupant has joined the room. Note: Take in consideration that when you join a room you will receive the list of current occupants in the room. This message will be sent for each occupant.
        Specified by:
        joined in interface ParticipantStatusListener
        Parameters:
        participant - the participant that has just joined the room (e.g. [email protected]/nick).
      • left

        public void left​(org.jxmpp.jid.EntityFullJid participant)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when a room occupant has left the room on its own. This means that the occupant was neither kicked nor banned from the room.
        Specified by:
        left in interface ParticipantStatusListener
        Parameters:
        participant - the participant that has left the room on its own. (e.g. [email protected]/nick).
      • kicked

        public void kicked​(org.jxmpp.jid.EntityFullJid participant,
                           org.jxmpp.jid.Jid actor,
                           java.lang.String reason)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when a room participant has been kicked from the room. This means that the kicked participant is no longer participating in the room.
        Specified by:
        kicked in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was kicked from the room (e.g. [email protected]/nick).
        actor - the moderator that kicked the occupant from the room (e.g. [email protected]).
        reason - the reason provided by the actor to kick the occupant from the room.
      • voiceGranted

        public void voiceGranted​(org.jxmpp.jid.EntityFullJid participant)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when a moderator grants voice to a visitor. This means that the visitor can now participate in the moderated room sending messages to all occupants.
        Specified by:
        voiceGranted in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was granted voice in the room (e.g. [email protected]/nick).
      • voiceRevoked

        public void voiceRevoked​(org.jxmpp.jid.EntityFullJid participant)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when a moderator revokes voice from a participant. This means that the participant in the room was able to speak and now is a visitor that can't send messages to the room occupants.
        Specified by:
        voiceRevoked in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was revoked voice from the room (e.g. [email protected]/nick).
      • banned

        public void banned​(org.jxmpp.jid.EntityFullJid participant,
                           org.jxmpp.jid.Jid actor,
                           java.lang.String reason)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when an administrator or owner banned a participant from the room. This means that banned participant will no longer be able to join the room unless the ban has been removed.
        Specified by:
        banned in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was banned from the room (e.g. [email protected]/nick).
        actor - the administrator that banned the occupant (e.g. [email protected]).
        reason - the reason provided by the administrator to ban the occupant.
      • membershipGranted

        public void membershipGranted​(org.jxmpp.jid.EntityFullJid participant)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when an administrator grants a user membership to the room. This means that the user will be able to join the members-only room.
        Specified by:
        membershipGranted in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was granted membership in the room (e.g. [email protected]/nick).
      • membershipRevoked

        public void membershipRevoked​(org.jxmpp.jid.EntityFullJid participant)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when an administrator revokes a user membership to the room. This means that the user will not be able to join the members-only room.
        Specified by:
        membershipRevoked in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was revoked membership from the room (e.g. [email protected]/nick).
      • moderatorGranted

        public void moderatorGranted​(org.jxmpp.jid.EntityFullJid participant)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when an administrator grants moderator privileges to a user. This means that the user will be able to kick users, grant and revoke voice, invite other users, modify room's subject plus all the partcipants privileges.
        Specified by:
        moderatorGranted in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was granted moderator privileges in the room (e.g. [email protected]/nick).
      • moderatorRevoked

        public void moderatorRevoked​(org.jxmpp.jid.EntityFullJid participant)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when an administrator revokes moderator privileges from a user. This means that the user will no longer be able to kick users, grant and revoke voice, invite other users, modify room's subject plus all the partcipants privileges.
        Specified by:
        moderatorRevoked in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was revoked moderator privileges in the room (e.g. [email protected]/nick).
      • ownershipGranted

        public void ownershipGranted​(org.jxmpp.jid.EntityFullJid participant)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when an owner grants a user ownership on the room. This means that the user will be able to change defining room features as well as perform all administrative functions.
        Specified by:
        ownershipGranted in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was granted ownership on the room (e.g. [email protected]/nick).
      • ownershipRevoked

        public void ownershipRevoked​(org.jxmpp.jid.EntityFullJid participant)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when an owner revokes a user ownership on the room. This means that the user will no longer be able to change defining room features as well as perform all administrative functions.
        Specified by:
        ownershipRevoked in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was revoked ownership on the room (e.g. [email protected]/nick).
      • adminGranted

        public void adminGranted​(org.jxmpp.jid.EntityFullJid participant)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when an owner grants administrator privileges to a user. This means that the user will be able to perform administrative functions such as banning users and edit moderator list.
        Specified by:
        adminGranted in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was granted administrator privileges (e.g. [email protected]/nick).
      • adminRevoked

        public void adminRevoked​(org.jxmpp.jid.EntityFullJid participant)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when an owner revokes administrator privileges from a user. This means that the user will no longer be able to perform administrative functions such as banning users and edit moderator list.
        Specified by:
        adminRevoked in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was revoked administrator privileges (e.g. [email protected]/nick).
      • nicknameChanged

        public void nicknameChanged​(org.jxmpp.jid.EntityFullJid participant,
                                    org.jxmpp.jid.parts.Resourcepart newNickname)
        Deprecated.
        Description copied from interface: ParticipantStatusListener
        Called when a participant changed his/her nickname in the room. The new participant's nickname will be informed with the next available presence.
        Specified by:
        nicknameChanged in interface ParticipantStatusListener
        Parameters:
        participant - the participant that was revoked administrator privileges (e.g. [email protected]/nick).
        newNickname - the new nickname that the participant decided to use.