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)
Gets the current context.
|
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)
userId - the user idCopyright © 2003–2017 eXo Platform SAS. All rights reserved.