| Modifier and Type | Method and Description |
|---|---|
ChatChannel |
ChatManager.createNewChannel(String context,
String title,
boolean placementDefaultChannel,
boolean checkAuthz,
String placement)
Creates a new ChatChannel but doesn't put it in the database.
|
ChatChannel |
ChatManager.getChatChannel(String chatChannelId)
gets one chat room
|
ChatChannel |
ChatManager.getDefaultChannel(String contextId,
String placement)
Returns the context's default channel, or null if none.
|
static ChatChannel |
ChatChannel.xmlToChatChannel(Element channelElement,
String siteId)
Converts the serialized xml back to a ChatChannel object
|
| Modifier and Type | Method and Description |
|---|---|
List<ChatChannel> |
ChatManager.getContextChannels(String context,
boolean lazy)
gets the rooms associated with the context
|
List<ChatChannel> |
ChatManager.getContextChannels(String contextId,
String defaultNewTitle,
String placement)
Gets the rooms associated with the context
If no rooms are found, one is created with the passed title
|
| Modifier and Type | Method and Description |
|---|---|
int |
ChatManager.countChannelMessages(ChatChannel channel)
Deprecated.
|
ChatMessage |
ChatManager.createNewMessage(ChatChannel channel,
String owner)
creates an unsaved Chat Message
|
void |
ChatManager.deleteChannel(ChatChannel channel)
deletes the channel from the database.
|
void |
ChatManager.deleteChannelMessages(ChatChannel channel)
delete all Chat Messages in a given channel
|
boolean |
ChatManager.getCanDelete(ChatChannel channel)
Returns whether or not the user has permissions to delete this channel
|
boolean |
ChatManager.getCanEdit(ChatChannel channel)
Returns whether or not the user has permissions to edit this channel
|
boolean |
ChatManager.getCanPostMessage(ChatChannel channel)
Returns whether or not the user can post messages in this channel
|
boolean |
ChatManager.getCanReadMessage(ChatChannel channel)
Returns whether or not the user can read messages in this channel
|
List<ChatMessage> |
ChatManager.getChannelMessages(ChatChannel channel,
String context,
Date date,
int start,
int max,
boolean sortAsc)
gets all the messages from the Channel after the passed date,
limited to returning the the default maximum number of messages (100),
use
ChatManager.getChannelMessagesCount(ChatChannel, String, Date) to find the total number of messages |
int |
ChatManager.getChannelMessagesCount(ChatChannel channel,
String context,
Date date)
Gets the count of all the messages from the Channel after the passed date
|
void |
ChatManager.makeDefaultContextChannel(ChatChannel channel,
String placement)
Makes the passed channel the default in the channel's context
|
ChatMessage |
TransferableChatMessage.toChatMessage(ChatChannel channel) |
void |
ChatManager.updateChannel(ChatChannel channel,
boolean checkAuthz)
updates the channel back into the database
|
| Constructor and Description |
|---|
ChatChannel(ChatChannel defaults)
Set up a new ChatChannel with the set defaults
|
Copyright © 2003–2021 Sakai Project. All rights reserved.