Class ChatServer

java.lang.Object
org.exoplatform.chat.server.ChatServer

@ApplicationScoped public class ChatServer extends Object
  • Constructor Details

    • ChatServer

      public ChatServer()
  • Method Details

    • 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)
    • isFavorite

      public juzu.Response.Content isFavorite(String user, String token, String targetUser)
    • 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
    • getStatus

      public juzu.Response.Content getStatus(String user, String token, String targetUser)
    • setStatus

      public juzu.Response.Content setStatus(String user, String token, String status)
    • getCreator

      public juzu.Response.Content getCreator(String user, String token, String room)
    • 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
    • getCurrentUserLanguage

      public static String getCurrentUserLanguage(String userId)
      Gets platform language of current user. In case of any errors return null.
      Returns:
      the platform language