@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", <- deprecated, for backward compatibility
   "grouplabel": "GROUP_DISPLAY_NAME", <- deprecated, for backward compatibility
   "id": "GROUP_NAME",
   "memberUsers": [
     "USERNAME1",
     "USERNAME2",
     ...
   ],
   "memberGroups": [
     "GROUPNAME1",
     "GROUPNAME2",
     ...
   ]
 }
 
 ctx, registry| Constructor and Description | 
|---|
NuxeoGroupJsonReader()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected NuxeoGroup | 
readEntity(com.fasterxml.jackson.databind.JsonNode jn)
Implement this method to read the entity. 
 | 
protected void | 
readMemberGroups(DocumentModel groupModel,
                GroupConfig groupConfig,
                com.fasterxml.jackson.databind.JsonNode jn)  | 
protected void | 
readMemberUsers(DocumentModel groupModel,
               GroupConfig groupConfig,
               com.fasterxml.jackson.databind.JsonNode jn)  | 
protected void | 
readParentGroups(DocumentModel groupModel,
                GroupConfig groupConfig,
                com.fasterxml.jackson.databind.JsonNode jn)  | 
protected void | 
readProperties(DocumentModel groupModel,
              GroupConfig groupConfig,
              com.fasterxml.jackson.databind.JsonNode jn)  | 
readaccept, getBooleanField, getLongField, getNode, getStringField, getStringListField, read, readEntitypublic NuxeoGroupJsonReader()
protected NuxeoGroup readEntity(com.fasterxml.jackson.databind.JsonNode jn) throws IOException
EntityJsonReaderreadEntity in class EntityJsonReader<NuxeoGroup>jn - A JsonNode pointing at the root of the json input.IOExceptionprotected void readProperties(DocumentModel groupModel, GroupConfig groupConfig, com.fasterxml.jackson.databind.JsonNode jn) throws IOException
IOExceptionprotected void readMemberUsers(DocumentModel groupModel, GroupConfig groupConfig, com.fasterxml.jackson.databind.JsonNode jn)
protected void readMemberGroups(DocumentModel groupModel, GroupConfig groupConfig, com.fasterxml.jackson.databind.JsonNode jn)
protected void readParentGroups(DocumentModel groupModel, GroupConfig groupConfig, com.fasterxml.jackson.databind.JsonNode jn)
Copyright © 2019 Nuxeo. All rights reserved.