@Setup(mode=SINGLETON, priority=2000) public class CommentJsonWriter extends ExtensibleEntityJsonWriter<Comment>
| Modifier and Type | Field and Description | 
|---|---|
protected CommentManager | 
commentManager  | 
static String | 
FETCH_REPLIES_SUMMARY  | 
ctx, registry| Constructor and Description | 
|---|
CommentJsonWriter()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected static void | 
writeCommentEntity(Comment entity,
                  com.fasterxml.jackson.core.JsonGenerator jg)  | 
protected void | 
writeEntityBody(Comment entity,
               com.fasterxml.jackson.core.JsonGenerator jg)
Implement this method to write the entity body. 
 | 
protected void | 
writeRepliesSummary(CoreSession session,
                   Comment entity,
                   com.fasterxml.jackson.core.JsonGenerator jg)  | 
extend, writeaccept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapFieldpublic static final String FETCH_REPLIES_SUMMARY
@Inject protected CommentManager commentManager
public CommentJsonWriter()
protected void writeEntityBody(Comment entity, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
ExtensibleEntityJsonWriterwriteEntityBody in class ExtensibleEntityJsonWriter<Comment>entity - The Java entity.jg - A JsonGenerator ready to write your entity as Json.IOExceptionprotected static void writeCommentEntity(Comment entity, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
IOExceptionprotected void writeRepliesSummary(CoreSession session, Comment entity, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
IOExceptionCopyright © 2019 Nuxeo. All rights reserved.