public interface ChatDataStorage
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String room,
String user,
String messageId) |
void |
deleteTeamRoom(String roomId,
String user)
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) |
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 |
getExternalRoom(String identifier) |
org.exoplatform.chat.model.MessageBean |
getMessage(String roomId,
String messageId) |
int |
getNumberOfMessages() |
int |
getNumberOfRooms() |
String |
getRoom(List<String> users) |
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 |
getSpaceRoom(String space) |
String |
getSpaceRoomByName(String name) |
String |
getTeamCreator(String room) |
String |
getTeamRoom(String team,
String user) |
org.exoplatform.chat.model.RoomBean |
getTeamRoomById(String roomId)
Retrieve a Room by its ID
|
List<org.exoplatform.chat.model.RoomBean> |
getTeamRoomByName(String teamName)
Return rooms by name
|
String |
getTypeRoomChat(String roomId) |
String |
read(String room) |
String |
read(String room,
boolean isTextOnly,
Long fromTimestamp) |
String |
read(String room,
boolean isTextOnly,
Long fromTimestamp,
Long toTimestamp,
int limitToLoad)
Read messages from room from a dedicated timestamp to another with limit.
|
String |
save(String message,
String user,
String room,
String isSystem,
String options) |
void |
setRoomMeetingStatus(String room,
boolean start,
String startTime) |
void |
setRoomName(String room,
String name) |
void |
write(String message,
String user,
String room,
String isSystem) |
void |
write(String message,
String user,
String room,
String isSystem,
String options) |
void deleteTeamRoom(String roomId, String user)
roomId - the team room ID to deleteuser - the owner of the team roomString read(String room, boolean isTextOnly, Long fromTimestamp, Long toTimestamp, int limitToLoad)
room - isTextOnly - fromTimestamp - toTimestamp - limitToLoad - org.exoplatform.chat.model.RoomBean getTeamRoomById(String roomId)
roomId - the ID of the roomList<org.exoplatform.chat.model.RoomBean> getExistingRooms(String user, boolean withPublic, boolean isAdmin, org.exoplatform.chat.services.NotificationService notificationService, org.exoplatform.chat.services.TokenService tokenService)
user - withPublic - isAdmin - notificationService - tokenService - 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)
int getNumberOfRooms()
int getNumberOfMessages()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.