@Setup(mode=SINGLETON, priority=2000) public class TaskWriter extends ExtensibleEntityJsonWriter<Task>
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_TYPE |
static String |
FETCH_ACTORS |
static String |
FETCH_TARGET_DOCUMENT |
static String |
TARGET_DOCUMENT_IDS |
ctx, registry
Constructor and Description |
---|
TaskWriter() |
Modifier and Type | Method and Description |
---|---|
protected static ActionContext |
createActionContext(CoreSession session) |
void |
writeEntityBody(Task item,
org.codehaus.jackson.JsonGenerator jg)
Implement this method to write the entity body.
|
static void |
writeTaskVariables(GraphNode node,
org.codehaus.jackson.JsonGenerator jg,
MarshallerRegistry registry,
RenderingContext ctx,
SchemaManager schemaManager) |
static void |
writeWorkflowVariables(DocumentRoute route,
GraphNode node,
org.codehaus.jackson.JsonGenerator jg,
MarshallerRegistry registry,
RenderingContext ctx,
SchemaManager schemaManager) |
extend, write
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField
public static final String FETCH_ACTORS
public static final String TARGET_DOCUMENT_IDS
public static final String FETCH_TARGET_DOCUMENT
public static final String ENTITY_TYPE
public TaskWriter()
public void writeEntityBody(Task item, org.codehaus.jackson.JsonGenerator jg) throws IOException
ExtensibleEntityJsonWriter
writeEntityBody
in class ExtensibleEntityJsonWriter<Task>
item
- The Java entity.jg
- A JsonGenerator
ready to write your entity as Json.IOException
protected static ActionContext createActionContext(CoreSession session)
public static void writeTaskVariables(GraphNode node, org.codehaus.jackson.JsonGenerator jg, MarshallerRegistry registry, RenderingContext ctx, SchemaManager schemaManager) throws IOException, org.codehaus.jackson.JsonGenerationException
IOException
org.codehaus.jackson.JsonGenerationException
public static void writeWorkflowVariables(DocumentRoute route, GraphNode node, org.codehaus.jackson.JsonGenerator jg, MarshallerRegistry registry, RenderingContext ctx, SchemaManager schemaManager) throws IOException, org.codehaus.jackson.JsonGenerationException
IOException
org.codehaus.jackson.JsonGenerationException
Copyright © 2016 Nuxeo SA. All rights reserved.