Package org.exoplatform.chat.services
Class ChatServiceImpl
java.lang.Object
org.exoplatform.chat.services.ChatServiceImpl
- All Implemented Interfaces:
org.exoplatform.chat.services.ChatService
@Named("chatService")
@ApplicationScoped
@Singleton
public class ChatServiceImpl
extends Object
implements org.exoplatform.chat.services.ChatService
-
Field Summary
Fields inherited from interface 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_FAVORITE, TYPE_ROOM_SPACE, TYPE_ROOM_TEAM, TYPE_ROOM_USER, USER_AVATAR_URL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteTeamRoom(String room, String user) voidList<org.exoplatform.chat.model.RoomBean> getExistingRooms(String user, boolean withPublic, boolean isAdmin, org.exoplatform.chat.services.NotificationService notificationService, org.exoplatform.chat.services.TokenService tokenService) getExternalRoom(String identifier) org.exoplatform.chat.model.MessageBeangetMessage(String roomId, String messageId) intintorg.exoplatform.chat.model.RoomsBeangetRooms(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) org.exoplatform.chat.model.RoomsBeangetRooms(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) getSpaceRoom(String space) getSpaceRoomByName(String name) getTeamCreator(String room) getTeamRoom(String team, String user) org.exoplatform.chat.model.RoomBeangetTeamRoomById(String roomId) List<org.exoplatform.chat.model.RoomBean> getTeamRoomsByName(String teamName) getTypeRoomChat(String roomId) org.exoplatform.chat.model.RoomsBeangetUserRooms(String user, List<String> onlineUsers, String filter, int offset, int limit, org.exoplatform.chat.services.NotificationService notificationService, org.exoplatform.chat.services.TokenService tokenService) org.exoplatform.chat.model.RoomsBeangetUserRooms(String user, List<String> onlineUsers, String filter, int offset, int limit, org.exoplatform.chat.services.NotificationService notificationService, org.exoplatform.chat.services.TokenService tokenService, String roomType) booleanisMemberOfRoom(String username, String roomId) Check if an user is member of a roombooleanisRoomEnabled(String room) voidsetRoomEnabled(String room, boolean enabled) voidsetRoomMeetingStatus(String room, boolean start, String startTime) voidsetRoomName(String room, String name) voidvoid
-
Constructor Details
-
ChatServiceImpl
public ChatServiceImpl()
-
-
Method Details
-
write
- Specified by:
writein interfaceorg.exoplatform.chat.services.ChatService
-
write
public void write(String clientId, String message, String sender, String room, String isSystem, String options) - Specified by:
writein interfaceorg.exoplatform.chat.services.ChatService
-
save
- Specified by:
savein interfaceorg.exoplatform.chat.services.ChatService
-
delete
- Specified by:
deletein interfaceorg.exoplatform.chat.services.ChatService
-
getTeamRoomById
- Specified by:
getTeamRoomByIdin interfaceorg.exoplatform.chat.services.ChatService
-
getTeamRoomsByName
- Specified by:
getTeamRoomsByNamein interfaceorg.exoplatform.chat.services.ChatService
-
deleteTeamRoom
- Specified by:
deleteTeamRoomin interfaceorg.exoplatform.chat.services.ChatService
-
edit
- Specified by:
editin interfaceorg.exoplatform.chat.services.ChatService
-
read
- Specified by:
readin interfaceorg.exoplatform.chat.services.ChatService
-
read
- Specified by:
readin interfaceorg.exoplatform.chat.services.ChatService
-
read
public String read(String user, String room, boolean isTextOnly, Long fromTimestamp, Long toTimestamp, int limit) - Specified by:
readin interfaceorg.exoplatform.chat.services.ChatService
-
getMessage
- Specified by:
getMessagein interfaceorg.exoplatform.chat.services.ChatService
-
getSpaceRoom
- Specified by:
getSpaceRoomin interfaceorg.exoplatform.chat.services.ChatService
-
getSpaceRoomByName
- Specified by:
getSpaceRoomByNamein interfaceorg.exoplatform.chat.services.ChatService
-
getTeamRoom
- Specified by:
getTeamRoomin interfaceorg.exoplatform.chat.services.ChatService
-
getExternalRoom
- Specified by:
getExternalRoomin interfaceorg.exoplatform.chat.services.ChatService
-
getTeamCreator
- Specified by:
getTeamCreatorin interfaceorg.exoplatform.chat.services.ChatService
-
setRoomName
- Specified by:
setRoomNamein interfaceorg.exoplatform.chat.services.ChatService
-
isRoomEnabled
- Specified by:
isRoomEnabledin interfaceorg.exoplatform.chat.services.ChatService
-
setRoomEnabled
- Specified by:
setRoomEnabledin interfaceorg.exoplatform.chat.services.ChatService
-
setRoomMeetingStatus
- Specified by:
setRoomMeetingStatusin interfaceorg.exoplatform.chat.services.ChatService
-
getRoom
- Specified by:
getRoomin interfaceorg.exoplatform.chat.services.ChatService
-
getTypeRoomChat
- Specified by:
getTypeRoomChatin interfaceorg.exoplatform.chat.services.ChatService
-
getExistingRooms
public 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) - Specified by:
getExistingRoomsin interfaceorg.exoplatform.chat.services.ChatService
-
getRooms
public 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) - Specified by:
getRoomsin interfaceorg.exoplatform.chat.services.ChatService
-
getRooms
public 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) - Specified by:
getRoomsin interfaceorg.exoplatform.chat.services.ChatService
-
getUserRooms
public org.exoplatform.chat.model.RoomsBean getUserRooms(String user, List<String> onlineUsers, String filter, int offset, int limit, org.exoplatform.chat.services.NotificationService notificationService, org.exoplatform.chat.services.TokenService tokenService) - Specified by:
getUserRoomsin interfaceorg.exoplatform.chat.services.ChatService
-
getUserRooms
public org.exoplatform.chat.model.RoomsBean getUserRooms(String user, List<String> onlineUsers, String filter, int offset, int limit, org.exoplatform.chat.services.NotificationService notificationService, org.exoplatform.chat.services.TokenService tokenService, String roomType) - Specified by:
getUserRoomsin interfaceorg.exoplatform.chat.services.ChatService
-
getNumberOfRooms
public int getNumberOfRooms()- Specified by:
getNumberOfRoomsin interfaceorg.exoplatform.chat.services.ChatService
-
getNumberOfMessages
public int getNumberOfMessages()- Specified by:
getNumberOfMessagesin interfaceorg.exoplatform.chat.services.ChatService
-
isMemberOfRoom
Check if an user is member of a room- Specified by:
isMemberOfRoomin interfaceorg.exoplatform.chat.services.ChatService- Parameters:
username- Username of the userroomId- Id of the room- Returns:
- true if the user is member of the room
-