Package org.nuxeo.user.preferences.io
Class UserPreferenceJsonWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<UserPreference>
org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter<UserPreference>
org.nuxeo.user.preferences.io.UserPreferenceJsonWriter
- All Implemented Interfaces:
Marshaller<UserPreference>,Writer<UserPreference>
@Setup(mode=SINGLETON,
priority=2000)
public class UserPreferenceJsonWriter
extends ExtensibleEntityJsonWriter<UserPreference>
- Since:
- 2025.16
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwriteEntityBody(UserPreference entity, 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, writeMethods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, writeEntity, writeEntity, writeEntityArrayField, writeEntityArrayField, writeEntityField, writeNumberFieldIfNotNull, writeObjectFieldIfNotEmpty, writeObjectFieldIfNotNull, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField, writeStringFieldIfNotNull, writeTemporalField
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
UserPreferenceJsonWriter
public UserPreferenceJsonWriter()
-
-
Method Details
-
writeEntityBody
protected void writeEntityBody(UserPreference 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<UserPreference>- Parameters:
entity- The Java entity.jg- AJsonGeneratorready to write your entity as Json.- Throws:
IOException
-