@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(org.codehaus.jackson.JsonNode jn)
Implement this method to read the entity.
|
read
accept, getBooleanField, getNode, getStringField, getStringListField, read, readEntity
public DirectoryEntryJsonReader()
protected DirectoryEntry readEntity(org.codehaus.jackson.JsonNode jn) throws IOException
EntityJsonReader
readEntity
in class EntityJsonReader<DirectoryEntry>
jn
- A JsonNode
pointing at the root of the json input.IOException
Copyright © 2018 Nuxeo. All rights reserved.