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