public abstract class AbstractCustomJsonESWriter extends Object implements ICustomJsonESWriter
| Modifier and Type | Field and Description |
|---|---|
protected JsonESDocumentWriterCustomizer |
jsonESWriter
Native Nx JsonWriter.
|
protected org.nuxeo.ecm.core.api.CoreSession |
session
Session.
|
| Constructor and Description |
|---|
AbstractCustomJsonESWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
setCurrentSession(org.nuxeo.ecm.core.api.DocumentModel doc)
Set current session (system if asynchronous session,
user session if synchronous session).
|
void |
setJsonESWriter(JsonESDocumentWriterCustomizer jsonESWriter)
Setter of native Nx Json ES Writer.
|
abstract void |
writeData(org.codehaus.jackson.JsonGenerator jg,
org.nuxeo.ecm.core.api.DocumentModel doc,
String[] schemas,
Map<String,String> contextParameters)
Method to add custom data in ES Json flux.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptprotected JsonESDocumentWriterCustomizer jsonESWriter
protected org.nuxeo.ecm.core.api.CoreSession session
public void setJsonESWriter(JsonESDocumentWriterCustomizer jsonESWriter)
setJsonESWriter in interface ICustomJsonESWriterpublic void setCurrentSession(org.nuxeo.ecm.core.api.DocumentModel doc)
setCurrentSession in interface ICustomJsonESWriterpublic abstract void writeData(org.codehaus.jackson.JsonGenerator jg,
org.nuxeo.ecm.core.api.DocumentModel doc,
String[] schemas,
Map<String,String> contextParameters)
throws IOException
writeData in interface ICustomJsonESWriterIOExceptionCopyright © 2019. All rights reserved.