Package org.nuxeo.user.preferences.io
Class UserPreferencesJsonWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<UserPreferences>
org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter<UserPreferences>
org.nuxeo.user.preferences.io.UserPreferencesJsonWriter
- All Implemented Interfaces:
Marshaller<UserPreferences>,Writer<UserPreferences>
@Setup(mode=SINGLETON,
priority=2000)
public class UserPreferencesJsonWriter
extends ExtensibleEntityJsonWriter<UserPreferences>
- 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(UserPreferences 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
-
UserPreferencesJsonWriter
public UserPreferencesJsonWriter()
-
-
Method Details
-
writeEntityBody
protected void writeEntityBody(UserPreferences 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<UserPreferences>- Parameters:
entity- The Java entity.jg- AJsonGeneratorready to write your entity as Json.- Throws:
IOException
-