Class OAuth2ClientWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<EntityType>
org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter<OAuth2Client>
org.nuxeo.ecm.platform.oauth2.clients.OAuth2ClientWriter
- All Implemented Interfaces:
Marshaller<OAuth2Client>
,Writer<OAuth2Client>
@Setup(mode=SINGLETON,
priority=2000)
public class OAuth2ClientWriter
extends ExtensibleEntityJsonWriter<OAuth2Client>
- Since:
- 10.2
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
writeEntityBody
(OAuth2Client client, com.fasterxml.jackson.core.JsonGenerator jg) Implement this method to write the entity body.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 Details
-
ENTITY_TYPE
- See Also:
-
ID_FIELD
- Since:
- 11.1
- See Also:
-
SECRET_FIELD
- Since:
- 11.1
- See Also:
-
ENABLED_FIELD
- Since:
- 11.1
- See Also:
-
AUTO_GRANT_FIELD
- Since:
- 11.1
- See Also:
-
-
Constructor Details
-
OAuth2ClientWriter
public OAuth2ClientWriter()
-
-
Method Details
-
writeEntityBody
protected void writeEntityBody(OAuth2Client client, 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<OAuth2Client>
- Parameters:
client
- The Java entity.jg
- AJsonGenerator
ready to write your entity as Json.- Throws:
IOException
-