@Named(value="chatService") @ApplicationScoped @Singleton public class ChatServiceImpl extends Object implements org.exoplatform.chat.services.ChatService
BIP, DESKTOP_NOTIFICATION, DO_NOT_NOTIFY_ME_ON_ROOM, EXTERNAL_PREFIX, NOTIFY_ME_EVEN_NOT_DISTURB, NOTIFY_ME_ON_ROOM_KEY_WORD, NOTIFY_ME_ON_ROOM_NORMAL, NOTIFY_ME_WHEN_MENTION, ON_SITE, SPACE_PREFIX, TEAM_PREFIX, TYPE_DELETED, TYPE_EDITED, TYPE_ROOM_EXTERNAL, TYPE_ROOM_SPACE, TYPE_ROOM_TEAM, TYPE_ROOM_USER, USER_AVATAR_URL| Constructor and Description |
|---|
ChatServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String room,
String sender,
String messageId,
String dbName) |
void |
deleteTeamRoom(String room,
String user,
String dbName) |
void |
edit(String room,
String sender,
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) |
org.exoplatform.chat.model.RoomsBean |
getRooms(String user,
String filter,
boolean withUsers,
boolean withSpaces,
boolean withPublic,
boolean withOffline,
boolean isAdmin,
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) |
List<org.exoplatform.chat.model.RoomBean> |
getTeamRoomsByName(String teamName,
String dbName) |
String |
getTypeRoomChat(String roomId,
String dbName) |
String |
read(String user,
String room,
boolean isTextOnly,
Long fromTimestamp,
Long toTimestamp,
int limit,
String dbName) |
String |
read(String user,
String room,
boolean isTextOnly,
Long fromTimestamp,
String dbName) |
String |
read(String user,
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 clientId,
String message,
String sender,
String room,
String isSystem,
String options,
String dbName) |
public void write(String message, String user, String room, String isSystem, String dbName)
write in interface org.exoplatform.chat.services.ChatServicepublic void write(String clientId, String message, String sender, String room, String isSystem, String options, String dbName)
write in interface org.exoplatform.chat.services.ChatServicepublic String save(String message, String user, String room, String isSystem, String options, String dbName)
save in interface org.exoplatform.chat.services.ChatServicepublic void delete(String room, String sender, String messageId, String dbName)
delete in interface org.exoplatform.chat.services.ChatServicepublic org.exoplatform.chat.model.RoomBean getTeamRoomById(String roomId, String dbName)
getTeamRoomById in interface org.exoplatform.chat.services.ChatServicepublic List<org.exoplatform.chat.model.RoomBean> getTeamRoomsByName(String teamName, String dbName)
getTeamRoomsByName in interface org.exoplatform.chat.services.ChatServicepublic void deleteTeamRoom(String room, String user, String dbName)
deleteTeamRoom in interface org.exoplatform.chat.services.ChatServicepublic void edit(String room, String sender, String messageId, String message, String dbName)
edit in interface org.exoplatform.chat.services.ChatServicepublic String read(String user, String room, String dbName)
read in interface org.exoplatform.chat.services.ChatServicepublic String read(String user, String room, boolean isTextOnly, Long fromTimestamp, String dbName)
read in interface org.exoplatform.chat.services.ChatServicepublic String read(String user, String room, boolean isTextOnly, Long fromTimestamp, Long toTimestamp, int limit, String dbName)
read in interface org.exoplatform.chat.services.ChatServicepublic org.exoplatform.chat.model.MessageBean getMessage(String roomId, String messageId, String dbName)
getMessage in interface org.exoplatform.chat.services.ChatServicepublic String getSpaceRoom(String space, String dbName)
getSpaceRoom in interface org.exoplatform.chat.services.ChatServicepublic String getSpaceRoomByName(String name, String dbName)
getSpaceRoomByName in interface org.exoplatform.chat.services.ChatServicepublic String getTeamRoom(String team, String user, String dbName)
getTeamRoom in interface org.exoplatform.chat.services.ChatServicepublic String getExternalRoom(String identifier, String dbName)
getExternalRoom in interface org.exoplatform.chat.services.ChatServicepublic String getTeamCreator(String room, String dbName)
getTeamCreator in interface org.exoplatform.chat.services.ChatServicepublic void setRoomName(String room, String name, String dbName)
setRoomName in interface org.exoplatform.chat.services.ChatServicepublic String getRoom(List<String> users, String dbName)
getRoom in interface org.exoplatform.chat.services.ChatServicepublic String getTypeRoomChat(String roomId, String dbName)
getTypeRoomChat in interface org.exoplatform.chat.services.ChatServicepublic 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)
getExistingRooms in interface org.exoplatform.chat.services.ChatServicepublic org.exoplatform.chat.model.RoomsBean getRooms(String user, String filter, boolean withUsers, boolean withSpaces, boolean withPublic, boolean withOffline, boolean isAdmin, org.exoplatform.chat.services.NotificationService notificationService, org.exoplatform.chat.services.TokenService tokenService, String dbName)
getRooms in interface org.exoplatform.chat.services.ChatServicepublic 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)
getRooms in interface org.exoplatform.chat.services.ChatServicepublic int getNumberOfRooms(String dbName)
getNumberOfRooms in interface org.exoplatform.chat.services.ChatServicepublic int getNumberOfMessages(String dbName)
getNumberOfMessages in interface org.exoplatform.chat.services.ChatServiceCopyright © 2003–2019 eXo Platform SAS. All rights reserved.