Class NuxeoPrincipalJsonReader

All Implemented Interfaces:
Marshaller<NuxeoPrincipal>, Reader<NuxeoPrincipal>

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

    • NuxeoPrincipalJsonReader

      public NuxeoPrincipalJsonReader()
  • Method Details