Class PreviewJsonEnricher

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

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

Add DocumentModel's preview url as json attachment.

Enable if parameter enrichers-document=preview is present.

Format is:

 {
   "entity-type":"document",
   ...
   "contextParameters": {
     "preview": {
       "url": "PREVIEW_URL"
     },
   }
 }
 
Since:
7.2
  • Field Details

  • Constructor Details

    • PreviewJsonEnricher

      public PreviewJsonEnricher()
  • Method Details