Package org.nuxeo.ecm.core.bulk.io
Class BulkCommandJsonWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<BulkCommand>
org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter<BulkCommand>
org.nuxeo.ecm.core.bulk.io.BulkCommandJsonWriter
- All Implemented Interfaces:
Marshaller<BulkCommand>,Writer<BulkCommand>
@Setup(mode=SINGLETON,
priority=2000)
public class BulkCommandJsonWriter
extends ExtensibleEntityJsonWriter<BulkCommand>
- Since:
- 10.2
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwriteEntityBody(BulkCommand command, com.fasterxml.jackson.core.JsonGenerator jg) Implement this method to write the entity body.Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter
extend, writeMethods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
Constructor Details
-
BulkCommandJsonWriter
public BulkCommandJsonWriter()
-
-
Method Details
-
writeEntityBody
protected void writeEntityBody(BulkCommand command, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException Description copied from class:ExtensibleEntityJsonWriterImplement this method to write the entity body.- Specified by:
writeEntityBodyin classExtensibleEntityJsonWriter<BulkCommand>- Parameters:
command- The Java entity.jg- AJsonGeneratorready to write your entity as Json.- Throws:
IOException
-