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
Fields Modifier and Type Field Description static StringAUTO_GRANT_FIELDstatic StringENABLED_FIELDstatic StringENTITY_TYPEstatic StringID_FIELDstatic StringSECRET_FIELD-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry
-
-
Constructor Summary
Constructors Constructor Description OAuth2ClientWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidwriteEntityBody(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 Detail
-
ENTITY_TYPE
public static final String ENTITY_TYPE
- See Also:
- Constant Field Values
-
ID_FIELD
public static final String ID_FIELD
- Since:
- 11.1
- See Also:
- Constant Field Values
-
SECRET_FIELD
public static final String SECRET_FIELD
- Since:
- 11.1
- See Also:
- Constant Field Values
-
ENABLED_FIELD
public static final String ENABLED_FIELD
- Since:
- 11.1
- See Also:
- Constant Field Values
-
AUTO_GRANT_FIELD
public static final String AUTO_GRANT_FIELD
- Since:
- 11.1
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeEntityBody
protected void writeEntityBody(OAuth2Client client, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
Description copied from class:ExtensibleEntityJsonWriterImplement this method to write the entity body.- Specified by:
writeEntityBodyin classExtensibleEntityJsonWriter<OAuth2Client>- Parameters:
client- The Java entity.jg- AJsonGeneratorready to write your entity as Json.- Throws:
IOException
-
-