Class ThumbnailJsonEnricher

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

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

Add DocumentModel's thumbnail url as json attachment.

Enable if parameter enrichers-document=thumbnail is present.

Format is:

 
 {
   "entity-type":"document",
   ...
   "contextParameters": {
     "thumbnail": {
       "url": "THUMBNAIL_URL"
     },
   }
 }
 
 
Since:
7.2