public class ConferenceChatSession extends ChatSession implements ChatRoomMemberPresenceListener, ChatRoomPropertyChangeListener, ChatRoomConferencePublishedListener
chatHistoryFilter, chatParticipants, chatTransports, persistableAddress
Constructor and Description |
---|
ConferenceChatSession(ChatSessionRenderer sessionRenderer,
ChatRoomWrapper chatRoomWrapper)
Creates an instance of ConferenceChatSession, by specifying the
sessionRenderer to be used for communication with the UI and the chatRoom
corresponding to this conference session.
|
Modifier and Type | Method and Description |
---|---|
void |
addLocalUserRoleListener(ChatRoomLocalUserRoleListener l)
Adds the given ChatRoomLocalUserRoleListener to the contained
chat room role listeners.
|
void |
addMemberRoleListener(ChatRoomMemberRoleListener l)
Adds the given ChatRoomMemberRoleListener to the contained
chat room role listeners.
|
void |
chatRoomPropertyChanged(ChatRoomPropertyChangeEvent evt)
Updates the chat panel when a property of the chat room has been modified.
|
void |
chatRoomPropertyChangeFailed(ChatRoomPropertyChangeFailedEvent event)
Called to indicate that a change of a chat room property has failed.
|
void |
conferencePublished(ChatRoomConferencePublishedEvent evt)
Acts upon a ChatRoomConferencePublishedEvent, dispatched when
a member of a chat room publishes a ConferenceDescription.
|
void |
dispose()
Disposes this chat session.
|
byte[] |
getChatAvatar()
Returns the avatar icon of this chat session.
|
ChatRoomConfigurationForm |
getChatConfigurationForm()
Returns the configuration form corresponding to the chat room.
|
java.lang.String |
getChatName()
Returns the name of the chat room.
|
ChatSessionRenderer |
getChatSessionRenderer()
Returns the ChatSessionRenderer that provides the connection
between this chat session and its UI.
|
javax.swing.ImageIcon |
getChatStatusIcon()
Implements the ChatPanel.getChatStatusIcon method.
|
java.lang.String |
getChatSubject()
Returns the subject of the chat room.
|
ChatTransport |
getCurrentChatTransport()
Returns the currently used transport for all operation within this chat
session.
|
java.lang.String |
getDefaultSmsNumber()
Returns the default mobile number used to send sms-es in this session.
|
java.lang.Object |
getDescriptor()
Returns the descriptor of this chat session.
|
java.util.Collection<java.lang.Object> |
getHistory(int count)
Returns a collection of the last N number of messages given by count.
|
java.util.Collection<java.lang.Object> |
getHistoryAfterDate(java.util.Date date,
int count)
Returns a collection of the last N number of messages given by count.
|
java.util.Collection<java.lang.Object> |
getHistoryBeforeDate(java.util.Date date,
int count)
Returns a collection of the last N number of messages given by count.
|
java.util.Date |
getHistoryEndDate()
Returns the end date of the history of this chat session.
|
java.util.Date |
getHistoryStartDate()
Returns the start date of the history of this chat session.
|
boolean |
isContactListSupported()
Indicates if the contact list is supported by this session.
|
boolean |
isDescriptorPersistent()
Returns
true if this contact is persistent, otherwise
returns false . |
void |
loadChatRoom(ChatRoom chatRoom)
Loads the given chat room in the this chat conference panel.
|
void |
memberPresenceChanged(ChatRoomMemberPresenceChangeEvent evt)
Invoked when ChatRoomMemberPresenceChangeEvent are received.
|
void |
removeLocalUserRoleListener(ChatRoomLocalUserRoleListener l)
Removes the given ChatRoomLocalUserRoleListener from the
contained chat room role listeners.
|
void |
removeMemberRoleListener(ChatRoomMemberRoleListener l)
Removes the given ChatRoomMemberRoleListener from the contained
chat room role listeners.
|
void |
setCurrentChatTransport(ChatTransport chatTransport)
Sets the transport that will be used for all operations within this chat
session.
|
void |
setDefaultSmsNumber(java.lang.String smsPhoneNumber)
Sets the default mobile number used to send sms-es in this session.
|
addChatTransportChangeListener, findChatTransportForDescriptor, fireCurrentChatTransportChange, fireCurrentChatTransportUpdated, getChatTransports, getParticipants, getPersistableAddress, getTransportsForOperationSet, removeChatTransportChangeListener
public ConferenceChatSession(ChatSessionRenderer sessionRenderer, ChatRoomWrapper chatRoomWrapper)
sessionRenderer
- the renderer to be used for communication with the
UI.chatRoomWrapper
- the chat room corresponding to this conference
session.public java.lang.Object getDescriptor()
getDescriptor
in class ChatSession
public void dispose()
dispose
in class ChatSession
public java.lang.String getChatName()
getChatName
in class ChatSession
public java.lang.String getChatSubject()
public ChatRoomConfigurationForm getChatConfigurationForm() throws OperationFailedException
OperationFailedException
- if no configuration form is available
for the chat room.public ChatTransport getCurrentChatTransport()
getCurrentChatTransport
in class ChatSession
public java.lang.String getDefaultSmsNumber()
getDefaultSmsNumber
in class ChatSession
public java.util.Collection<java.lang.Object> getHistory(int count)
getHistory
in class ChatSession
count
- The number of messages from history to return.public java.util.Collection<java.lang.Object> getHistoryBeforeDate(java.util.Date date, int count)
getHistoryBeforeDate
in class ChatSession
date
- The date up to which we're looking for messages.count
- The number of messages from history to return.public java.util.Collection<java.lang.Object> getHistoryAfterDate(java.util.Date date, int count)
getHistoryAfterDate
in class ChatSession
date
- The date from which we're looking for messages.count
- The number of messages from history to return.public java.util.Date getHistoryStartDate()
getHistoryStartDate
in class ChatSession
public java.util.Date getHistoryEndDate()
getHistoryEndDate
in class ChatSession
public void setCurrentChatTransport(ChatTransport chatTransport)
setCurrentChatTransport
in class ChatSession
chatTransport
- The transport to set as a default transport for this
session.public void setDefaultSmsNumber(java.lang.String smsPhoneNumber)
setDefaultSmsNumber
in class ChatSession
smsPhoneNumber
- The default mobile number used to send sms-es in
this session.public ChatSessionRenderer getChatSessionRenderer()
getChatSessionRenderer
in class ChatSession
public void memberPresenceChanged(ChatRoomMemberPresenceChangeEvent evt)
memberPresenceChanged
in interface ChatRoomMemberPresenceListener
evt
- the ChatRoomMemberPresenceChangeEvent that notified
uspublic void chatRoomPropertyChangeFailed(ChatRoomPropertyChangeFailedEvent event)
ChatRoomPropertyChangeListener
chatRoomPropertyChangeFailed
in interface ChatRoomPropertyChangeListener
event
- the ChatRoomPropertyChangeFailedEvent containing the name of
the property that has failed, as well as its old and new values.public void chatRoomPropertyChanged(ChatRoomPropertyChangeEvent evt)
chatRoomPropertyChanged
in interface ChatRoomPropertyChangeListener
evt
- the event containing information about the property changepublic boolean isDescriptorPersistent()
true
if this contact is persistent, otherwise
returns false
.isDescriptorPersistent
in class ChatSession
true
if this contact is persistent, otherwise
returns false
.public void loadChatRoom(ChatRoom chatRoom)
chatRoom
- the ChatRoom to loadpublic javax.swing.ImageIcon getChatStatusIcon()
getChatStatusIcon
in class ChatSession
public byte[] getChatAvatar()
getChatAvatar
in class ChatSession
public boolean isContactListSupported()
isContactListSupported
in class ChatSession
public void addMemberRoleListener(ChatRoomMemberRoleListener l)
l
- the listener to addpublic void addLocalUserRoleListener(ChatRoomLocalUserRoleListener l)
l
- the listener to addpublic void removeMemberRoleListener(ChatRoomMemberRoleListener l)
l
- the listener to removepublic void removeLocalUserRoleListener(ChatRoomLocalUserRoleListener l)
l
- the listener to removepublic void conferencePublished(ChatRoomConferencePublishedEvent evt)
conferencePublished
in interface ChatRoomConferencePublishedListener
evt
- the event received, which contains the ChatRoom,
ChatRoomMember and ConferenceDescription involved.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.