Platform Explorer / Nuxeo Platform LTS 2015 7.10

Component org.nuxeo.ecm.automation.io.rest.contributor.contrib

Services

Extension points

Contributions

XML source

<component name="org.nuxeo.ecm.automation.io.rest.contributor.contrib">
  <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>

  <extension target="org.nuxeo.ecm.automation.io.services.enricher.ContentEnricherService" point="enricher">

    <enricher name="acls" class="org.nuxeo.ecm.automation.io.services.enricher.ACLContentEnricher">
      <category>acls</category>
    </enricher>
    <enricher name="permissions" class="org.nuxeo.ecm.automation.io.services.enricher.UserPermissionsContentEnricher">
      <category>permissions</category>
      <parameter name="permissions">Read,Write,Everything</parameter>
    </enricher>
    <enricher name="thumbnail" class="org.nuxeo.ecm.automation.io.services.enricher.ThumbnailContentEnricher">
      <category>thumbnail</category>
    </enricher>
    <enricher name="preview" class="org.nuxeo.ecm.automation.io.services.enricher.PreviewContentEnricher">
      <category>preview</category>
    </enricher>

  </extension>

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