@Setup(mode=SINGLETON, priority=2000) public class NuxeoPrincipalJsonReader extends EntityJsonReader<NuxeoPrincipal>
NuxeoPrincipal.
 Format is (any additional json property is ignored):
 {
   "entity-type":"user",
   "id":"USERNAME",
   "properties":{   <- depending on the user schema / format is managed by DocumentPropertiesJsonReader
     "firstName":"FIRSTNAME",
     "lastName":"LASTNAME",
     "username":"USERNAME",
     "email":"[email protected]",
     "company":"COMPANY",
     "password":"", <- ALWAYS EMPTY
     "groups":[
       "GROUP1 NAME OF THE USER",
       "GROUP2 NAME OF THE USER",
       ...
     ]
   }
 }
 
 ctx, registry| Constructor and Description | 
|---|
NuxeoPrincipalJsonReader()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected NuxeoPrincipal | 
readEntity(com.fasterxml.jackson.databind.JsonNode jn)
Implement this method to read the entity. 
 | 
readaccept, getBooleanField, getLongField, getNode, getStringField, getStringListField, read, readEntitypublic NuxeoPrincipalJsonReader()
protected NuxeoPrincipal readEntity(com.fasterxml.jackson.databind.JsonNode jn) throws IOException
EntityJsonReaderreadEntity in class EntityJsonReader<NuxeoPrincipal>jn - A JsonNode pointing at the root of the json input.IOExceptionCopyright © 2019 Nuxeo. All rights reserved.