Class JsonUtil


  • public class JsonUtil
    extends Object
    Utility methods to create JSON nodes.
    Since:
    1.0
    Author:
    Vaadin Ltd
    • Field Detail

      • 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, not null
        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, not null
        Returns:
        the payload