org.exoplatform.chat.utils
Class ChatUtils

java.lang.Object
  extended by org.exoplatform.chat.utils.ChatUtils

public class ChatUtils
extends Object


Constructor Summary
ChatUtils()
           
 
Method Summary
static String cleanString(String str)
          Clean string.
static Object fromString(String s)
          Read the object from Base64 string.
static String getExternalRoomId(String identifier)
           
static String getRoomId(List<String> users)
           
static String getRoomId(String roomName)
           
static String getRoomId(String roomName, String user)
           
static String toString(Serializable o)
          Write the object to a Base64 string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatUtils

public ChatUtils()
Method Detail

getRoomId

public static String getRoomId(String roomName,
                               String user)

getRoomId

public static String getRoomId(String roomName)

getExternalRoomId

public static String getExternalRoomId(String identifier)

getRoomId

public static String getRoomId(List<String> users)

fromString

public static Object fromString(String s)
                         throws IOException,
                                ClassNotFoundException
Read the object from Base64 string.

Throws:
IOException
ClassNotFoundException

toString

public static String toString(Serializable o)
                       throws IOException
Write the object to a Base64 string.

Throws:
IOException

cleanString

public static String cleanString(String str)
Clean string.

Parameters:
str - the str
Returns:
the string


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.