Class NuxeoGroupJsonReader
- java.lang.Object
-
- org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader<EntityType>
-
- org.nuxeo.ecm.core.io.marshallers.json.EntityJsonReader<NuxeoGroup>
-
- org.nuxeo.ecm.platform.usermanager.io.NuxeoGroupJsonReader
-
- All Implemented Interfaces:
Marshaller<NuxeoGroup>,Reader<NuxeoGroup>
@Setup(mode=SINGLETON, priority=2000) public class NuxeoGroupJsonReader extends EntityJsonReader<NuxeoGroup>
Convert Json asNuxeoGroup.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", ... ] }- Since:
- 7.2
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
ctx, registry
-
-
Constructor Summary
Constructors Constructor Description NuxeoGroupJsonReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NuxeoGroupreadEntity(com.fasterxml.jackson.databind.JsonNode jn)Implement this method to read the entity.protected voidreadMemberGroups(DocumentModel groupModel, GroupConfig groupConfig, com.fasterxml.jackson.databind.JsonNode jn)protected voidreadMemberUsers(DocumentModel groupModel, GroupConfig groupConfig, com.fasterxml.jackson.databind.JsonNode jn)protected voidreadParentGroups(DocumentModel groupModel, GroupConfig groupConfig, com.fasterxml.jackson.databind.JsonNode jn)protected voidreadProperties(DocumentModel groupModel, GroupConfig groupConfig, com.fasterxml.jackson.databind.JsonNode jn)-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.EntityJsonReader
read
-
Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonReader
accept, getBooleanField, getLongField, getNode, getStringField, getStringListField, read, readEntity
-
-
-
-
Method Detail
-
readEntity
protected NuxeoGroup readEntity(com.fasterxml.jackson.databind.JsonNode jn) throws IOException
Description copied from class:EntityJsonReaderImplement this method to read the entity.- Specified by:
readEntityin classEntityJsonReader<NuxeoGroup>- Parameters:
jn- AJsonNodepointing at the root of the json input.- Returns:
- The parsed entity.
- Throws:
IOException
-
readProperties
protected void readProperties(DocumentModel groupModel, GroupConfig groupConfig, com.fasterxml.jackson.databind.JsonNode jn) throws IOException
- Throws:
IOException
-
readMemberUsers
protected void readMemberUsers(DocumentModel groupModel, GroupConfig groupConfig, com.fasterxml.jackson.databind.JsonNode jn)
-
readMemberGroups
protected void readMemberGroups(DocumentModel groupModel, GroupConfig groupConfig, com.fasterxml.jackson.databind.JsonNode jn)
-
readParentGroups
protected void readParentGroups(DocumentModel groupModel, GroupConfig groupConfig, com.fasterxml.jackson.databind.JsonNode jn)
-
-