public abstract class AbstractChatRoom extends java.lang.Object implements ChatRoom
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,ConferenceDescription> |
cachedConferenceDescriptions
The list of all ConferenceDescription that were announced and
are not yet processed.
|
protected java.util.List<ChatRoomConferencePublishedListener> |
conferencePublishedListeners
The list of listeners to be notified when a member of the chat room
publishes a ConferenceDescription
|
Constructor and Description |
---|
AbstractChatRoom() |
Modifier and Type | Method and Description |
---|---|
void |
addConferencePublishedListener(ChatRoomConferencePublishedListener listener)
Adds a listener that will be notified when a member of this chat room
has published a ConferenceDescription to the room.
|
protected void |
clearCachedConferenceDescriptionList()
Clears the list with the chat room conferences.
|
protected void |
fireConferencePublishedEvent(ChatRoomMember member,
ConferenceDescription cd,
int eventType)
Creates the corresponding ChatRoomConferencePublishedEvent and
notifies all ChatRoomConferencePublishedListeners that
member has published a conference description.
|
java.util.Map<java.lang.String,ConferenceDescription> |
getCachedConferenceDescriptions()
Returns cached ConferenceDescription instances.
|
int |
getCachedConferenceDescriptionSize()
Returns the number of cached ConferenceDescription instances.
|
protected boolean |
processConferenceDescription(ConferenceDescription cd,
java.lang.String participantName)
Processes the ConferenceDescription instance and adds/removes
it to the list of conferences.
|
void |
removeConferencePublishedListener(ChatRoomConferencePublishedListener listener)
Removes a listener that was being notified when a member of this chat
room had published a ConferenceDescription to the room.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLocalUserRoleListener, addMemberPresenceListener, addMemberPropertyChangeListener, addMemberRoleListener, addMessageListener, addPropertyChangeListener, banParticipant, createMessage, createMessage, destroy, getBanList, getConfigurationForm, getIdentifier, getMembers, getMembersCount, getMembersWhiteList, getName, getParentProvider, getPrivateContactByNickname, getSubject, getUserNickname, getUserRole, grantAdmin, grantMembership, grantModerator, grantOwnership, grantVoice, invite, isJoined, isPersistent, isSystem, join, join, joinAs, joinAs, kickParticipant, leave, publishConference, removelocalUserRoleListener, removeMemberPresenceListener, removeMemberPropertyChangeListener, removeMemberRoleListener, removeMessageListener, removePropertyChangeListener, revokeAdmin, revokeMembership, revokeModerator, revokeOwnership, revokeVoice, sendMessage, setLocalUserRole, setMembersWhiteList, setSubject, setUserNickname, updatePrivateContactPresenceStatus, updatePrivateContactPresenceStatus
protected final java.util.List<ChatRoomConferencePublishedListener> conferencePublishedListeners
protected java.util.Map<java.lang.String,ConferenceDescription> cachedConferenceDescriptions
public void addConferencePublishedListener(ChatRoomConferencePublishedListener listener)
addConferencePublishedListener
in interface ChatRoom
listener
- the listener to add.public void removeConferencePublishedListener(ChatRoomConferencePublishedListener listener)
removeConferencePublishedListener
in interface ChatRoom
listener
- the listener to remove.public java.util.Map<java.lang.String,ConferenceDescription> getCachedConferenceDescriptions()
getCachedConferenceDescriptions
in interface ChatRoom
public int getCachedConferenceDescriptionSize()
getCachedConferenceDescriptionSize
in interface ChatRoom
protected void fireConferencePublishedEvent(ChatRoomMember member, ConferenceDescription cd, int eventType)
member
- the ChatRoomMember that published cd.cd
- the ConferenceDescription that was published.eventType
- the type of the event.protected boolean processConferenceDescription(ConferenceDescription cd, java.lang.String participantName)
cd
- the ConferenceDescription instance to process.participantName
- the name of the participant that sent the
ConferenceDescription.protected void clearCachedConferenceDescriptionList()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.