Package org.nuxeo.audit.io
Class LogEntryJsonReader
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader<LogEntry>
org.nuxeo.ecm.core.io.marshallers.json.EntityJsonReader<LogEntry>
org.nuxeo.audit.io.LogEntryJsonReader
- All Implemented Interfaces:
Marshaller<LogEntry>
,Reader<LogEntry>
@Setup(mode=SINGLETON,
priority=2000)
public class LogEntryJsonReader
extends EntityJsonReader<LogEntry>
- Since:
- 2025.0
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
ctx, registry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LogEntry
readEntity
(com.fasterxml.jackson.databind.JsonNode jn) Implement this method to read the entity.protected Serializable
readExtendedEntity
(com.fasterxml.jackson.databind.JsonNode entryNode) protected void
setIfNonNull
(com.fasterxml.jackson.databind.JsonNode jn, String key, Consumer<String> setter) Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.EntityJsonReader
read
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
accept, getBooleanField, getLongField, getNode, getStringField, getStringListField, read, readEntity
-
Constructor Details
-
LogEntryJsonReader
public LogEntryJsonReader()
-
-
Method Details
-
readEntity
Description copied from class:EntityJsonReader
Implement this method to read the entity.- Specified by:
readEntity
in classEntityJsonReader<LogEntry>
- Parameters:
jn
- AJsonNode
pointing at the root of the json input.- Returns:
- The parsed entity.
- Throws:
IOException
-
readExtendedEntity
protected Serializable readExtendedEntity(com.fasterxml.jackson.databind.JsonNode entryNode) throws IOException - Throws:
IOException
-
setIfNonNull
-