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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static CommentfillCommentEntity(com.fasterxml.jackson.databind.JsonNode jn, Comment comment) protected CommentreadEntity(com.fasterxml.jackson.databind.JsonNode jn) Implement this method to read the entity.protected static voidsetIfExist(com.fasterxml.jackson.databind.JsonNode jn, String key, Consumer<String> consumer) Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.EntityJsonReader
readMethods 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:EntityJsonReaderImplement this method to read the entity.- Specified by:
readEntityin classEntityJsonReader<Comment>- Parameters:
jn- AJsonNodepointing at the root of the json input.- Returns:
- The parsed entity.
-
fillCommentEntity
-
setIfExist
-