Package org.exoplatform.chat.server
Class ChatServer
java.lang.Object
org.exoplatform.chat.server.ChatServer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjuzu.Response.Contentjuzu.Response.ContentdeleteTeamRoom(String user, String token, String room) juzu.Response.Contentjuzu.Response.ContentgetCreator(String user, String token, String room) static StringgetCurrentUserLanguage(String userId) Gets platform language of current user.juzu.Response.ContentgetFilteredList(String user, String roomId, String token) juzu.Response.ContentgetMeetingNotes(String user, String token, String room, String fromTimestamp, String toTimestamp, String portalURI, juzu.request.ApplicationContext applicationContext, juzu.request.UserContext userContext) static StringgetResourceBundleLabel(Locale locale, String label) Get the ressource bundle label.juzu.Response.ContentgetRoom(String user, String token, String targetUser, String isAdmin, String withDetail, String type) juzu.Response.Contentjuzu.Response.Contentjuzu.Response.ContentgetUserDesktopNotificationSettings(String user, String token) juzu.Response.ContentgetUserRooms(String user, String onlineUsers, String token, String filter, String offset, String limit, String roomType) juzu.Response.ContentgetUsers(String user, String token, String onlineUsers, String room, String filter, String limit, String onlineOnly) juzu.Response.ContentgetUsersCount(String user, String token, String room, String filter) juzu.Response.Contentindex()juzu.Response.ContentisFavorite(String user, String token, String targetUser) juzu.Response.ContentisRoomEnabled(String user, String token, String spaceId) juzu.Response.Contentnotification(String user, String token, String event, String withDetails) juzu.Response.Contentread(String user, String token, String room, String fromTimestamp, String toTimestamp, String isTextOnly, String limit) juzu.Response.Contentjuzu.Response.ContentvoidsendMailWithAuth(String senderFullname, String senderMail, List<String> toList, String htmlBody, String subject, Map<String, String> inlineImages) juzu.Response.ContentsendMeetingNotes(String user, String token, String room, String fromTimestamp, String toTimestamp, juzu.request.ApplicationContext applicationContext, juzu.request.UserContext userContext) juzu.Response.ContentsetExternal(String user, String targetUser, String token, String isExternal) juzu.Response.ContentsetNotificationSettings(String user, String token, String room, String[] notifConditions, String[] notifManners, Long time) juzu.Response.ContentsetNotificationTrigger(String user, String token, String notifCondition) juzu.Response.ContentsetPreferredNotification(String user, String token, String notifManner) juzu.Response.ContentsetRoomEnabled(String user, String token, String spaceId, Boolean enabled) juzu.Response.ContentsetRoomNotificationTrigger(String user, String token, String room, String notifCondition, String notifConditionType, Long time) juzu.Response.Contentjuzu.Response.ContenttoggleFavorite(String user, String token, String targetUser, String favorite) juzu.Response.Contentjuzu.Response.ContentupdateUnreadMessages(String room, String user, String token) juzu.Response.ContentupdateUser(String user, String token, String targetUser, String isDeleted, String isEnabled, String isExternal) juzu.Response.Content
-
Constructor Details
-
ChatServer
public ChatServer()
-
-
Method Details
-
index
- Throws:
IOException
-
getFilteredList
-
getUserRooms
-
whoIsOnline
-
updateUser
-
setExternal
-
send
public juzu.Response.Content send(String sender, String token, String message, String room, String isSystem, String options) throws IOException - Throws:
IOException
-
read
public juzu.Response.Content read(String user, String token, String room, String fromTimestamp, String toTimestamp, String isTextOnly, String limit) throws IOException - Throws:
IOException
-
sendMeetingNotes
public juzu.Response.Content sendMeetingNotes(String user, String token, String room, String fromTimestamp, String toTimestamp, juzu.request.ApplicationContext applicationContext, juzu.request.UserContext userContext) throws IOException - Throws:
IOException
-
getMeetingNotes
public juzu.Response.Content getMeetingNotes(String user, String token, String room, String fromTimestamp, String toTimestamp, String portalURI, juzu.request.ApplicationContext applicationContext, juzu.request.UserContext userContext) throws IOException - Throws:
IOException
-
delete
public juzu.Response.Content delete(String user, String token, String room, String messageId) throws IOException - Throws:
IOException
-
deleteTeamRoom
public juzu.Response.Content deleteTeamRoom(String user, String token, String room) throws IOException - Throws:
IOException
-
edit
public juzu.Response.Content edit(String user, String token, String room, String messageId, String message) throws IOException - Throws:
IOException
-
toggleFavorite
-
isFavorite
-
getUserDesktopNotificationSettings
public juzu.Response.Content getUserDesktopNotificationSettings(String user, String token) throws org.json.JSONException - Throws:
org.json.JSONException
-
setPreferredNotification
public juzu.Response.Content setPreferredNotification(String user, String token, String notifManner) throws org.json.JSONException - Throws:
org.json.JSONException
-
setRoomNotificationTrigger
public juzu.Response.Content setRoomNotificationTrigger(String user, String token, String room, String notifCondition, String notifConditionType, Long time) throws org.json.JSONException - Throws:
org.json.JSONException
-
setNotificationSettings
public juzu.Response.Content setNotificationSettings(String user, String token, String room, String[] notifConditions, String[] notifManners, Long time) throws org.json.JSONException - Throws:
org.json.JSONException
-
setNotificationTrigger
public juzu.Response.Content setNotificationTrigger(String user, String token, String notifCondition) throws org.json.JSONException - Throws:
org.json.JSONException
-
getRoom
-
saveTeamRoom
-
updateRoomMeetingStatus
-
isRoomEnabled
-
setRoomEnabled
-
updateUnreadMessages
-
notification
public juzu.Response.Content notification(String user, String token, String event, String withDetails) throws IOException - Throws:
IOException
-
getStatus
-
setStatus
-
getCreator
-
getUsers
-
getUsersCount
-
getStatistics
public juzu.Response.Content getStatistics() -
sendMailWithAuth
public void sendMailWithAuth(String senderFullname, String senderMail, List<String> toList, String htmlBody, String subject, Map<String, String> inlineImages) throws Exception- Throws:
Exception
-
getResourceBundleLabel
Get the ressource bundle label.- Returns:
- the ressource bundle label
-
getCurrentUserLanguage
Gets platform language of current user. In case of any errors return null.- Returns:
- the platform language
-