Platform Explorer / Nuxeo Platform LTS 2015 7.10

Extension point MimeTypePreviewer

Allows to contribute default implementation of preview according to the mime type.

Contribution Descriptor

Existing Contributions

  • nuxeo-platform-preview-7.10-HF07.jar /OSGI-INF/preview-adapter-contrib.xml
    <extension point="MimeTypePreviewer" target="org.nuxeo.ecm.platform.preview.adapter.PreviewAdapterManagerComponent">
          <previewer class="org.nuxeo.ecm.platform.preview.adapter.ImagePreviewer">
            <pattern>image.*</pattern>
          </previewer>
          <previewer class="org.nuxeo.ecm.platform.preview.adapter.HtmlPreviewer">
            <pattern>text/html</pattern>
          </previewer>
          <previewer class="org.nuxeo.ecm.platform.preview.adapter.PlainTextPreviewer">
            <pattern>text/plain</pattern>
          </previewer>
        </extension>
  • nuxeo-platform-imaging-tiling-preview-7.10.jar /OSGI-INF/preview-contrib.xml
    <extension point="MimeTypePreviewer" target="org.nuxeo.ecm.platform.preview.adapter.PreviewAdapterManagerComponent">
        <previewer class="org.nuxeo.ecm.platform.pictures.tiles.service.TiledImagePreviewer">
          <pattern>image.*</pattern>
        </previewer>
      </extension>