Class DocumentUrlJsonEnricher

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

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

Add DocumentModel's document url as json attachment.

Enable if parameter enrichers-document=documentURL is present.

Format is:

 {
   "entity-type":"document",
   ...
   "contextParameters": {
     "documentURL": "DOCUMENT_URL"
   }
 }
 
Since:
7.2
  • Field Details

  • Constructor Details

    • DocumentUrlJsonEnricher

      public DocumentUrlJsonEnricher()
  • Method Details