Class WOPIJsonEnricher

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

@Setup(mode=SINGLETON, priority=2000) public class WOPIJsonEnricher extends AbstractJsonEnricher<BlobProperty>
Gets the WOPI action URLs available for each blob of the document.

Enabled when parameter enrichers.blob:wopi is present.

Blob format is:

 
 {
   "entity-type":"document",
   "properties": {
     "file:content": {
       "name": "...",
       "mime-type": "...",
       ...,
       "wopi": {
         "appName": "Word",
         "view": "http://localhost:8080/nuxeo/wopi/view/REPOSITORY/DOC_ID/file:content",
         "edit": "http://localhost:8080/nuxeo/wopi/edit/REPOSITORY/DOC_ID/file:content"
       }
     },
     "other:xpath": {
       "name": "...",
       "mime-type": "...",
       ...,
       "wopi": {
         "appName": "Excel",
         "view": "http://localhost:8080/nuxeo/wopi/view/REPOSITORY/DOC_ID/other:xpath",
         "edit": "http://localhost:8080/nuxeo/wopi/edit/REPOSITORY/DOC_ID/other:xpath"
       }
     }
   }
 }
 
 
Since:
10.3