Class LayoutDefinitionJsonWriter
- java.lang.Object
-
- org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<EntityType>
-
- org.nuxeo.ecm.platform.forms.layout.export.AbstractLayoutJsonWriter<LayoutDefinition>
-
- org.nuxeo.ecm.platform.forms.layout.export.LayoutDefinitionJsonWriter
-
- All Implemented Interfaces:
Marshaller<LayoutDefinition>
,Writer<LayoutDefinition>
@Setup(mode=SINGLETON, priority=2000) public class LayoutDefinitionJsonWriter extends AbstractLayoutJsonWriter<LayoutDefinition>
- Since:
- 10.1
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry
-
-
Constructor Summary
Constructors Constructor Description LayoutDefinitionJsonWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WidgetDefinition
getWidgetDefinition(WidgetReference widgetReference, String category, LayoutDefinition layoutDefinition, LayoutConversionContext ctx, List<WidgetDefinitionConverter> widgetConverters)
void
write(LayoutDefinition entity, com.fasterxml.jackson.core.JsonGenerator jg)
Implement this method to writes the entity in the providedJsonGenerator
.protected void
writeRawDefinition(LayoutRowDefinition layoutRowDef, String defaultName, com.fasterxml.jackson.core.JsonGenerator jg)
-
Methods inherited from class org.nuxeo.ecm.platform.forms.layout.export.AbstractLayoutJsonWriter
cleanAndSort, writeSerializableMapMapField
-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
-
-
-
Method Detail
-
write
public void write(LayoutDefinition entity, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
Description copied from class:AbstractJsonWriter
Implement this method to writes the entity in the providedJsonGenerator
.This method implementation can use injected properties.
The
JsonGenerator
's flushing is done by this abstract class, it's also not not necessary to flush it. Do not close the providedJsonGenerator
. It may be used is another marshaller calling this one.- Specified by:
write
in classAbstractJsonWriter<LayoutDefinition>
- Parameters:
entity
- The entity to marshall as Json.jg
- TheJsonGenerator
used to produce Json output.- Throws:
IOException
-
writeRawDefinition
protected void writeRawDefinition(LayoutRowDefinition layoutRowDef, String defaultName, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
- Throws:
IOException
-
getWidgetDefinition
protected WidgetDefinition getWidgetDefinition(WidgetReference widgetReference, String category, LayoutDefinition layoutDefinition, LayoutConversionContext ctx, List<WidgetDefinitionConverter> widgetConverters)
-
-