public interface ChatDataStorage
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String room,
String user,
String messageId,
String dbName) |
void |
deleteTeamRoom(String roomId,
String user,
String dbName)
Delete a Team Room by its corresponding ID.
Nothing happen if : the roomId doesn't exists the roomId doesn't correspond to a Team Room the specified user is not the owner of the Team Room |
void |
edit(String room,
String user,
String messageId,
String message,
String dbName) |
List<org.exoplatform.chat.model.RoomBean> |
getExistingRooms(String user,
boolean withPublic,
boolean isAdmin,
org.exoplatform.chat.services.NotificationService notificationService,
org.exoplatform.chat.services.TokenService tokenService,
String dbName) |
String |
getExternalRoom(String identifier,
String dbName) |
org.exoplatform.chat.model.MessageBean |
getMessage(String roomId,
String messageId,
String dbName) |
int |
getNumberOfMessages(String dbName) |
int |
getNumberOfRooms(String dbName) |
String |
getRoom(List<String> users,
String dbName) |
org.exoplatform.chat.model.RoomsBean |
getRooms(String user,
List<String> onlineUsers,
String filter,
boolean withUsers,
boolean withSpaces,
boolean withPublic,
boolean withOffline,
boolean isAdmin,
int limit,
org.exoplatform.chat.services.NotificationService notificationService,
org.exoplatform.chat.services.TokenService tokenService,
String dbName) |
String |
getSpaceRoom(String space,
String dbName) |
String |
getSpaceRoomByName(String name,
String dbName) |
String |
getTeamCreator(String room,
String dbName) |
String |
getTeamRoom(String team,
String user,
String dbName) |
org.exoplatform.chat.model.RoomBean |
getTeamRoomById(String roomId,
String dbName)
Retrieve a Room by its ID
|
List<org.exoplatform.chat.model.RoomBean> |
getTeamRoomByName(String teamName,
String dbName)
Return rooms by name
|
String |
getTypeRoomChat(String roomId,
String dbName) |
String |
read(String room,
boolean isTextOnly,
Long fromTimestamp,
Long toTimestamp,
String dbName,
int limitToLoad)
Read messages from room from a dedicated timestamp to another usin dbName with limit.
|
String |
read(String room,
boolean isTextOnly,
Long fromTimestamp,
String dbName) |
String |
read(String room,
String dbName) |
String |
save(String message,
String user,
String room,
String isSystem,
String options,
String dbName) |
void |
setRoomName(String room,
String name,
String dbName) |
void |
write(String message,
String user,
String room,
String isSystem,
String dbName) |
void |
write(String message,
String user,
String room,
String isSystem,
String options,
String dbName) |
void write(String message, String user, String room, String isSystem, String options, String dbName)
String save(String message, String user, String room, String isSystem, String options, String dbName)
void deleteTeamRoom(String roomId, String user, String dbName)
roomId - the team room ID to deleteuser - the owner of the team roomdbName - the database to use for the queryString read(String room, boolean isTextOnly, Long fromTimestamp, Long toTimestamp, String dbName, int limitToLoad)
room - isTextOnly - fromTimestamp - toTimestamp - dbName - limitToLoad - org.exoplatform.chat.model.MessageBean getMessage(String roomId, String messageId, String dbName)
org.exoplatform.chat.model.RoomBean getTeamRoomById(String roomId, String dbName)
roomId - the ID of the roomdbName - the database to use for the queryList<org.exoplatform.chat.model.RoomBean> getExistingRooms(String user, boolean withPublic, boolean isAdmin, org.exoplatform.chat.services.NotificationService notificationService, org.exoplatform.chat.services.TokenService tokenService, String dbName)
user - withPublic - isAdmin - notificationService - tokenService - dbName - userorg.exoplatform.chat.model.RoomsBean getRooms(String user, List<String> onlineUsers, String filter, boolean withUsers, boolean withSpaces, boolean withPublic, boolean withOffline, boolean isAdmin, int limit, org.exoplatform.chat.services.NotificationService notificationService, org.exoplatform.chat.services.TokenService tokenService, String dbName)
int getNumberOfRooms(String dbName)
int getNumberOfMessages(String dbName)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.