Class NuxeoGroupJsonReader

  • All Implemented Interfaces:
    Marshaller<NuxeoGroup>, Reader<NuxeoGroup>

    @Setup(mode=SINGLETON,
           priority=2000)
    public class NuxeoGroupJsonReader
    extends EntityJsonReader<NuxeoGroup>
    Convert Json as 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",
         ...
       ]
     }
     
    Since:
    7.2
    • Constructor Detail

      • NuxeoGroupJsonReader

        public NuxeoGroupJsonReader()
    • Method Detail

      • 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)