@Setup(mode=SINGLETON, priority=2000) public class DirectoryEntryJsonWriter extends ExtensibleEntityJsonWriter<DirectoryEntry>
DirectoryEntry
to Json.
This marshaller is enrichable: register class implementing AbstractJsonEnricher
and managing
DirectoryEntry
.
This marshaller is also extensible: extend it and simply override
ExtensibleEntityJsonWriter#extend(DirectoryEntry, JsonWriter)
.
Format is:
{
"entity-type": "directoryEntry",
"directoryName": "DIRECTORY_NAME", <- use it to update an existing document
"properties": {
<- entry properties depending on the directory schema (password fields are hidden)
<- format is managed by DocumentPropertiesJsonReader
}
<-- 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 |
---|
DirectoryEntryJsonWriter() |
Modifier and Type | Method and Description |
---|---|
static String |
getMessageString(String key,
Object[] params,
Locale locale) |
write
accept, write
Copyright © 2015 Nuxeo SA. All rights reserved.