|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jChatBox.Chat.ChatroomManager
This class (Singleton) manages all chatrooms.
Method Summary | |
void |
addChatroom(Chatroom chatroom)
Adds a chatroom. |
void |
destroy()
Backup ChatroomManager. |
Chatroom |
getChatroom(int id)
Returns a chatroom identified by its ID. |
Chatroom |
getChatroom(java.lang.String name)
Returns a chatroom identified by its name. |
java.util.Vector |
getChatrooms()
Lists all chatrooms (Sorted by ID). |
int |
getChatroomUID()
Returns an UID for a chatroom. |
static ChatroomManager |
getInstance()
Returns ChatroomManager Singleton. |
boolean |
isModerateAllowed(int chatroomid,
java.lang.String userid)
Returns whether or not moderating is allowed for userid to chatroomid. |
void |
removeChatroom(int id)
Removes a chatroom identified by its ID. |
void |
reOpen()
reOpen ChatroomManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ChatroomManager getInstance()
public int getChatroomUID()
public void reOpen()
public void addChatroom(Chatroom chatroom)
public void removeChatroom(int id) throws ChatException
ChatException
public boolean isModerateAllowed(int chatroomid, java.lang.String userid) throws ChatException
ChatException
public Chatroom getChatroom(int id) throws ChatException
ChatException
public Chatroom getChatroom(java.lang.String name) throws ChatException
ChatException
public java.util.Vector getChatrooms()
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |