Class DirectoryEntryJsonWriter

All Implemented Interfaces:
Marshaller<DirectoryEntry>, Writer<DirectoryEntry>

@Setup(mode=SINGLETON, priority=2000) public class DirectoryEntryJsonWriter extends ExtensibleEntityJsonWriter<DirectoryEntry>
Convert DirectoryEntry to Json.

This marshaller is enrichable: register class implementing AbstractJsonEnricher and managing DirectoryEntry.

This marshaller is also extensible: extend it and simply override ExtensibleEntityJsonWriter.extend(Object, JsonGenerator).

Format is:

 
 {
   "entity-type": "directoryEntry",
   "directoryName": "DIRECTORY_NAME", <- use it to update an existing document
   "properties": {
     <- entry properties depending on the directory schema (password fields are hidden)
     <- format is managed by {@link DocumentPropertiesJsonReader}
   }
             <-- contextParameters if there are enrichers activated
             <-- additional property provided by extend() method
 }
 
 
Since:
7.2