@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(org.codehaus.jackson.JsonNode jn)
Implement this method to read the entity.
|
protected void |
readMemberGroups(DocumentModel groupModel,
GroupConfig groupConfig,
org.codehaus.jackson.JsonNode jn) |
protected void |
readMemberUsers(DocumentModel groupModel,
GroupConfig groupConfig,
org.codehaus.jackson.JsonNode jn) |
protected void |
readParentGroups(DocumentModel groupModel,
GroupConfig groupConfig,
org.codehaus.jackson.JsonNode jn) |
protected void |
readProperties(DocumentModel groupModel,
GroupConfig groupConfig,
org.codehaus.jackson.JsonNode jn) |
read
accept, getBooleanField, getNode, getStringField, getStringListField, 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
protected void readProperties(DocumentModel groupModel, GroupConfig groupConfig, org.codehaus.jackson.JsonNode jn) throws IOException
IOException
protected void readMemberUsers(DocumentModel groupModel, GroupConfig groupConfig, org.codehaus.jackson.JsonNode jn)
protected void readMemberGroups(DocumentModel groupModel, GroupConfig groupConfig, org.codehaus.jackson.JsonNode jn)
protected void readParentGroups(DocumentModel groupModel, GroupConfig groupConfig, org.codehaus.jackson.JsonNode jn)
Copyright © 2018 Nuxeo. All rights reserved.