@Setup(mode=SINGLETON, priority=2000) public class DocumentModelListJsonWriter extends DefaultListJsonWriter<DocumentModel>
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTITY_DOCUMENT_LIST |
ctx, registry| Constructor and Description |
|---|
DocumentModelListJsonWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
write(List<DocumentModel> docs,
org.codehaus.jackson.JsonGenerator jg)
Implement this method to writes the entity in the provided
JsonGenerator. |
extendaccept, getGenerator, write, writeEntity, writeEntity, writeEntityFieldpublic static final String ENTITY_DOCUMENT_LIST
public DocumentModelListJsonWriter()
public void write(List<DocumentModel> docs, org.codehaus.jackson.JsonGenerator jg) throws IOException
AbstractJsonWriterJsonGenerator.
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 provided JsonGenerator. It may be used is another marshaller calling this one.
write in class DefaultListJsonWriter<DocumentModel>docs - The entity to marshall as Json.jg - The JsonGenerator used to produce Json output.IOExceptionCopyright © 2018 Nuxeo. All rights reserved.