Class MigrationJsonWriter
- java.lang.Object
- 
- org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<EntityType>
- 
- org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter<Migration>
- 
- org.nuxeo.ecm.restapi.jaxrs.io.management.MigrationJsonWriter
 
 
 
- 
- All Implemented Interfaces:
- Marshaller<Migration>,- Writer<Migration>
 
 @Setup(mode=SINGLETON, priority=2000) public class MigrationJsonWriter extends ExtensibleEntityJsonWriter<Migration> - Since:
- 11.3
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringENTITY_TYPE- 
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriterctx, registry
 
- 
 - 
Constructor SummaryConstructors Constructor Description MigrationJsonWriter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteEntityBody(Migration entity, com.fasterxml.jackson.core.JsonGenerator jg)Implement this method to write the entity body.protected voidwriteMigrationStatus(MigrationService.MigrationStatus status, com.fasterxml.jackson.core.JsonGenerator jg)protected voidwriteMigrationSteps(List<MigrationStep> steps, com.fasterxml.jackson.core.JsonGenerator jg)- 
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriterextend, write
 - 
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriteraccept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
 
- 
 
- 
- 
- 
Field Detail- 
ENTITY_TYPEpublic static final String ENTITY_TYPE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
writeEntityBodypublic void writeEntityBody(Migration entity, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException Description copied from class:ExtensibleEntityJsonWriterImplement this method to write the entity body.- Specified by:
- writeEntityBodyin class- ExtensibleEntityJsonWriter<Migration>
- Parameters:
- entity- The Java entity.
- jg- A- JsonGeneratorready to write your entity as Json.
- Throws:
- IOException
 
 - 
writeMigrationStatusprotected void writeMigrationStatus(MigrationService.MigrationStatus status, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
- IOException
 
 - 
writeMigrationStepsprotected void writeMigrationSteps(List<MigrationStep> steps, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
- IOException
 
 
- 
 
-