Platform Explorer / Nuxeo Platform LTS 2015 7.10

Component org.nuxeo.ecm.automation.io.services.enricher.ContentEnricherService

Implementation

Javadoc: org.nuxeo.ecm.automation.io.services.enricher.ContentEnricherServiceImpl

Services

Extension points

Contributions

XML source

<component name="org.nuxeo.ecm.automation.io.services.enricher.ContentEnricherService">
  <documentation>
    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 a class implementing AbstractJsonEnricher&lt;DocumentModel&gt;
    (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.
  </documentation>

  <implementation class="org.nuxeo.ecm.automation.io.services.enricher.ContentEnricherServiceImpl"/>

  <service>
    <provide interface="org.nuxeo.ecm.automation.io.services.enricher.ContentEnricherService" />
  </service>


  <extension-point name="enricher">
    <documentation>
      <code>
        <enricher name="children" class="org.nuxeo.ecm.automation.rest.test.service.SampleChildrenContributor">
        </enricher>
      </code>
    </documentation>
    <object class="org.nuxeo.ecm.automation.io.services.enricher.ContentEnricherDescriptor"/>
  </extension-point>

</component>

Documentation

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 a 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.