Class JSONDocumentModelReader

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<DocumentModel>

    @Deprecated
    @Provider
    public class JSONDocumentModelReader
    extends Object
    implements javax.ws.rs.ext.MessageBodyReader<DocumentModel>
    Deprecated.
    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.
    Since:
    5.7.2