Class SubtypesJsonEnricher
- java.lang.Object
-
- org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<Enriched<EntityType>>
-
- org.nuxeo.ecm.core.io.marshallers.json.enrichers.AbstractJsonEnricher<DocumentModel>
-
- org.nuxeo.ecm.core.io.marshallers.json.enrichers.SubtypesJsonEnricher
-
- All Implemented Interfaces:
Marshaller<Enriched<DocumentModel>>,Writer<Enriched<DocumentModel>>
@Deprecated @Setup(mode=SINGLETON, priority=2000) public class SubtypesJsonEnricher extends AbstractJsonEnricher<DocumentModel>
Deprecated.Since 11.5, use the SubtypesJsonEnricher in org.nuxeo.ecm.platform.types instead.EnrichDocumentModelJSON object with an array of the document types that can be created under the current document.- Since:
- 8.4
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAMEDeprecated.-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.enrichers.AbstractJsonEnricher
ENTITY_ENRICHER_NAME, MAPPER
-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry
-
-
Constructor Summary
Constructors Constructor Description SubtypesJsonEnricher()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidwrite(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel enriched)Deprecated.When implementing this method, the providedJsonGeneratorexpect you write a field name and a field value (or many).-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.enrichers.AbstractJsonEnricher
accept, safeReadBuffer, write
-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
-
-
-
Field Detail
-
NAME
public static final String NAME
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SubtypesJsonEnricher
public SubtypesJsonEnricher()
Deprecated.
-
-
Method Detail
-
write
public void write(com.fasterxml.jackson.core.JsonGenerator jg, DocumentModel enriched) throws IOException
Deprecated.Description copied from class:AbstractJsonEnricherWhen implementing this method, the providedJsonGeneratorexpect you write a field name and a field value (or many).- Specified by:
writein classAbstractJsonEnricher<DocumentModel>- Parameters:
jg- TheJsonGeneratorto use.enriched- The enriched entity.- Throws:
IOException
-
-