How to override a WebAdapter?

I need a custom implementation to manage preview depending on the specific document type and may be additional document content logic.

I have not found a better idea than to override the “preview” web adapter, but my tests to do this have been unsuccessful so far.

Can a WebAdapter be overriden?

0 votes

1 answers

995 views

ANSWER



Hello,

You don't need a web adapter to fulfil this requirement. You have to create an extension point http://explorer.nuxeo.com/nuxeo/site/distribution/server-10.10/viewExtensionPoint/org.nuxeo.ecm.platform.preview.adapter.PreviewAdapterManagerComponent–MimeTypePreviewer. You'll get all needed details in https://doc.nuxeo.com/nxdoc/preview/.

Regards

0 votes