@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.
|
read
accept, getBooleanField, getLongField, getNode, getStringField, getStringListField, read, readEntity
public DirectoryEntryJsonReader()
protected DirectoryEntry readEntity(com.fasterxml.jackson.databind.JsonNode jn) throws IOException
EntityJsonReader
readEntity
in class EntityJsonReader<DirectoryEntry>
jn
- A JsonNode
pointing at the root of the json input.IOException
Copyright © 2019 Nuxeo. All rights reserved.