Class ConfigurationPropertiesJsonWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<EntityType>
org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter<ConfigurationProperties>
org.nuxeo.ecm.restapi.jaxrs.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
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getMaskedSensitiveValue
(String key, String value) protected void
writeArrayProperty
(String key, String[] value, com.fasterxml.jackson.core.JsonGenerator jg) void
writeEntityBody
(ConfigurationProperties entity, com.fasterxml.jackson.core.JsonGenerator jg) Implement this method to write the entity body.protected void
writeProperties
(String name, Properties properties, com.fasterxml.jackson.core.JsonGenerator jg) protected void
writeProperty
(Object k, Object v, com.fasterxml.jackson.core.JsonGenerator jg) protected void
writeStringProperty
(String key, String value, com.fasterxml.jackson.core.JsonGenerator jg) 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:
-
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:ExtensibleEntityJsonWriter
Implement this method to write the entity body.- Specified by:
writeEntityBody
in classExtensibleEntityJsonWriter<ConfigurationProperties>
- Parameters:
entity
- The Java entity.jg
- AJsonGenerator
ready 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
-