@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) |
void |
deleteTeamRoom(String room,
String user) |
void |
edit(String room,
String sender,
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) |
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 |
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) |
List<org.exoplatform.chat.model.RoomBean> |
getTeamRoomsByName(String teamName) |
String |
getTypeRoomChat(String roomId) |
String |
read(String user,
String room) |
String |
read(String user,
String room,
boolean isTextOnly,
Long fromTimestamp) |
String |
read(String user,
String room,
boolean isTextOnly,
Long fromTimestamp,
Long toTimestamp,
int 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 clientId,
String message,
String sender,
String room,
String isSystem,
String options) |
public void write(String message, String user, String room, String isSystem)
write in interface org.exoplatform.chat.services.ChatServicepublic void write(String clientId, String message, String sender, String room, String isSystem, String options)
write in interface org.exoplatform.chat.services.ChatServicepublic String save(String message, String user, String room, String isSystem, String options)
save in interface org.exoplatform.chat.services.ChatServicepublic void delete(String room, String sender, String messageId)
delete in interface org.exoplatform.chat.services.ChatServicepublic org.exoplatform.chat.model.RoomBean getTeamRoomById(String roomId)
getTeamRoomById in interface org.exoplatform.chat.services.ChatServicepublic List<org.exoplatform.chat.model.RoomBean> getTeamRoomsByName(String teamName)
getTeamRoomsByName in interface org.exoplatform.chat.services.ChatServicepublic void deleteTeamRoom(String room, String user)
deleteTeamRoom in interface org.exoplatform.chat.services.ChatServicepublic void edit(String room, String sender, String messageId, String message)
edit in interface org.exoplatform.chat.services.ChatServicepublic String read(String user, String room)
read in interface org.exoplatform.chat.services.ChatServicepublic String read(String user, String room, boolean isTextOnly, Long fromTimestamp)
read in interface org.exoplatform.chat.services.ChatServicepublic String read(String user, String room, boolean isTextOnly, Long fromTimestamp, Long toTimestamp, int limit)
read in interface org.exoplatform.chat.services.ChatServicepublic org.exoplatform.chat.model.MessageBean getMessage(String roomId, String messageId)
getMessage in interface org.exoplatform.chat.services.ChatServicepublic String getSpaceRoom(String space)
getSpaceRoom in interface org.exoplatform.chat.services.ChatServicepublic String getSpaceRoomByName(String name)
getSpaceRoomByName in interface org.exoplatform.chat.services.ChatServicepublic String getTeamRoom(String team, String user)
getTeamRoom in interface org.exoplatform.chat.services.ChatServicepublic String getExternalRoom(String identifier)
getExternalRoom in interface org.exoplatform.chat.services.ChatServicepublic String getTeamCreator(String room)
getTeamCreator in interface org.exoplatform.chat.services.ChatServicepublic void setRoomName(String room, String name)
setRoomName in interface org.exoplatform.chat.services.ChatServicepublic void setRoomMeetingStatus(String room, boolean start, String startTime)
setRoomMeetingStatus in interface org.exoplatform.chat.services.ChatServicepublic String getRoom(List<String> users)
getRoom in interface org.exoplatform.chat.services.ChatServicepublic String getTypeRoomChat(String roomId)
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)
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)
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)
getRooms in interface org.exoplatform.chat.services.ChatServicepublic int getNumberOfRooms()
getNumberOfRooms in interface org.exoplatform.chat.services.ChatServicepublic int getNumberOfMessages()
getNumberOfMessages in interface org.exoplatform.chat.services.ChatServiceCopyright © 2003–2019 eXo Platform SAS. All rights reserved.