Class BreadcrumbJsonEnricher

All Implemented Interfaces:
Marshaller<Enriched<DocumentModel>>, Writer<Enriched<DocumentModel>>

@Setup(mode=SINGLETON, priority=2000) public class BreadcrumbJsonEnricher extends AbstractJsonEnricher<DocumentModel>
Enrich DocumentModel Json.

Add document breadcrumb (list of all parents document) as json attachment.

Enable if parameter enrichers-document=breadcrumb is present.

Format is:

 {
   "entity-type":"document",
   ...
   "contextParameters": {
     "breadcrumb": { see DocumentModelListJsonWriter for format }
   }
 }
 
Since:
7.2
  • Field Details

  • Constructor Details

    • BreadcrumbJsonEnricher

      public BreadcrumbJsonEnricher()
  • Method Details