We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.collaborationengine.
Class JsonUtil
- java.lang.Object
-
- com.vaadin.collaborationengine.JsonUtil
-
public class JsonUtil extends Object
Utility methods to create JSON nodes.
Since:
1.0
Author:
Vaadin Ltd
-
-
Field Summary
Fields Modifier and Type Field Description static String
CHANGE_NODE_ID
static String
CHANGE_NODE_JOIN
static String
CHANGE_NODE_LEAVE
static String
CHANGE_SCOPE_OWNER
static com.fasterxml.jackson.core.type.TypeReference<List<com.vaadin.collaborationengine.CollaborationBinder.FocusedEditor>>
EDITORS_TYPE_REF
static com.fasterxml.jackson.core.type.TypeReference<List<UserInfo>>
LIST_USER_TYPE_REF
-
Method Summary
All Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.node.ObjectNode
createNodeJoin(UUID id)
Creates a JSON payload of a node join event.
static com.fasterxml.jackson.databind.node.ObjectNode
createNodeLeave(UUID id)
Creates a JSON payload of a node leave event.
-
-
-
Field Detail
-
CHANGE_NODE_ID
public static final String CHANGE_NODE_ID
See Also:
-
CHANGE_NODE_JOIN
public static final String CHANGE_NODE_JOIN
See Also:
-
CHANGE_NODE_LEAVE
public static final String CHANGE_NODE_LEAVE
See Also:
-
CHANGE_SCOPE_OWNER
public static final String CHANGE_SCOPE_OWNER
See Also:
-
LIST_USER_TYPE_REF
public static final com.fasterxml.jackson.core.type.TypeReference<List<UserInfo>> LIST_USER_TYPE_REF
-
EDITORS_TYPE_REF
public static final com.fasterxml.jackson.core.type.TypeReference<List<com.vaadin.collaborationengine.CollaborationBinder.FocusedEditor>> EDITORS_TYPE_REF
-
-
Method Detail
-
createNodeJoin
public static com.fasterxml.jackson.databind.node.ObjectNode createNodeJoin(UUID id)
Creates a JSON payload of a node join event.
Parameters:
id
- the node id, notnull
Returns:
the payload
-
createNodeLeave
public static com.fasterxml.jackson.databind.node.ObjectNode createNodeLeave(UUID id)
Creates a JSON payload of a node leave event.
Parameters:
id
- the node id, notnull
Returns:
the payload
-
-