Platform Explorer / server 10.10

Extension point MimeTypePreviewer

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

Contribution Descriptor

Existing Contributions

  • nuxeo-platform-3d-core-10.10.jar /OSGI-INF/preview-adapter-contrib.xml
    <extension point="MimeTypePreviewer" target="org.nuxeo.ecm.platform.preview.adapter.PreviewAdapterManagerComponent">
        <previewer class="org.nuxeo.ecm.platform.threed.adapter.ThreeDPreviewer">
          <pattern>model.*|application/x-3ds|application/octet-stream|text/wavefront-obj|application/sla</pattern>
        </previewer>
      </extension>
  • nuxeo-platform-video-core-10.10.jar /OSGI-INF/preview-adapter-contrib.xml
    <extension point="MimeTypePreviewer" target="org.nuxeo.ecm.platform.preview.adapter.PreviewAdapterManagerComponent">
        <previewer class="org.nuxeo.ecm.platform.video.VideoDocumentPreviewer">
          <pattern>video.*</pattern>
        </previewer>
      </extension>
  • nuxeo-preview-core-10.10.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.PdfPreviewer">
            <pattern>application/pdf</pattern>
          </previewer>
          <previewer class="org.nuxeo.ecm.platform.preview.adapter.VideoPreviewer">
            <pattern>video.*</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>
          <previewer class="org.nuxeo.ecm.platform.preview.adapter.MarkdownPreviewer">
            <pattern>text/x-web-markdown</pattern>
          </previewer>
          <previewer class="org.nuxeo.ecm.platform.preview.adapter.OfficePreviewer">
            <!-- Microsoft office documents -->
            <pattern>application/msword</pattern>
            <pattern>application/vnd.ms-powerpoint</pattern>
            <pattern>application/vnd.ms-excel</pattern>
            <!-- Microsoft office 2007 documents -->
            <pattern>application/vnd.openxmlformats-officedocument.wordprocessingml.document</pattern>
            <pattern>application/vnd.openxmlformats-officedocument.presentationml.presentation</pattern>
            <pattern>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</pattern>
            <!-- OpenOffice.org 1.x documents -->
            <pattern>application/vnd.sun.xml.writer</pattern>
            <pattern>application/vnd.sun.xml.writer.template</pattern>
            <pattern>application/vnd.sun.xml.impress</pattern>
            <pattern>application/vnd.sun.xml.impress.template</pattern>
            <pattern>application/vnd.sun.xml.calc</pattern>
            <pattern>application/vnd.sun.xml.calc.template</pattern>
            <pattern>application/vnd.sun.xml.draw</pattern>
            <pattern>application/vnd.sun.xml.draw.template</pattern>
            <!-- OpenOffice.org 2.x documents -->
            <pattern>application/vnd.oasis.opendocument.spreadsheet</pattern>
            <pattern>application/vnd.oasis.opendocument.spreadsheet-template</pattern>
            <pattern>application/vnd.oasis.opendocument.text</pattern>
            <pattern>application/vnd.oasis.opendocument.text-template</pattern>
            <pattern>application/vnd.oasis.opendocument.presentation</pattern>
            <pattern>application/vnd.oasis.opendocument.presentation-template</pattern>
            <pattern>application/vnd.oasis.opendocument.graphics</pattern>
            <pattern>application/vnd.oasis.opendocument.graphics-template</pattern>
            <!-- WordPerfect -->
            <pattern>application/wordperfect</pattern>
          </previewer>
        </extension>
  • nuxeo-platform-imaging-core-10.10.jar /OSGI-INF/preview-adapter-contrib.xml
    <extension point="MimeTypePreviewer" target="org.nuxeo.ecm.platform.preview.adapter.PreviewAdapterManagerComponent">
        <previewer class="org.nuxeo.ecm.platform.picture.preview.adapter.PicturePreviewer">
          <pattern>image.*</pattern>
        </previewer>
      </extension>
  • nuxeo-platform-imaging-tiling-preview-10.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>