@Setup(mode=SINGLETON, priority=2000) public class NuxeoGroupJsonReader extends EntityJsonReader<NuxeoGroup>
NuxeoGroup
.
Format is (any additional json property is ignored):
{ "entity-type":"group", "groupname": "GROUP_NAME", "grouplabel": "GROUP_DISPLAY_NAME", "memberUsers": [ "USERNAME1", "USERNAME2", ... ], "memberGroups": [ "GROUPNAME1", "GROUPNAME2", ... ] }
ctx, registry
Constructor and Description |
---|
NuxeoGroupJsonReader() |
Modifier and Type | Method and Description |
---|---|
protected NuxeoGroup |
readEntity(org.codehaus.jackson.JsonNode jn)
Implement this method to read the entity.
|
read
accept, getNode, getStringField, read, readEntity
public NuxeoGroupJsonReader()
protected NuxeoGroup readEntity(org.codehaus.jackson.JsonNode jn) throws IOException
EntityJsonReader
readEntity
in class EntityJsonReader<NuxeoGroup>
jn
- A JsonNode
pointing at the root of the json input.IOException
Copyright © 2016 Nuxeo SA. All rights reserved.