@Setup(mode=SINGLETON, priority=2000) public class LogEntryJsonWriter extends ExtensibleEntityJsonWriter<LogEntry>
LogEntry to Json.
This marshaller is enrichable: register class implementing AbstractJsonEnricher and managing LogEntry
.
This marshaller is also extensible: extend it and simply override
ExtensibleEntityJsonWriter#extend(LogEntry, JsonWriter).
Format is:
{
"entity-type":"logEntry",
"category": "LOG_ENTRY_CATEGORY",
"principalName": "LOG_ENTRY_PRINCIPAL",
"comment": "LOG_ENTRY_COMMENT",
"docLifeCycle": "DOC_LIFECYCLE",
"docPath": "DOC_PATH",
"docType": "DOC_TYPE",
"docUUID": "DOC_UUID",
"eventId": "EVENT_ID",
"repositoryId": "REPO_ID",
"eventDate": "LOG_EVENT_DATE",
"logDate": "LOG_DATE"
<-- contextParameters if there are enrichers activated
<-- additional property provided by extend() method
}
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTITY_TYPE |
| Constructor and Description |
|---|
LogEntryJsonWriter() |
writeaccept, writepublic static final String ENTITY_TYPE
Copyright © 2015 Nuxeo SA. All rights reserved.