public class DefaultParticipantStatusListener extends java.lang.Object implements ParticipantStatusListener
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.
| Constructor and Description |
|---|
DefaultParticipantStatusListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
adminGranted(org.jxmpp.jid.FullJid participant)
Called when an owner grants administrator privileges to a user.
|
void |
adminRevoked(org.jxmpp.jid.FullJid participant)
Called when an owner revokes administrator privileges from a user.
|
void |
banned(org.jxmpp.jid.FullJid participant,
org.jxmpp.jid.Jid actor,
java.lang.String reason)
Called when an administrator or owner banned a participant from the room.
|
void |
joined(org.jxmpp.jid.FullJid participant)
Called when a new room occupant has joined the room.
|
void |
kicked(org.jxmpp.jid.FullJid participant,
org.jxmpp.jid.Jid actor,
java.lang.String reason)
Called when a room participant has been kicked from the room.
|
void |
left(org.jxmpp.jid.FullJid participant)
Called when a room occupant has left the room on its own.
|
void |
membershipGranted(org.jxmpp.jid.FullJid participant)
Called when an administrator grants a user membership to the room.
|
void |
membershipRevoked(org.jxmpp.jid.FullJid participant)
Called when an administrator revokes a user membership to the room.
|
void |
moderatorGranted(org.jxmpp.jid.FullJid participant)
Called when an administrator grants moderator privileges to a user.
|
void |
moderatorRevoked(org.jxmpp.jid.FullJid participant)
Called when an administrator revokes moderator privileges from a user.
|
void |
nicknameChanged(org.jxmpp.jid.FullJid participant,
org.jxmpp.jid.parts.Resourcepart newNickname)
Called when a participant changed his/her nickname in the room.
|
void |
ownershipGranted(org.jxmpp.jid.FullJid participant)
Called when an owner grants a user ownership on the room.
|
void |
ownershipRevoked(org.jxmpp.jid.FullJid participant)
Called when an owner revokes a user ownership on the room.
|
void |
voiceGranted(org.jxmpp.jid.FullJid participant)
Called when a moderator grants voice to a visitor.
|
void |
voiceRevoked(org.jxmpp.jid.FullJid participant)
Called when a moderator revokes voice from a participant.
|
public void joined(org.jxmpp.jid.FullJid participant)
ParticipantStatusListenerjoined in interface ParticipantStatusListenerparticipant - the participant that has just joined the room
(e.g. room@conference.jabber.org/nick).public void left(org.jxmpp.jid.FullJid participant)
ParticipantStatusListenerleft in interface ParticipantStatusListenerparticipant - the participant that has left the room on its own.
(e.g. room@conference.jabber.org/nick).public void kicked(org.jxmpp.jid.FullJid participant,
org.jxmpp.jid.Jid actor,
java.lang.String reason)
ParticipantStatusListenerkicked in interface ParticipantStatusListenerparticipant - the participant that was kicked from the room
(e.g. room@conference.jabber.org/nick).actor - the moderator that kicked the occupant from the room (e.g. user@host.org).reason - the reason provided by the actor to kick the occupant from the room.public void voiceGranted(org.jxmpp.jid.FullJid participant)
ParticipantStatusListenervoiceGranted in interface ParticipantStatusListenerparticipant - the participant that was granted voice in the room
(e.g. room@conference.jabber.org/nick).public void voiceRevoked(org.jxmpp.jid.FullJid participant)
ParticipantStatusListenervoiceRevoked in interface ParticipantStatusListenerparticipant - the participant that was revoked voice from the room
(e.g. room@conference.jabber.org/nick).public void banned(org.jxmpp.jid.FullJid participant,
org.jxmpp.jid.Jid actor,
java.lang.String reason)
ParticipantStatusListenerbanned in interface ParticipantStatusListenerparticipant - the participant that was banned from the room
(e.g. room@conference.jabber.org/nick).actor - the administrator that banned the occupant (e.g. user@host.org).reason - the reason provided by the administrator to ban the occupant.public void membershipGranted(org.jxmpp.jid.FullJid participant)
ParticipantStatusListenermembershipGranted in interface ParticipantStatusListenerparticipant - the participant that was granted membership in the room
(e.g. room@conference.jabber.org/nick).public void membershipRevoked(org.jxmpp.jid.FullJid participant)
ParticipantStatusListenermembershipRevoked in interface ParticipantStatusListenerparticipant - the participant that was revoked membership from the room
(e.g. room@conference.jabber.org/nick).public void moderatorGranted(org.jxmpp.jid.FullJid participant)
ParticipantStatusListenermoderatorGranted in interface ParticipantStatusListenerparticipant - the participant that was granted moderator privileges in the room
(e.g. room@conference.jabber.org/nick).public void moderatorRevoked(org.jxmpp.jid.FullJid participant)
ParticipantStatusListenermoderatorRevoked in interface ParticipantStatusListenerparticipant - the participant that was revoked moderator privileges in the room
(e.g. room@conference.jabber.org/nick).public void ownershipGranted(org.jxmpp.jid.FullJid participant)
ParticipantStatusListenerownershipGranted in interface ParticipantStatusListenerparticipant - the participant that was granted ownership on the room
(e.g. room@conference.jabber.org/nick).public void ownershipRevoked(org.jxmpp.jid.FullJid participant)
ParticipantStatusListenerownershipRevoked in interface ParticipantStatusListenerparticipant - the participant that was revoked ownership on the room
(e.g. room@conference.jabber.org/nick).public void adminGranted(org.jxmpp.jid.FullJid participant)
ParticipantStatusListeneradminGranted in interface ParticipantStatusListenerparticipant - the participant that was granted administrator privileges
(e.g. room@conference.jabber.org/nick).public void adminRevoked(org.jxmpp.jid.FullJid participant)
ParticipantStatusListeneradminRevoked in interface ParticipantStatusListenerparticipant - the participant that was revoked administrator privileges
(e.g. room@conference.jabber.org/nick).public void nicknameChanged(org.jxmpp.jid.FullJid participant,
org.jxmpp.jid.parts.Resourcepart newNickname)
ParticipantStatusListenernicknameChanged in interface ParticipantStatusListenerparticipant - the participant that was revoked administrator privileges
(e.g. room@conference.jabber.org/nick).newNickname - the new nickname that the participant decided to use.