|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.sparkimpl.plugin.transcripts.ChatTranscriptPlugin
The ChatTranscriptPlugin
is responsible for transcript handling within Spark.
Constructor Summary | |
ChatTranscriptPlugin()
|
Method Summary | |
boolean |
canShutDown()
This method is invoked by the PluginManager before Spark
terminates. |
void |
chatRoomActivated(ChatRoom room)
Invoked by ChatRooms when a ChatRoom has been activated. |
void |
chatRoomClosed(ChatRoom room)
Invoke by ChatRooms when a ChatRoom has been closed. |
void |
chatRoomLeft(ChatRoom room)
Invoked by ChatRooms when a ChatRoom has been left, but not
closed. |
void |
chatRoomOpened(ChatRoom room)
Invoked by ChatRooms when a new ChatRoom has been opened. |
void |
initialize()
Register the listeners for transcript persistence. |
void |
shutdown()
This method is invoked by the PluginManager when Spark
wishes you to remove any temporary resources (in memory) such as installed
components, or settings. |
void |
uninstall()
This method is invoked by the PluginManager when a Spark user
asks that this plugin be uninstalled. |
void |
userHasJoined(ChatRoom room,
java.lang.String userid)
Invoked by ChatRooms when a person has joined a chat room. |
void |
userHasLeft(ChatRoom room,
java.lang.String userid)
Invoked by ChatRooms when a person has left a chat room. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChatTranscriptPlugin()
Method Detail |
public void initialize()
initialize
in interface Plugin
PluginManager
public void shutdown()
Plugin
PluginManager
when Spark
wishes you to remove any temporary resources (in memory) such as installed
components, or settings. Any non java resources (file handles, database connections,
etc) which are still being held by this Plugin
should be
released by this method immediately. This method is not guaranteed to
be called, but on normal terminations of Spark, this method will be
invoked.
shutdown
in interface Plugin
public boolean canShutDown()
Plugin
PluginManager
before Spark
terminates. Plugin
's should NOT use this method to release resources.
They should only use this method to give users the opportunity to
cancel the exit process if there is some process started by this
plugin still running.
Implementations should return false
to cancel the shutdown
process.
canShutDown
in interface Plugin
public void chatRoomOpened(ChatRoom room)
ChatRoomListener
ChatRooms
when a new ChatRoom has been opened.
chatRoomOpened
in interface ChatRoomListener
room
- - the ChatRoom
that has been opened.ChatContainer
public void chatRoomLeft(ChatRoom room)
ChatRoomListener
ChatRooms
when a ChatRoom has been left, but not
closed.
chatRoomLeft
in interface ChatRoomListener
room
- - the ChatRoom
that has been left.ChatContainer
public void chatRoomClosed(ChatRoom room)
ChatRoomListener
ChatRooms
when a ChatRoom has been closed.
chatRoomClosed
in interface ChatRoomListener
room
- - the ChatRoom
that has been closed.public void chatRoomActivated(ChatRoom room)
ChatRoomListener
ChatRooms
when a ChatRoom has been activated.
i.e. it has already been opened, but was deactivated when the user
selected a new chat room, but now has selected the old one.
chatRoomActivated
in interface ChatRoomListener
room
- - the ChatRoom
that has been selected.public void userHasJoined(ChatRoom room, java.lang.String userid)
ChatRoomListener
ChatRooms
when a person has joined a chat room.
userHasJoined
in interface ChatRoomListener
room
- - the chat room the person has joineduserid
- - the userid of the person who has joinedpublic void userHasLeft(ChatRoom room, java.lang.String userid)
ChatRoomListener
ChatRooms
when a person has left a chat room.
userHasLeft
in interface ChatRoomListener
room
- - the chat room the person has leftuserid
- - the userid of the person who has leftpublic void uninstall()
Plugin
PluginManager
when a Spark user
asks that this plugin be uninstalled. Before this method is called, you
will need to release all your in-memory resources in the #shutdown method. This
method should be used to remove on disk resources such as files, images, etc.
uninstall
in interface Plugin
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |