public class AdHocConferenceChatSession extends ChatSession implements AdHocChatRoomParticipantPresenceListener
chatHistoryFilter, chatParticipants, chatTransports, persistableAddress
Constructor and Description |
---|
AdHocConferenceChatSession(ChatSessionRenderer sessionRenderer,
AdHocChatRoomWrapper chatRoomWrapper)
Creates an instance of AdHocConferenceChatSession, by specifying
the sessionRenderer to be used for communication with the UI and the
ad-hoc chat room corresponding to this conference session.
|
Modifier and Type | Method and Description |
---|---|
void |
addChatTransportChangeListener(ChatSessionChangeListener l)
Adds the given
ChatSessionChangeListener to this
ChatSession. |
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 ad-hoc 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.
|
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()
Gets the indicator which determines whether a contact list of (multiple)
participants is supported by this
ChatSession . |
boolean |
isDescriptorPersistent()
Returns
true if this contact is persistent, otherwise
returns false . |
void |
loadChatRoom(AdHocChatRoom chatRoom)
Loads the given chat room in the this chat conference panel.
|
void |
participantPresenceChanged(AdHocChatRoomParticipantPresenceChangeEvent evt)
Invoked when AdHocChatRoomParticipantPresenceChangeEvent are
received.
|
void |
removeChatTransportChangeListener(ChatSessionChangeListener l)
Removes the given
ChatSessionChangeListener to this
ChatSession. |
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.
|
findChatTransportForDescriptor, fireCurrentChatTransportChange, fireCurrentChatTransportUpdated, getChatTransports, getParticipants, getPersistableAddress, getTransportsForOperationSet
public AdHocConferenceChatSession(ChatSessionRenderer sessionRenderer, AdHocChatRoomWrapper chatRoomWrapper)
sessionRenderer
- the renderer to be used for communication with the
UI.chatRoomWrapper
- the ad-hoc 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 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 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(AdHocChatRoom chatRoom)
chatRoom
- the ChatRoom to loadpublic javax.swing.ImageIcon getChatStatusIcon()
getChatStatusIcon
in class ChatSession
public byte[] getChatAvatar()
getChatAvatar
in class ChatSession
public boolean isContactListSupported()
ChatSession
ChatSession
. For example,
UI implementations may use the indicator to determine whether UI elements
should be created for the user to represent the contact list of the
participants in this ChatSession
.isContactListSupported
in class ChatSession
ChatSession
supports a contact
list of (multiple) participants; otherwise, falsepublic void participantPresenceChanged(AdHocChatRoomParticipantPresenceChangeEvent evt)
participantPresenceChanged
in interface AdHocChatRoomParticipantPresenceListener
evt
- the AdHocChatRoomParticipantPresenceChangeEvent
instance containing the source chat room and type, and reason of the
presence changepublic void addChatTransportChangeListener(ChatSessionChangeListener l)
ChatSessionChangeListener
to this
ChatSession.
Not implemented.addChatTransportChangeListener
in class ChatSession
l
- the ChatSessionChangeListener to addpublic void removeChatTransportChangeListener(ChatSessionChangeListener l)
ChatSessionChangeListener
to this
ChatSession.
Not implemented.removeChatTransportChangeListener
in class ChatSession
l
- the ChatSessionChangeListener to add
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.