@Setup(mode=SINGLETON, priority=2000) public class DirectoryEntryJsonReader extends EntityJsonReader<DirectoryEntry>
DirectoryEntry.
Format is (any additional json property is ignored):
{
"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
}
}
ctx, registry| Constructor and Description |
|---|
DirectoryEntryJsonReader() |
| Modifier and Type | Method and Description |
|---|---|
protected DirectoryEntry |
readEntity(com.fasterxml.jackson.databind.JsonNode jn)
Implement this method to read the entity.
|
readaccept, getBooleanField, getLongField, getNode, getStringField, getStringListField, read, readEntitypublic DirectoryEntryJsonReader()
protected DirectoryEntry readEntity(com.fasterxml.jackson.databind.JsonNode jn) throws IOException
EntityJsonReaderreadEntity in class EntityJsonReader<DirectoryEntry>jn - A JsonNode pointing at the root of the json input.IOExceptionCopyright © 2018 Nuxeo. All rights reserved.