|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.protocol.AbstractOperationSetMultiUserChat
net.java.sip.communicator.impl.protocol.jabber.OperationSetMultiUserChatJabberImpl
public class OperationSetMultiUserChatJabberImpl
A jabber implementation of the multi user chat operation set.
| Constructor Summary | |
|---|---|
OperationSetMultiUserChatJabberImpl(ProtocolProviderServiceJabberImpl jabberProvider)
Instantiates the user operation set with a currently valid instance of the Jabber protocol provider. |
|
| Method Summary | |
|---|---|
void |
contactModified(ContactPropertyChangeEvent evt)
Updates corresponding chat room members when a contact has been modified in our contact list. |
ChatRoom |
createChatRoom(String roomName,
Map<String,Object> roomProperties)
Creates a room with the named roomName and according to the specified roomProperties on the server that this protocol provider is currently connected to. |
ChatRoom |
findRoom(String roomName)
Returns a reference to a chatRoom named roomName or null if that room does not exist. |
void |
fireInvitationEvent(ChatRoom targetChatRoom,
String inviter,
String reason,
byte[] password)
Delivers a ChatRoomInvitationReceivedEvent to all registered ChatRoomInvitationListeners. |
ChatRoomJabberImpl |
getChatRoom(String chatRoomName)
Returns a reference to the chat room named chatRoomName or null if the room hasn't been cached yet. |
List<ChatRoom> |
getCurrentlyJoinedChatRooms()
Returns a list of the chat rooms that we have joined and are currently active in. |
List<String> |
getCurrentlyJoinedChatRooms(ChatRoomMember chatRoomMember)
Returns the list of currently joined chat rooms for chatRoomMember. |
List<String> |
getExistingChatRooms()
Returns the List of Strings indicating chat rooms currently available on the server that this protocol provider is connected to. |
boolean |
isMultiChatSupportedByContact(Contact contact)
Returns true if contact supports multi user chat sessions. |
void |
rejectInvitation(ChatRoomInvitation invitation,
String rejectReason)
Informs the sender of an invitation that we decline their invitation. |
void |
subscriptionCreated(SubscriptionEvent evt)
Updates corresponding chat room members when a contact has been created in our contact list. |
void |
subscriptionFailed(SubscriptionEvent evt)
Not interested in this event for our member update purposes. |
void |
subscriptionMoved(SubscriptionMovedEvent evt)
Not interested in this event for our member update purposes. |
void |
subscriptionRemoved(SubscriptionEvent evt)
Updates corresponding chat room members when a contact has been removed from our contact list. |
void |
subscriptionResolved(SubscriptionEvent evt)
Not interested in this event for our member update purposes. |
| Methods inherited from class net.java.sip.communicator.service.protocol.AbstractOperationSetMultiUserChat |
|---|
addInvitationListener, addInvitationRejectionListener, addPresenceListener, fireInvitationReceived, fireInvitationRejectedEvent, fireLocalUserPresenceEvent, removeInvitationListener, removeInvitationRejectionListener, removePresenceListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
OperationSetMultiUserChatJabberImpl(ProtocolProviderServiceJabberImpl jabberProvider)
jabberProvider - a currently valid instance of
ProtocolProviderServiceJabberImpl.| Method Detail |
|---|
public ChatRoom createChatRoom(String roomName,
Map<String,Object> roomProperties)
throws OperationFailedException,
OperationNotSupportedException
createChatRoom in interface OperationSetMultiUserChatroomName - the name of the ChatRoom to create.roomProperties - properties specifying how the room should be
created.
OperationFailedException - if the room couldn't be created for
some reason (e.g. room already exists; user already joined to an
existent room or user has no permissions to create a chat room).
OperationNotSupportedException - if chat room creation is not
supported by this server
public ChatRoom findRoom(String roomName)
throws OperationFailedException,
OperationNotSupportedException
findRoom in interface OperationSetMultiUserChatroomName - the name of the ChatRoom that we're looking
for.
OperationFailedException - if an error occurs while trying to
discover the room on the server.
OperationNotSupportedException - if the server does not support
multi user chatpublic List<ChatRoom> getCurrentlyJoinedChatRooms()
getCurrentlyJoinedChatRooms in interface OperationSetMultiUserChat
public List<String> getExistingChatRooms()
throws OperationFailedException,
OperationNotSupportedException
getExistingChatRooms in interface OperationSetMultiUserChatOperationFailedException - if we faile retrieving this list from
the server.
OperationNotSupportedException - if the server does not support
multi user chatpublic boolean isMultiChatSupportedByContact(Contact contact)
isMultiChatSupportedByContact in interface OperationSetMultiUserChatcontact - reference to the contact whose support for chat rooms
we are currently querying.
public void rejectInvitation(ChatRoomInvitation invitation,
String rejectReason)
rejectInvitation in interface OperationSetMultiUserChatinvitation - the connection to use for sending the rejection.rejectReason - the reason to reject the given invitationpublic ChatRoomJabberImpl getChatRoom(String chatRoomName)
chatRoomName - the name of the room we're looking for.
public List<String> getCurrentlyJoinedChatRooms(ChatRoomMember chatRoomMember)
throws OperationFailedException,
OperationNotSupportedException
getCurrentlyJoinedChatRooms in interface OperationSetMultiUserChatchatRoomMember - the member we're looking for
OperationFailedException - if the operation fails
OperationNotSupportedException - if the operation is not supported
public void fireInvitationEvent(ChatRoom targetChatRoom,
String inviter,
String reason,
byte[] password)
targetChatRoom - the room that invitation refers toinviter - the inviter that sent the invitationreason - the reason why the inviter sent the invitationpassword - the password to use when joining the roompublic void contactModified(ContactPropertyChangeEvent evt)
contactModified in interface SubscriptionListenerevt - the SubscriptionEvent that notified uspublic void subscriptionCreated(SubscriptionEvent evt)
subscriptionCreated in interface SubscriptionListenerevt - the SubscriptionEvent that notified uspublic void subscriptionFailed(SubscriptionEvent evt)
subscriptionFailed in interface SubscriptionListenerevt - the SubscriptionEvent that notified uspublic void subscriptionMoved(SubscriptionMovedEvent evt)
subscriptionMoved in interface SubscriptionListenerevt - the SubscriptionEvent that notified uspublic void subscriptionRemoved(SubscriptionEvent evt)
subscriptionRemoved in interface SubscriptionListenerevt - the SubscriptionEvent that notified uspublic void subscriptionResolved(SubscriptionEvent evt)
subscriptionResolved in interface SubscriptionListenerevt - the SubscriptionEvent that notified us
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||