|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jivesoftware.spark.ChatManager
Handles the Chat Management of each individual Workspace
. The ChatManager is responsible
for creation and removal of chat rooms, transcripts, and transfers and room invitations.
Constructor Summary | |
ChatManager()
Create a new instance of ChatManager. |
Method Summary | |
void |
addChatRoomListener(ChatRoomListener listener)
Used to listen for rooms opening, closing or being activated( already opened, but tabbed to ) |
void |
addMessageFilter(MessageFilter filter)
Adds a new MessageFilter . |
ChatRoom |
createChatRoom(java.lang.String userJID,
java.lang.String nickname,
java.lang.String title)
Creates and/or opens a chat room with the specified user. |
ChatRoom |
createConferenceRoom(java.lang.String roomName,
java.lang.String serviceName)
Creates a new public Conference Room. |
void |
filterIncomingMessage(org.jivesoftware.smack.packet.Message message)
|
void |
filterOutgoingMessage(org.jivesoftware.smack.packet.Message message)
|
ChatContainer |
getChatContainer()
Returns all ChatRooms currently active. |
ChatRoom |
getChatRoom(java.lang.String jid)
Returns the ChatRoom for the giving jid. |
GroupChatRoom |
getGroupChat(java.lang.String roomName)
Returns the MultiUserChat associated with the specified roomname. |
java.util.Collection |
getMessageFilters()
Returns a Collection of MessageFilters registered to Spark. |
void |
removeChat(ChatRoom chatRoom)
Removes the personal 1 to 1 chat from the ChatFrame. |
void |
removeChatRoomListener(ChatRoomListener listener)
Simplace facade for chatroom. |
void |
removeMessageFilter(MessageFilter filter)
Removes a MessageFilter . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChatManager()
Method Detail |
public void addChatRoomListener(ChatRoomListener listener)
listener
- the ChatRoomListener to addpublic void removeChatRoomListener(ChatRoomListener listener)
listener
- the ChatRoomListener to removepublic void removeChat(ChatRoom chatRoom)
chatRoom
- the ChatRoom to remove.public ChatContainer getChatContainer()
public GroupChatRoom getGroupChat(java.lang.String roomName) throws ChatNotFoundException
roomName
- the name of the chat room.
ChatNotFoundException
public ChatRoom createChatRoom(java.lang.String userJID, java.lang.String nickname, java.lang.String title)
userJID
- the jid of the user to chat with.nickname
- the nickname to use for the user.public ChatRoom getChatRoom(java.lang.String jid)
ChatRoom
for the giving jid. If the ChatRoom is not found,
a new ChatRoom will be created.
jid
- the jid of the user to chat with.
public ChatRoom createConferenceRoom(java.lang.String roomName, java.lang.String serviceName)
roomName
- the name of the room.serviceName
- the service name to use (ex.conference.jivesoftware.com)
public void addMessageFilter(MessageFilter filter)
MessageFilter
.
filter
- the MessageFilter.public void removeMessageFilter(MessageFilter filter)
MessageFilter
.
filter
- the MessageFilter.public java.util.Collection getMessageFilters()
public void filterIncomingMessage(org.jivesoftware.smack.packet.Message message)
public void filterOutgoingMessage(org.jivesoftware.smack.packet.Message message)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |