Smack

org.jivesoftware.smackx.muc
Class DefaultUserStatusListener

java.lang.Object
  extended by org.jivesoftware.smackx.muc.DefaultUserStatusListener
All Implemented Interfaces:
UserStatusListener

public class DefaultUserStatusListener
extends java.lang.Object
implements UserStatusListener

Default implementation of the UserStatusListener 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.

Author:
Gaston Dombiak

Constructor Summary
DefaultUserStatusListener()
           
 
Method Summary
 void adminGranted()
          Called when an owner grants administrator privileges to your user.
 void adminRevoked()
          Called when an owner revokes administrator privileges from your user.
 void banned(java.lang.String actor, java.lang.String reason)
          Called when an administrator or owner banned your user from the room.
 void kicked(java.lang.String actor, java.lang.String reason)
          Called when a moderator kicked your user from the room.
 void membershipGranted()
          Called when an administrator grants your user membership to the room.
 void membershipRevoked()
          Called when an administrator revokes your user membership to the room.
 void moderatorGranted()
          Called when an administrator grants moderator privileges to your user.
 void moderatorRevoked()
          Called when an administrator revokes moderator privileges from your user.
 void ownershipGranted()
          Called when an owner grants to your user ownership on the room.
 void ownershipRevoked()
          Called when an owner revokes from your user ownership on the room.
 void voiceGranted()
          Called when a moderator grants voice to your user.
 void voiceRevoked()
          Called when a moderator revokes voice from your user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUserStatusListener

public DefaultUserStatusListener()
Method Detail

kicked

public void kicked(java.lang.String actor,
                   java.lang.String reason)
Description copied from interface: UserStatusListener
Called when a moderator kicked your user from the room. This means that you are no longer participanting in the room.

Specified by:
kicked in interface UserStatusListener
Parameters:
actor - the moderator that kicked your user from the room (e.g. user@host.org).
reason - the reason provided by the actor to kick you from the room.

voiceGranted

public void voiceGranted()
Description copied from interface: UserStatusListener
Called when a moderator grants voice to your user. This means that you were a visitor in the moderated room before and now you can participate in the room by sending messages to all occupants.

Specified by:
voiceGranted in interface UserStatusListener

voiceRevoked

public void voiceRevoked()
Description copied from interface: UserStatusListener
Called when a moderator revokes voice from your user. This means that you were a participant in the room able to speak and now you are a visitor that can't send messages to the room occupants.

Specified by:
voiceRevoked in interface UserStatusListener

banned

public void banned(java.lang.String actor,
                   java.lang.String reason)
Description copied from interface: UserStatusListener
Called when an administrator or owner banned your user from the room. This means that you will no longer be able to join the room unless the ban has been removed.

Specified by:
banned in interface UserStatusListener
Parameters:
actor - the administrator that banned your user (e.g. user@host.org).
reason - the reason provided by the administrator to banned you.

membershipGranted

public void membershipGranted()
Description copied from interface: UserStatusListener
Called when an administrator grants your user membership to the room. This means that you will be able to join the members-only room.

Specified by:
membershipGranted in interface UserStatusListener

membershipRevoked

public void membershipRevoked()
Description copied from interface: UserStatusListener
Called when an administrator revokes your user membership to the room. This means that you will not be able to join the members-only room.

Specified by:
membershipRevoked in interface UserStatusListener

moderatorGranted

public void moderatorGranted()
Description copied from interface: UserStatusListener
Called when an administrator grants moderator privileges to your user. This means that you 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 UserStatusListener

moderatorRevoked

public void moderatorRevoked()
Description copied from interface: UserStatusListener
Called when an administrator revokes moderator privileges from your user. This means that you 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 UserStatusListener

ownershipGranted

public void ownershipGranted()
Description copied from interface: UserStatusListener
Called when an owner grants to your user ownership on the room. This means that you will be able to change defining room features as well as perform all administrative functions.

Specified by:
ownershipGranted in interface UserStatusListener

ownershipRevoked

public void ownershipRevoked()
Description copied from interface: UserStatusListener
Called when an owner revokes from your user ownership on the room. This means that you will no longer be able to change defining room features as well as perform all administrative functions.

Specified by:
ownershipRevoked in interface UserStatusListener

adminGranted

public void adminGranted()
Description copied from interface: UserStatusListener
Called when an owner grants administrator privileges to your user. This means that you will be able to perform administrative functions such as banning users and edit moderator list.

Specified by:
adminGranted in interface UserStatusListener

adminRevoked

public void adminRevoked()
Description copied from interface: UserStatusListener
Called when an owner revokes administrator privileges from your user. This means that you will no longer be able to perform administrative functions such as banning users and edit moderator list.

Specified by:
adminRevoked in interface UserStatusListener

Smack

Copyright © 2003-2007 Jive Software.