Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.irc
Class ChatRoomIrcImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.irc.ChatRoomIrcImpl
All Implemented Interfaces:
ChatRoom

public class ChatRoomIrcImpl
extends Object
implements ChatRoom

Represents a chat channel/room, where multiple chat users could rally and communicate in a many-to-many fashion.

Author:
Stephane Remy, Loic Kempf, Yana Stamcheva

Constructor Summary
ChatRoomIrcImpl(String chatRoomName, ProtocolProviderServiceIrcImpl parentProvider)
          Creates an instance of ChatRoomIrcImpl, by specifying the room name and the protocol provider.
ChatRoomIrcImpl(String chatRoomName, ProtocolProviderServiceIrcImpl parentProvider, boolean isPrivate, boolean isSystem)
          Creates an instance of ChatRoomIrcImpl, by specifying the room name, the protocol provider and the isPrivate property.
 
Method Summary
protected  void addChatRoomMember(String memberID, ChatRoomMember member)
          Adds a ChatRoomMember to the list of members of this chat room.
 void addLocalUserRoleListener(ChatRoomLocalUserRoleListener listener)
          Adds a listener that will be notified of changes in our role in the room such as us being granded operator.
 void addMemberPresenceListener(ChatRoomMemberPresenceListener listener)
          Adds a listener that will be notified of changes in our status in the room such as us being kicked, banned, or granted admin permissions.
 void addMemberPropertyChangeListener(ChatRoomMemberPropertyChangeListener listener)
          Adds the given listener to the list of listeners registered to receive events upon modification of chat room member properties such as its nickname being changed for example.
 void addMemberRoleListener(ChatRoomMemberRoleListener listener)
          Adds a listener that will be notified of changes of a member role in the room such as being granted operator.
 void addMessageListener(ChatRoomMessageListener listener)
          Registers listener so that it would receive events every time a new message is received on this chat room.
 void addPropertyChangeListener(ChatRoomPropertyChangeListener listener)
          Adds listener to the list of listeners registered to receive events upon modification of chat room properties such as its subject for example.
 void banParticipant(ChatRoomMember chatRoomMember, String reason)
          Bans the given ChatRoomMember.
protected  void clearChatRoomMemberList()
          Removes all chat room members from the list.
 Message createMessage(byte[] content, String contentType, String contentEncoding, String subject)
          Create a Message instance for sending arbitrary MIME-encoding content.
 Message createMessage(String messageText)
          Create a Message instance for sending a simple text messages with default (text/plain) content type and encoding.
 void fireMemberPresenceEvent(ChatRoomMember member, ChatRoomMember actorMember, String eventID, String eventReason)
          Creates the corresponding ChatRoomMemberPresenceChangeEvent and notifies all ChatRoomMemberPresenceListeners that a ChatRoomMember has joined or left this ChatRoom.
 void fireMemberPropertyChangeEvent(ChatRoomMemberPropertyChangeEvent evt)
          Delivers the specified event to all registered property change listeners.
 void fireMemberRoleEvent(ChatRoomMember member, ChatRoomMemberRole newRole)
          Creates the corresponding ChatRoomMemberRoleChangeEvent and notifies all ChatRoomMemberRoleListeners that a ChatRoomMember has changed his role in this ChatRoom.
 void fireMessageReceivedEvent(Message message, ChatRoomMember fromMember, long date, int eventType)
          Notifies all interested listeners that a ChatRoomMessageReceivedEvent has been fired.
 void firePropertyChangeEvent(PropertyChangeEvent evt)
          Delivers the specified event to all registered property change listeners.
 Iterator<ChatRoomMember> getBanList()
          Returns the list of banned chat room members.
protected  ChatRoomMember getChatRoomMember(String memberID)
          Returns the ChatRoomMember corresponding to the given member id.
 ChatRoomConfigurationForm getConfigurationForm()
          Returns the ChatRoomConfigurationForm containing all configuration properties for this chat room.
 String getIdentifier()
          Returns the identifier of this ChatRoom.
 List<ChatRoomMember> getMembers()
          Returns a List of ChatRoomMemberss corresponding to all members currently participating in this room.
 int getMembersCount()
          Returns the number of participants that are currently in this chat room.
 String getName()
          Returns the name of this ChatRoom.
 ProtocolProviderService getParentProvider()
          Returns the protocol provider service that created us.
 String getSubject()
          Returns the last known room subject/theme or null if the user hasn't joined the room or the room does not have a subject yet.
 String getUserNickname()
          Returns the local user's nickname in the context of this chat room or null if not currently joined.
 ChatRoomMemberRole getUserRole()
          Returns the local user role.
 void grantAdmin(String address)
          Grants admin role to the participant given by address.
 void grantMembership(String address)
          Grants membership role to the participant given by address.
 void grantModerator(String address)
          Grants moderator role to the participant given by address.
 void grantOwnership(String address)
          Grants ownership role to the participant given by address.
 void grantVoice(String address)
          Grants voice to the participant given by address.
 void invite(String userAddress, String reason)
          Invites another user to this room.
 boolean isJoined()
          Returns true if the local user is currently in the multi user chat (after calling one of the join() methods).
 boolean isPersistent()
          Determines whether this chat room should be stored in the configuration file or not.
 boolean isPrivate()
          Indicates if this chat room is a private one or not.
 boolean isSystem()
          Indicates whether or not this chat room is corresponding to a server channel.
 void join()
          Joins this chat room with the nickname of the local user so that the user would start receiving events and messages for it.
 void join(byte[] password)
          Joins this chat room so that the user would start receiving events and messages for it.
 void joinAs(String nickname)
          Joins this chat room with the specified nickname so that the user would start receiving events and messages for it.
 void joinAs(String nickname, byte[] password)
          Joins this chat room with the specified nickname and password so that the user would start receiving events and messages for it.
 void kickParticipant(ChatRoomMember chatRoomMember, String reason)
          Kicks the given ChatRoomMember.
 void leave()
          Leave this chat room.
protected  void removeChatRoomMember(String memberID)
          Removes a ChatRoomMember from the list of members of this chat room.
 void removelocalUserRoleListener(ChatRoomLocalUserRoleListener listener)
          Removes a listener that was being notified of changes in our role in this chat room such as us being granted operator.
 void removeMemberPresenceListener(ChatRoomMemberPresenceListener listener)
          Removes a listener that was being notified of changes in the status of other chat room participants such as users being kicked, banned, or granted admin permissions.
 void removeMemberPropertyChangeListener(ChatRoomMemberPropertyChangeListener listener)
          Removes the given listener from the list of listeners currently registered for chat room member property change events.
 void removeMemberRoleListener(ChatRoomMemberRoleListener listener)
          Removes a listener that was being notified of changes of a member role in this chat room such as us being granded operator.
 void removeMessageListener(ChatRoomMessageListener listener)
          Removes listener so that it won't receive any further message events from this room.
 void removePropertyChangeListener(ChatRoomPropertyChangeListener listener)
          Removes listener from the list of listeners current registered for chat room modification events.
 void revokeAdmin(String address)
          Revokes the admin role for the participant given by address.
 void revokeMembership(String address)
          Revokes the membership role for the participant given by address.
 void revokeModerator(String address)
          Revokes the moderator role for the participant given by address.
 void revokeOwnership(String address)
          Revokes the ownership role for the participant given by address.
 void revokeVoice(String address)
          Revokes the voice for the participant given by address.
 void sendMessage(Message message)
          Sends the message to the destination indicated by the to contact.
 void setLocalUserRole(ChatRoomMemberRole role)
          Sets the local user role.
protected  void setNickName(String nickName)
          Sets the nickName for this chat room.
 void setSubject(String subject)
          Sets the subject of this chat room.
protected  void setSubjectFromServer(String subject)
          Sets the subject obtained from the server once we're connected.
protected  void setSystem(boolean isSystem)
          Sets whether or not this chat room is corresponding to a server channel.
 void setUserNickname(String nickName)
          Changes the the local user's nickname in the context of this chat room.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatRoomIrcImpl

public ChatRoomIrcImpl(String chatRoomName,
                       ProtocolProviderServiceIrcImpl parentProvider)
Creates an instance of ChatRoomIrcImpl, by specifying the room name and the protocol provider.

Parameters:
chatRoomName - the name of the chat room
parentProvider - the protocol provider

ChatRoomIrcImpl

public ChatRoomIrcImpl(String chatRoomName,
                       ProtocolProviderServiceIrcImpl parentProvider,
                       boolean isPrivate,
                       boolean isSystem)
Creates an instance of ChatRoomIrcImpl, by specifying the room name, the protocol provider and the isPrivate property. Private chat rooms are one-to-one chat rooms.

Parameters:
chatRoomName - the name of the chat room
parentProvider - the protocol provider
isPrivate - indicates if this chat room is a private one
isSystem - indicates if this chat room is a system room
Method Detail

getName

public String getName()
Returns the name of this ChatRoom.

Specified by:
getName in interface ChatRoom
Returns:
a String containing the name of this ChatRoom.

getIdentifier

public String getIdentifier()
Returns the identifier of this ChatRoom.

Specified by:
getIdentifier in interface ChatRoom
Returns:
a String containing the identifier of this ChatRoom.

join

public void join()
          throws OperationFailedException
Joins this chat room with the nickname of the local user so that the user would start receiving events and messages for it.

Specified by:
join in interface ChatRoom
Throws:
OperationFailedException - with the corresponding code if an error occurs while joining the room.

join

public void join(byte[] password)
          throws OperationFailedException
Joins this chat room so that the user would start receiving events and messages for it. The method uses the nickname of the local user and the specified password in order to enter the chatroom.

Specified by:
join in interface ChatRoom
Parameters:
password - the password to use when authenticating on the chatroom.
Throws:
OperationFailedException - with the corresponding code if an error occurs while joining the room.

joinAs

public void joinAs(String nickname)
            throws OperationFailedException
Joins this chat room with the specified nickname so that the user would start receiving events and messages for it. If the chat room already contains a user with this nickname, the method would throw an OperationFailedException with code IDENTIFICATION_CONFLICT.

Specified by:
joinAs in interface ChatRoom
Parameters:
nickname - the nickname to use.
Throws:
OperationFailedException - with the corresponding code if an error occurs while joining the room.

joinAs

public void joinAs(String nickname,
                   byte[] password)
            throws OperationFailedException
Joins this chat room with the specified nickname and password so that the user would start receiving events and messages for it. If the chatroom already contains a user with this nickname, the method would throw an OperationFailedException with code IDENTIFICATION_CONFLICT.

Specified by:
joinAs in interface ChatRoom
Parameters:
nickname - the nickname to use.
password - a password necessary to authenticate when joining the room.
Throws:
OperationFailedException - with the corresponding code if an error occurs while joining the room.

isJoined

public boolean isJoined()
Returns true if the local user is currently in the multi user chat (after calling one of the join() methods).

Specified by:
isJoined in interface ChatRoom
Returns:
true if currently we're currently in this chat room and false otherwise.

leave

public void leave()
Leave this chat room. Once this method is called, the user won't be listed as a member of the chat room any more and no further chat events will be delivered. Depending on the underlying protocol and implementation leave() might cause the room to be destroyed if it has been created by the local user.

Specified by:
leave in interface ChatRoom

getBanList

public Iterator<ChatRoomMember> getBanList()
                                    throws OperationFailedException
Returns the list of banned chat room members.

Specified by:
getBanList in interface ChatRoom
Returns:
the list of banned chat room members.
Throws:
OperationFailedException - if we are not joined or we don't have enough privileges to obtain the ban list.

banParticipant

public void banParticipant(ChatRoomMember chatRoomMember,
                           String reason)
                    throws OperationFailedException
Bans the given ChatRoomMember.

Specified by:
banParticipant in interface ChatRoom
Parameters:
chatRoomMember - the chat room member to ban
reason - the reason of the ban
Throws:
OperationFailedException - if we are not joined or we don't have enough privileges to ban a participant.

kickParticipant

public void kickParticipant(ChatRoomMember chatRoomMember,
                            String reason)
                     throws OperationFailedException
Kicks the given ChatRoomMember.

Specified by:
kickParticipant in interface ChatRoom
Parameters:
chatRoomMember - the chat room member to kick
reason - the reason of the kick
Throws:
OperationFailedException - if we are not joined or we don't have enough privileges to kick a participant.

getConfigurationForm

public ChatRoomConfigurationForm getConfigurationForm()
                                               throws OperationFailedException
Returns the ChatRoomConfigurationForm containing all configuration properties for this chat room. If the user doesn't have permissions to see and change chat room configuration an OperationFailedException is thrown.

Specified by:
getConfigurationForm in interface ChatRoom
Returns:
the ChatRoomConfigurationForm containing all configuration properties for this chat room
Throws:
OperationFailedException - if the user doesn't have permissions to see and change chat room configuration

addPropertyChangeListener

public void addPropertyChangeListener(ChatRoomPropertyChangeListener listener)
Adds listener to the list of listeners registered to receive events upon modification of chat room properties such as its subject for example.

Specified by:
addPropertyChangeListener in interface ChatRoom
Parameters:
listener - ChatRoomChangeListener

removePropertyChangeListener

public void removePropertyChangeListener(ChatRoomPropertyChangeListener listener)
Removes listener from the list of listeners current registered for chat room modification events.

Specified by:
removePropertyChangeListener in interface ChatRoom
Parameters:
listener - the ChatRoomChangeListener to remove.

addMemberPropertyChangeListener

public void addMemberPropertyChangeListener(ChatRoomMemberPropertyChangeListener listener)
Adds the given listener to the list of listeners registered to receive events upon modification of chat room member properties such as its nickname being changed for example.

Specified by:
addMemberPropertyChangeListener in interface ChatRoom
Parameters:
listener - the ChatRoomMemberPropertyChangeListener that is to be registered for ChatRoomMemberPropertyChangeEvents.

removeMemberPropertyChangeListener

public void removeMemberPropertyChangeListener(ChatRoomMemberPropertyChangeListener listener)
Removes the given listener from the list of listeners currently registered for chat room member property change events.

Specified by:
removeMemberPropertyChangeListener in interface ChatRoom
Parameters:
listener - the ChatRoomMemberPropertyChangeListener to remove.

addMemberRoleListener

public void addMemberRoleListener(ChatRoomMemberRoleListener listener)
Adds a listener that will be notified of changes of a member role in the room such as being granted operator.

Specified by:
addMemberRoleListener in interface ChatRoom
Parameters:
listener - a member role listener.

removeMemberRoleListener

public void removeMemberRoleListener(ChatRoomMemberRoleListener listener)
Removes a listener that was being notified of changes of a member role in this chat room such as us being granded operator.

Specified by:
removeMemberRoleListener in interface ChatRoom
Parameters:
listener - a member role listener.

addLocalUserRoleListener

public void addLocalUserRoleListener(ChatRoomLocalUserRoleListener listener)
Adds a listener that will be notified of changes in our role in the room such as us being granded operator.

Specified by:
addLocalUserRoleListener in interface ChatRoom
Parameters:
listener - a local user role listener.

removelocalUserRoleListener

public void removelocalUserRoleListener(ChatRoomLocalUserRoleListener listener)
Removes a listener that was being notified of changes in our role in this chat room such as us being granted operator.

Specified by:
removelocalUserRoleListener in interface ChatRoom
Parameters:
listener - a local user role listener.

getSubject

public String getSubject()
Returns the last known room subject/theme or null if the user hasn't joined the room or the room does not have a subject yet.

To be notified every time the room's subject change you should add a ChatRoomPropertyChangelistener to this room.

To change the room's subject use setSubject(String).

Specified by:
getSubject in interface ChatRoom
Returns:
the room subject or null if the user hasn't joined the room or the room does not have a subject yet.

setSubject

public void setSubject(String subject)
                throws OperationFailedException
Sets the subject of this chat room. If the user does not have the right to change the room subject, or the protocol does not support this, or the operation fails for some other reason, the method throws an OperationFailedException with the corresponding code.

Specified by:
setSubject in interface ChatRoom
Parameters:
subject - the new subject that we'd like this room to have
Throws:
OperationFailedException - thrown if the user is not joined to the channel or if he/she doesn't have enough privileges to change the topic or if the topic is null.

getUserNickname

public String getUserNickname()
Returns the local user's nickname in the context of this chat room or null if not currently joined.

Specified by:
getUserNickname in interface ChatRoom
Returns:
the nickname currently being used by the local user in the context of the local chat room.

setUserNickname

public void setUserNickname(String nickName)
                     throws OperationFailedException
Changes the the local user's nickname in the context of this chat room. If the operation is not supported by the underlying implementation, the method throws an OperationFailedException with the corresponding code.

Specified by:
setUserNickname in interface ChatRoom
Parameters:
nickName - the new nickname within the room.
Throws:
OperationFailedException - if the setting the new nickname changes for some reason.

addMemberPresenceListener

public void addMemberPresenceListener(ChatRoomMemberPresenceListener listener)
Adds a listener that will be notified of changes in our status in the room such as us being kicked, banned, or granted admin permissions.

Specified by:
addMemberPresenceListener in interface ChatRoom
Parameters:
listener - a participant status listener.

removeMemberPresenceListener

public void removeMemberPresenceListener(ChatRoomMemberPresenceListener listener)
Removes a listener that was being notified of changes in the status of other chat room participants such as users being kicked, banned, or granted admin permissions.

Specified by:
removeMemberPresenceListener in interface ChatRoom
Parameters:
listener - a participant status listener.

addMessageListener

public void addMessageListener(ChatRoomMessageListener listener)
Registers listener so that it would receive events every time a new message is received on this chat room.

Specified by:
addMessageListener in interface ChatRoom
Parameters:
listener - a MessageListener that would be notified every time a new message is received on this chat room.

removeMessageListener

public void removeMessageListener(ChatRoomMessageListener listener)
Removes listener so that it won't receive any further message events from this room.

Specified by:
removeMessageListener in interface ChatRoom
Parameters:
listener - the MessageListener to remove from this room

addChatRoomMember

protected void addChatRoomMember(String memberID,
                                 ChatRoomMember member)
Adds a ChatRoomMember to the list of members of this chat room.

Parameters:
memberID - the identifier of the member
member - the ChatRoomMember to add.

removeChatRoomMember

protected void removeChatRoomMember(String memberID)
Removes a ChatRoomMember from the list of members of this chat room.

Parameters:
memberID - the name of the ChatRoomMember to remove.

getChatRoomMember

protected ChatRoomMember getChatRoomMember(String memberID)
Returns the ChatRoomMember corresponding to the given member id. If no member is found for the given id, returns NULL.

Parameters:
memberID - the identifier of the member
Returns:
the ChatRoomMember corresponding to the given member id.

clearChatRoomMemberList

protected void clearChatRoomMemberList()
Removes all chat room members from the list.


invite

public void invite(String userAddress,
                   String reason)
Invites another user to this room. If we're not joined nothing will happen.

Specified by:
invite in interface ChatRoom
Parameters:
userAddress - the address of the user to invite to the room.(one may also invite users not on their contact list).
reason - a reason, subject, or welcome message that would tell the the user why they are being invited.

getMembers

public List<ChatRoomMember> getMembers()
Returns a List of ChatRoomMemberss corresponding to all members currently participating in this room.

Specified by:
getMembers in interface ChatRoom
Returns:
a List of Contact corresponding to all room members.

getMembersCount

public int getMembersCount()
Returns the number of participants that are currently in this chat room.

Specified by:
getMembersCount in interface ChatRoom
Returns:
the number of Contacts, currently participating in this room.

createMessage

public Message createMessage(byte[] content,
                             String contentType,
                             String contentEncoding,
                             String subject)
Create a Message instance for sending arbitrary MIME-encoding content.

Specified by:
createMessage in interface ChatRoom
Parameters:
content - content value
contentType - the MIME-type for content
contentEncoding - encoding used for content
subject - a String subject or null for now subject.
Returns:
the newly created message.

createMessage

public Message createMessage(String messageText)
Create a Message instance for sending a simple text messages with default (text/plain) content type and encoding.

Specified by:
createMessage in interface ChatRoom
Parameters:
messageText - the string content of the message.
Returns:
Message the newly created message

sendMessage

public void sendMessage(Message message)
                 throws OperationFailedException
Sends the message to the destination indicated by the to contact.

Specified by:
sendMessage in interface ChatRoom
Parameters:
message - the Message to send.
Throws:
OperationFailedException - if the underlying stack is not registered or initialized or if the chat room is not joined.

getParentProvider

public ProtocolProviderService getParentProvider()
Returns the protocol provider service that created us.

Specified by:
getParentProvider in interface ChatRoom
Returns:
the protocol provider service that created us.

fireMessageReceivedEvent

public void fireMessageReceivedEvent(Message message,
                                     ChatRoomMember fromMember,
                                     long date,
                                     int eventType)
Notifies all interested listeners that a ChatRoomMessageReceivedEvent has been fired.

Parameters:
message - the received message
fromMember - the ChatRoomMember, which is the sender of the message
date - the time at which the message has been received
eventType - the type of the received event. One of the XXX_MESSAGE_RECEIVED constants declared in the ChatRoomMessageReceivedEvent class.

firePropertyChangeEvent

public void firePropertyChangeEvent(PropertyChangeEvent evt)
Delivers the specified event to all registered property change listeners.

Parameters:
evt - the PropertyChangeEvent that we'd like delivered to all registered property change listeners.

fireMemberPropertyChangeEvent

public void fireMemberPropertyChangeEvent(ChatRoomMemberPropertyChangeEvent evt)
Delivers the specified event to all registered property change listeners.

Parameters:
evt - the ChatRoomMemberPropertyChangeEvent that we'd like deliver to all registered member property change listeners.

fireMemberPresenceEvent

public void fireMemberPresenceEvent(ChatRoomMember member,
                                    ChatRoomMember actorMember,
                                    String eventID,
                                    String eventReason)
Creates the corresponding ChatRoomMemberPresenceChangeEvent and notifies all ChatRoomMemberPresenceListeners that a ChatRoomMember has joined or left this ChatRoom.

Parameters:
member - the ChatRoomMember that this event is about
actorMember - a member that act in the event (for example the kicker in a member kicked event)
eventID - the identifier of the event
eventReason - the reason of the event

fireMemberRoleEvent

public void fireMemberRoleEvent(ChatRoomMember member,
                                ChatRoomMemberRole newRole)
Creates the corresponding ChatRoomMemberRoleChangeEvent and notifies all ChatRoomMemberRoleListeners that a ChatRoomMember has changed his role in this ChatRoom.

Parameters:
member - the ChatRoomMember that this event is about
newRole - the new role of the given member

isPrivate

public boolean isPrivate()
Indicates if this chat room is a private one or not. Private chat rooms are created with the query command.

Returns:
true if this chat room is private and false otherwise.

isSystem

public boolean isSystem()
Indicates whether or not this chat room is corresponding to a server channel.

Specified by:
isSystem in interface ChatRoom
Returns:
true to indicate that this chat room is corresponding to a server channel, false - otherwise.

setSystem

protected void setSystem(boolean isSystem)
Sets whether or not this chat room is corresponding to a server channel.

Parameters:
isSystem - true to indicate that this chat room is corresponding to a server channel, false - otherwise.

setNickName

protected void setNickName(String nickName)
Sets the nickName for this chat room.

Parameters:
nickName - the nick name to set

setSubjectFromServer

protected void setSubjectFromServer(String subject)
Sets the subject obtained from the server once we're connected.

Parameters:
subject - the subject to set

isPersistent

public boolean isPersistent()
Determines whether this chat room should be stored in the configuration file or not. If the chat room is persistent it still will be shown after a restart in the chat room list. A non-persistent chat room will be only in the chat room list until the the program is running.

Specified by:
isPersistent in interface ChatRoom
Returns:
true if this chat room is persistent, false otherwise

getUserRole

public ChatRoomMemberRole getUserRole()
Returns the local user role.

Specified by:
getUserRole in interface ChatRoom
Returns:
the local user role

setLocalUserRole

public void setLocalUserRole(ChatRoomMemberRole role)
                      throws OperationFailedException
Sets the local user role.

Specified by:
setLocalUserRole in interface ChatRoom
Parameters:
role - the role to set
Throws:
OperationFailedException - if the operation don't succeed

grantAdmin

public void grantAdmin(String address)
Grants admin role to the participant given by address.

Specified by:
grantAdmin in interface ChatRoom
Parameters:
address - the address of the participant to grant admin role to

grantMembership

public void grantMembership(String address)
Grants membership role to the participant given by address.

Specified by:
grantMembership in interface ChatRoom
Parameters:
address - the address of the participant to grant membership role to

grantModerator

public void grantModerator(String address)
Grants moderator role to the participant given by address.

Specified by:
grantModerator in interface ChatRoom
Parameters:
address - the address of the participant to grant moderator role to

grantOwnership

public void grantOwnership(String address)
Grants ownership role to the participant given by address.

Specified by:
grantOwnership in interface ChatRoom
Parameters:
address - the address of the participant to grant ownership role to

grantVoice

public void grantVoice(String address)
Grants voice to the participant given by address.

Specified by:
grantVoice in interface ChatRoom
Parameters:
address - the address of the participant to grant voice to

revokeAdmin

public void revokeAdmin(String address)
Revokes the admin role for the participant given by address.

Specified by:
revokeAdmin in interface ChatRoom
Parameters:
address - the address of the participant to revoke admin role for

revokeMembership

public void revokeMembership(String address)
Revokes the membership role for the participant given by address.

Specified by:
revokeMembership in interface ChatRoom
Parameters:
address - the address of the participant to revoke membership role for

revokeModerator

public void revokeModerator(String address)
Revokes the moderator role for the participant given by address.

Specified by:
revokeModerator in interface ChatRoom
Parameters:
address - the address of the participant to revoke moderator role for

revokeOwnership

public void revokeOwnership(String address)
Revokes the ownership role for the participant given by address.

Specified by:
revokeOwnership in interface ChatRoom
Parameters:
address - the address of the participant to revoke ownership role for

revokeVoice

public void revokeVoice(String address)
Revokes the voice for the participant given by address.

Specified by:
revokeVoice in interface ChatRoom
Parameters:
address - the address of the participant to revoke voice for

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.