Package org.exoplatform.chat.services
Interface ChatService
public interface ChatService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteTeamRoom(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 RoomvoidgetExistingRooms(String user, boolean withPublic, boolean isAdmin, NotificationService notificationService, TokenService tokenService) getExternalRoom(String identifier) getMessage(String roomId, String messageId) intintgetRooms(String user, String filter, boolean withUsers, boolean withSpaces, boolean withPublic, boolean withOffline, boolean isAdmin, NotificationService notificationService, TokenService tokenService) getRooms(String user, List<String> onlineUsers, String filter, boolean withUsers, boolean withSpaces, boolean withPublic, boolean withOffline, boolean isAdmin, int limit, NotificationService notificationService, TokenService tokenService) getSpaceRoom(String space) getSpaceRoomByName(String name) getTeamCreator(String room) getTeamRoom(String team, String user) getTeamRoomById(String roomId) Retrieve a Room by its IDgetTeamRoomsByName(String teamName) Get rooms by namegetTypeRoomChat(String roomId) getUserRooms(String user, List<String> onlineUsers, String filter, int offset, int limit, NotificationService notificationService, TokenService tokenService) getUserRooms(String user, List<String> onlineUsers, String filter, int offset, int limit, NotificationService notificationService, TokenService tokenService, String roomType) booleanisMemberOfRoom(String username, String roomId) booleanisRoomEnabled(String room) voidsetRoomEnabled(String room, boolean enabled) voidsetRoomMeetingStatus(String room, boolean start, String startTime) voidsetRoomName(String room, String name) voidvoid
-
Field Details
-
SPACE_PREFIX
- See Also:
-
TEAM_PREFIX
- See Also:
-
EXTERNAL_PREFIX
- See Also:
-
TYPE_ROOM_USER
- See Also:
-
TYPE_ROOM_SPACE
- See Also:
-
TYPE_ROOM_TEAM
- See Also:
-
TYPE_ROOM_FAVORITE
- See Also:
-
TYPE_ROOM_EXTERNAL
- See Also:
-
TYPE_DELETED
- See Also:
-
TYPE_EDITED
- See Also:
-
DESKTOP_NOTIFICATION
- See Also:
-
ON_SITE
- See Also:
-
BIP
- See Also:
-
NOTIFY_ME_WHEN_MENTION
- See Also:
-
NOTIFY_ME_EVEN_NOT_DISTURB
- See Also:
-
NOTIFY_ME_ON_ROOM_KEY_WORD
- See Also:
-
DO_NOT_NOTIFY_ME_ON_ROOM
- See Also:
-
NOTIFY_ME_ON_ROOM_NORMAL
- See Also:
-
USER_AVATAR_URL
- See Also:
-
-
Method Details
-
write
-
write
-
save
-
delete
-
deleteTeamRoom
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
- Parameters:
roomId- the team room ID to deleteuser- the owner of the team room
-
edit
-
read
-
read
-
read
-
getMessage
-
getSpaceRoom
-
getSpaceRoomByName
-
getTeamRoom
-
getExternalRoom
-
getTeamCreator
-
setRoomName
-
isRoomEnabled
-
setRoomEnabled
-
setRoomMeetingStatus
-
isMemberOfRoom
-
getTeamRoomsByName
Get rooms by name- Parameters:
teamName-- Returns:
-
getTeamRoomById
Retrieve a Room by its ID- Parameters:
roomId- the ID of the room- Returns:
- the room or null if the room doesn't exists
-
getRoom
-
getTypeRoomChat
-
getExistingRooms
List<RoomBean> getExistingRooms(String user, boolean withPublic, boolean isAdmin, NotificationService notificationService, TokenService tokenService) -
getRooms
RoomsBean getRooms(String user, String filter, boolean withUsers, boolean withSpaces, boolean withPublic, boolean withOffline, boolean isAdmin, NotificationService notificationService, TokenService tokenService) -
getRooms
RoomsBean getRooms(String user, List<String> onlineUsers, String filter, boolean withUsers, boolean withSpaces, boolean withPublic, boolean withOffline, boolean isAdmin, int limit, NotificationService notificationService, TokenService tokenService) -
getUserRooms
RoomsBean getUserRooms(String user, List<String> onlineUsers, String filter, int offset, int limit, NotificationService notificationService, TokenService tokenService) -
getUserRooms
RoomsBean getUserRooms(String user, List<String> onlineUsers, String filter, int offset, int limit, NotificationService notificationService, TokenService tokenService, String roomType) -
getNumberOfRooms
int getNumberOfRooms() -
getNumberOfMessages
int getNumberOfMessages()
-