Class CommentJsonReader
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader<EntityType>
org.nuxeo.ecm.core.io.marshallers.json.EntityJsonReader<Comment>
org.nuxeo.ecm.platform.comment.impl.CommentJsonReader
- All Implemented Interfaces:
Marshaller<Comment>
,Reader<Comment>
@Setup(mode=SINGLETON,
priority=2000)
public class CommentJsonReader
extends EntityJsonReader<Comment>
- Since:
- 10.3
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
ctx, registry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static Comment
fillCommentEntity
(com.fasterxml.jackson.databind.JsonNode jn, Comment comment) protected Comment
readEntity
(com.fasterxml.jackson.databind.JsonNode jn) Implement this method to read the entity.protected static void
setIfExist
(com.fasterxml.jackson.databind.JsonNode jn, String key, Consumer<String> consumer) Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.EntityJsonReader
read
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
accept, getBooleanField, getLongField, getNode, getStringField, getStringListField, read, readEntity
-
Constructor Details
-
CommentJsonReader
public CommentJsonReader()
-
-
Method Details
-
readEntity
Description copied from class:EntityJsonReader
Implement this method to read the entity.- Specified by:
readEntity
in classEntityJsonReader<Comment>
- Parameters:
jn
- AJsonNode
pointing at the root of the json input.- Returns:
- The parsed entity.
-
fillCommentEntity
-
setIfExist
-