@Setup(mode=SINGLETON, priority=2000) public class NuxeoOAuth2ServiceProviderWriter extends ExtensibleEntityJsonWriter<NuxeoOAuth2ServiceProvider>
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_TYPE |
ctx, registry
Constructor and Description |
---|
NuxeoOAuth2ServiceProviderWriter() |
Modifier and Type | Method and Description |
---|---|
protected void |
writeEntityBody(NuxeoOAuth2ServiceProvider provider,
org.codehaus.jackson.JsonGenerator jg)
Implement this method to write the entity body.
|
extend, write
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField
public static final String ENTITY_TYPE
public NuxeoOAuth2ServiceProviderWriter()
protected void writeEntityBody(NuxeoOAuth2ServiceProvider provider, org.codehaus.jackson.JsonGenerator jg) throws IOException
ExtensibleEntityJsonWriter
writeEntityBody
in class ExtensibleEntityJsonWriter<NuxeoOAuth2ServiceProvider>
provider
- The Java entity.jg
- A JsonGenerator
ready to write your entity as Json.IOException
Copyright © 2017 Nuxeo. All rights reserved.