Class DocumentRouteWriter
- java.lang.Object
-
- org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<EntityType>
-
- org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter<DocumentRoute>
-
- org.nuxeo.ecm.platform.routing.core.io.DocumentRouteWriter
-
- All Implemented Interfaces:
Marshaller<DocumentRoute>
,Writer<DocumentRoute>
@Setup(mode=SINGLETON, priority=2000) public class DocumentRouteWriter extends ExtensibleEntityJsonWriter<DocumentRoute>
- Since:
- 7.2
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTACHED_DOCUMENT_IDS
static String
ENTITY_TYPE
static String
FETCH_ATTACHED_DOCUMENTS
static String
FETCH_INITATIOR
-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry
-
-
Constructor Summary
Constructors Constructor Description DocumentRouteWriter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getGraphResourceURL(DocumentRoute route, RenderingContext ctx)
protected void
writeEntityBody(DocumentRoute item, com.fasterxml.jackson.core.JsonGenerator jg)
Implement this method to write the entity body.static void
writeVariables(DocumentRoute item, com.fasterxml.jackson.core.JsonGenerator jg, MarshallerRegistry registry, RenderingContext ctx, SchemaManager schemaManager)
-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter
extend, write
-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
-
-
-
Field Detail
-
ATTACHED_DOCUMENT_IDS
public static final String ATTACHED_DOCUMENT_IDS
- See Also:
- Constant Field Values
-
FETCH_ATTACHED_DOCUMENTS
public static final String FETCH_ATTACHED_DOCUMENTS
- See Also:
- Constant Field Values
-
ENTITY_TYPE
public static final String ENTITY_TYPE
- See Also:
- Constant Field Values
-
FETCH_INITATIOR
public static final String FETCH_INITATIOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeEntityBody
protected void writeEntityBody(DocumentRoute item, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
Description copied from class:ExtensibleEntityJsonWriter
Implement this method to write the entity body.- Specified by:
writeEntityBody
in classExtensibleEntityJsonWriter<DocumentRoute>
- Parameters:
item
- The Java entity.jg
- AJsonGenerator
ready to write your entity as Json.- Throws:
IOException
-
writeVariables
public static void writeVariables(DocumentRoute item, com.fasterxml.jackson.core.JsonGenerator jg, MarshallerRegistry registry, RenderingContext ctx, SchemaManager schemaManager) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
- Throws:
IOException
com.fasterxml.jackson.core.JsonGenerationException
- Since:
- 8.3
-
getGraphResourceURL
public static String getGraphResourceURL(DocumentRoute route, RenderingContext ctx)
- Since:
- 10.1
-
-