Class JSONDocumentModelReader

  • All Implemented Interfaces:<DocumentModel>

    public class JSONDocumentModelReader
    extends Object
    since 7.10 The Nuxeo JSON marshalling was migrated to nuxeo-core-io. This class is replaced by DocumentModelJsonReader which is registered by default and available to marshal DocumentModel from the Nuxeo Rest API thanks to the JAX-RS marshaller CoreIODelegate . On removal, need to remove also DocumentModelJsonReaderLegacy because it uses it using reflexion.
    JAX-RS reader for a DocumentModel. If an id is given, it tries to reattach the document to the session. If not, it creates a ready to create DocumentModel filled with the properties found.