Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-16706

Depreciate ContentEnricherService from Automation and old document's JSON marshaller

    XMLWordPrintable

    Details

    • Tags:
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      Depreciate org.nuxeo.ecm.automation.jaxrs.io.documents.JsonDocumentWriter

      This JAX-RS marshaller was migrated to DocumentModelJsonWriter. To use it in JAX-RS, use JsonCoreIODelegate to forward JAX-RS marshalling to core io. To use it your code, please refer to MarshallerRegistry service or use MarshallerHelper.

      Depreciate all automation ContentEnrichers and the ContentEnricherService

      The JSON marshalling was migrated to nuxeo-core-io. An enricher system is also available. See org.nuxeo.ecm.core.io.marshallers.json.enrichers.BreadcrumbJsonEnricher for an example. To migrate an existing enricher, keep the marshalling code and use it in class implementing AbstractJsonEnricher<DocumentModel> (the use of contextual parameters is a bit different but compatible / you have to manage the enricher's parameters yourself). Don't forget to contribute to service org.nuxeo.ecm.core.io.registry.MarshallerRegistry to register your enricher.

      Show
      Depreciate org.nuxeo.ecm.automation.jaxrs.io.documents.JsonDocumentWriter This JAX-RS marshaller was migrated to DocumentModelJsonWriter. To use it in JAX-RS, use JsonCoreIODelegate to forward JAX-RS marshalling to core io. To use it your code, please refer to MarshallerRegistry service or use MarshallerHelper. Depreciate all automation ContentEnrichers and the ContentEnricherService The JSON marshalling was migrated to nuxeo-core-io. An enricher system is also available. See org.nuxeo.ecm.core.io.marshallers.json.enrichers.BreadcrumbJsonEnricher for an example. To migrate an existing enricher, keep the marshalling code and use it in class implementing AbstractJsonEnricher<DocumentModel> (the use of contextual parameters is a bit different but compatible / you have to manage the enricher's parameters yourself). Don't forget to contribute to service org.nuxeo.ecm.core.io.registry.MarshallerRegistry to register your enricher.
    • Sprint:
      Sprint io 7.2-1, Sprint io 7.2-2
    • Story Points:
      1

      Description

      + Migration guide

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: