Class ConfigurationPropertiesJsonWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<ConfigurationProperties>
org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter<ConfigurationProperties>
org.nuxeo.ecm.restapi.io.management.ConfigurationPropertiesJsonWriter
- All Implemented Interfaces:
Marshaller<ConfigurationProperties>,Writer<ConfigurationProperties>
@Setup(mode=SINGLETON,
priority=2000)
public class ConfigurationPropertiesJsonWriter
extends ExtensibleEntityJsonWriter<ConfigurationProperties>
- Since:
- 2023
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetMaskedSensitiveValue(String key, String value) protected voidwriteArrayProperty(String key, String[] value, com.fasterxml.jackson.core.JsonGenerator jg) voidwriteEntityBody(ConfigurationProperties entity, com.fasterxml.jackson.core.JsonGenerator jg) Implement this method to write the entity body.protected voidwriteProperties(String name, Properties properties, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwriteProperty(Object k, Object v, com.fasterxml.jackson.core.JsonGenerator jg) protected voidwriteStringProperty(String key, String value, com.fasterxml.jackson.core.JsonGenerator jg) Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter
extend, writeMethods 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:
-
redactor
-
SECRET_KEYS
-
-
Constructor Details
-
ConfigurationPropertiesJsonWriter
public ConfigurationPropertiesJsonWriter()
-
-
Method Details
-
writeEntityBody
public void writeEntityBody(ConfigurationProperties entity, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException Description copied from class:ExtensibleEntityJsonWriterImplement this method to write the entity body.- Specified by:
writeEntityBodyin classExtensibleEntityJsonWriter<ConfigurationProperties>- Parameters:
entity- The Java entity.jg- AJsonGeneratorready to write your entity as Json.- Throws:
IOException
-
writeProperties
protected void writeProperties(String name, Properties properties, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
writeProperty
protected void writeProperty(Object k, Object v, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
writeStringProperty
protected void writeStringProperty(String key, String value, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
writeArrayProperty
protected void writeArrayProperty(String key, String[] value, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException - Throws:
IOException
-
getMaskedSensitiveValue
-