Package org.exoplatform.chat.server
Class ChatServer
- java.lang.Object
-
- org.exoplatform.chat.server.ChatServer
-
@ApplicationScoped public class ChatServer extends Object
-
-
Constructor Summary
Constructors Constructor Description ChatServer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description juzu.Response.Contentdelete(String user, String token, String room, String messageId)juzu.Response.ContentdeleteTeamRoom(String user, String token, String room)juzu.Response.Contentedit(String user, String token, String room, String messageId, String message)juzu.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.ContentgetStatistics()juzu.Response.ContentgetStatus(String user, String token, String targetUser)juzu.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.ContentsaveTeamRoom(String user, String token, String teamName, String room, String users)juzu.Response.Contentsend(String sender, String token, String message, String room, String isSystem, String options)voidsendMailWithAuth(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.ContentsetStatus(String user, String token, String status)juzu.Response.ContenttoggleFavorite(String user, String token, String targetUser, String favorite)juzu.Response.ContentupdateRoomMeetingStatus(String user, String token, String start, String room, String startTime)juzu.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.ContentwhoIsOnline(String user, String onlineUsers, String token, String filter, String limit)
-
-
-
Method Detail
-
index
public juzu.Response.Content index() throws IOException- Throws:
IOException
-
getFilteredList
public juzu.Response.Content getFilteredList(String user, String roomId, String token)
-
getUserRooms
public juzu.Response.Content getUserRooms(String user, String onlineUsers, String token, String filter, String offset, String limit, String roomType)
-
whoIsOnline
public juzu.Response.Content whoIsOnline(String user, String onlineUsers, String token, String filter, String limit)
-
updateUser
public juzu.Response.Content updateUser(String user, String token, String targetUser, String isDeleted, String isEnabled, String isExternal)
-
setExternal
public juzu.Response.Content setExternal(String user, String targetUser, String token, String isExternal)
-
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
public juzu.Response.Content toggleFavorite(String user, String token, String targetUser, String favorite)
-
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
public juzu.Response.Content getRoom(String user, String token, String targetUser, String isAdmin, String withDetail, String type)
-
saveTeamRoom
public juzu.Response.Content saveTeamRoom(String user, String token, String teamName, String room, String users)
-
updateRoomMeetingStatus
public juzu.Response.Content updateRoomMeetingStatus(String user, String token, String start, String room, String startTime)
-
isRoomEnabled
public juzu.Response.Content isRoomEnabled(String user, String token, String spaceId)
-
setRoomEnabled
public juzu.Response.Content setRoomEnabled(String user, String token, String spaceId, Boolean enabled)
-
updateUnreadMessages
public juzu.Response.Content updateUnreadMessages(String room, String user, String token)
-
notification
public juzu.Response.Content notification(String user, String token, String event, String withDetails) throws IOException
- Throws:
IOException
-
getUsers
public juzu.Response.Content getUsers(String user, String token, String onlineUsers, String room, String filter, String limit, String onlineOnly)
-
getUsersCount
public juzu.Response.Content getUsersCount(String user, String token, String room, String filter)
-
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
public static String getResourceBundleLabel(Locale locale, String label)
Get the ressource bundle label.- Returns:
- the ressource bundle label
-
-