public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
asJSON(Object obj)
As JSON.
|
static ContextInfo |
getCurrentContext(String userId,
Locale locale)
Gets the current context.
|
static Map<String,String> |
getResourceMessages(String bundleName,
Locale locale)
Gets the resource messages.
|
static org.exoplatform.social.core.space.model.Space |
getSpaceByContext()
Gets the space by context.
|
static String |
getSpaceNameByContext()
Gets the space name by context.
|
static String |
spaceRoomName(String spacePrettyName)
Generate a space room name.
|
public static String spaceRoomName(String spacePrettyName)
spacePrettyName - the space pretty namepublic static org.exoplatform.social.core.space.model.Space getSpaceByContext()
public static String getSpaceNameByContext()
public static ContextInfo getCurrentContext(String userId, Locale locale)
userId - the user idlocale - the localepublic static Map<String,String> getResourceMessages(String bundleName, Locale locale)
bundleName - the bundle namelocale - the localeCopyright © 2003–2017 eXo Platform SAS. All rights reserved.