Class JSONDocumentModelReader
- java.lang.Object
-
- org.nuxeo.ecm.automation.jaxrs.io.documents.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 byDocumentModelJsonReader
which is registered by default and available to marshalDocumentModel
from the Nuxeo Rest API thanks to the JAX-RS marshallerCoreIODelegate
. On removal, need to remove alsoDocumentModelJsonReaderLegacy
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
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.logging.log4j.Logger
log
Deprecated.
-
Constructor Summary
Constructors Constructor Description JSONDocumentModelReader()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
applyPropertyValues(DocumentModel src, DocumentModel dst)
Deprecated.boolean
isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
Deprecated.DocumentModel
readFrom(Class<DocumentModel> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
Deprecated.static DocumentModel
readJson(com.fasterxml.jackson.core.JsonParser jp, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, javax.servlet.http.HttpServletRequest request)
Deprecated.protected DocumentModel
readRequest(String content, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, javax.servlet.http.HttpServletRequest request)
Deprecated.
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
Deprecated.- Specified by:
isReadable
in interfacejavax.ws.rs.ext.MessageBodyReader<DocumentModel>
-
readFrom
public DocumentModel readFrom(Class<DocumentModel> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
Deprecated.- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<DocumentModel>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
readRequest
protected DocumentModel readRequest(String content, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, javax.servlet.http.HttpServletRequest request) throws IOException
Deprecated.- Throws:
IOException
-
readJson
public static DocumentModel readJson(com.fasterxml.jackson.core.JsonParser jp, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, javax.servlet.http.HttpServletRequest request) throws IOException
Deprecated.- Throws:
IOException
-
applyPropertyValues
public static void applyPropertyValues(DocumentModel src, DocumentModel dst)
Deprecated.
-
-