Platform Explorer / Nuxeo Platform 2021.7

Component org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService

Documentation

Core mimetype registry service.

Deals with mimetypes registration and mimetype detection (BETA).

@version 2.0

Resolution Order

135
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Start Order

821
The start order represents the order in which this component has been started by the Nuxeo Runtime framework.
This number is interesting to tweak if your Java component interacts with other components, and needs to be started before or after another one.
It can be changed by implementing the method "Component#getApplicationStartedOrder()" on your Java component: components are sorted according to this reference value, in increasing order.
The default value is 1000, and the repository initialization uses number 100. Negative values can also be used.

Implementation

Class: org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService

Services

Extension Points

Contributions

XML Source

<?xml version="1.0"?>

<component
  name="org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService">

  <documentation>
    Core mimetype registry service.

    <p>Deals with mimetypes registration and mimetype detection (BETA).</p>

    @version 2.0
    @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a>
    @author <a href="mailto:lgodard@nuxeo.com">Laurent Godard</a>
    @author <a href="mailto:og@nuxeo.com">Olivier Grisel</a>
  </documentation>

  <implementation
    class="org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService" />

  <service>
    <provide
      interface="org.nuxeo.ecm.platform.mimetype.interfaces.MimetypeRegistry" />
  </service>

  <extension-point name="mimetype">

    <documentation>

      Extension allowing one to register mimetypes.

      <p />

      A mimetype holds meta information about a given mimetype.

      <ul>
        <li>RFC-2046 major</li>
        <li>RFC-2046 minor</li>
        <li>Icon</li>
        <li>List of extensions (the first one will be used as default)</li>
        <li>List of mimetype names</li>
        <li>Boolean flag if a file of this mimetype is binary</li>
        <li>
          Boolean flag onlineEditable if a file of this mimetype is supported by
          online Edit - default is false
        </li>
        <li>
          Boolean flag oleSupported if a file of this mimetype is supported by
          the oleExtract plugin - default is false
        </li>
      </ul>

      For instance :

      <code>

        <mimetype normalized="application/pdf" binary="true"
          iconPath="pdf.png">
          <mimetypes>
            <mimetype>application/pdf</mimetype>
          </mimetypes>
          <extensions>
            <extension>pdf</extension>
          </extensions>
        </mimetype>

      </code>

    </documentation>

    <object class="org.nuxeo.ecm.platform.mimetype.service.MimetypeDescriptor" />

  </extension-point>

  <extension-point name="extension">

    <documentation>

      Extension to register filename extension to mimetype association rules.

      <p />

      Specify how a given extension should be used to detect a mimetype. If the
      extension is marked 'ambiguous', a sniffing of the content of the file is
      advised.

      For instance :

      <code>

        <fileExtension name="xml" mimetype="text/xml" ambiguous="true" />

      </code>

    </documentation>

    <object class="org.nuxeo.ecm.platform.mimetype.service.ExtensionDescriptor" />

  </extension-point>


  <extension
    target="org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService"
    point="mimetype">

    <documentation>

      Default mimetype contributions.

    </documentation>


    <!--  text based document types -->

    <mimetype normalized="text/plain" binary="false" iconPath="text.png">
      <mimetypes>
        <mimetype>text/plain</mimetype>
      </mimetypes>
      <extensions>
        <extension>txt</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="text/html" binary="false" iconPath="text.png">
      <mimetypes>
        <mimetype>text/html</mimetype>
      </mimetypes>
      <extensions>
        <extension>html</extension>
        <extension>xhtml</extension>
        <extension>shtml</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="multipart/related" binary="false" iconPath="text.png">
      <mimetypes>
        <mimetype>multipart/related</mimetype>
      </mimetypes>
      <extensions>
        <extension>mhtml</extension>
        <extension>mht</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="text/structured" binary="false" iconPath="text.png">
      <mimetypes>
        <mimetype>text/structured</mimetype>
      </mimetypes>
      <extensions>
        <extension>stx</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="text/x-rst" binary="false" iconPath="text.png">
      <mimetypes>
        <mimetype>text/x-rst</mimetype>
        <mimetype>text/restructured</mimetype>
      </mimetypes>
      <extensions>
        <extension>rst</extension>
        <extension>rest</extension>
        <extension>restx</extension>
        <extension>rest</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="text/python-source" binary="false"
      iconPath="py.png">
      <mimetypes>
        <mimetype>text/python-source</mimetype>
        <mimetype>text/x-python</mimetype>
      </mimetypes>
      <extensions>
        <extension>py</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="text/java-source" binary="false"
      iconPath="java.png">
      <mimetypes>
        <mimetype>text/java-source</mimetype>
        <mimetype>text/x-java</mimetype>
      </mimetypes>
      <extensions>
        <extension>java</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="text/rtf" binary="true" iconPath="text.png">
      <mimetypes>
        <mimetype>text/rtf</mimetype>
      </mimetypes>
      <extensions>
        <extension>rtf</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="text/x-web-markdown"
     binary="false" iconPath="text.png">
     <mimetypes>
       <mimetype>text/x-web-markdown</mimetype>
     </mimetypes>
     <extensions>
       <extension>md</extension>
       <extension>mkd</extension>
       <extension>markdown</extension>
     </extensions>
   </mimetype>

    <mimetype normalized="message/rfc822" binary="false" iconPath="email.png">
      <mimetypes>
        <mimetype>message/rfc822</mimetype>
      </mimetypes>
      <extensions>
        <extension>eml</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.ms-outlook" binary="true" iconPath="email.png">
      <mimetypes>
        <mimetype>application/vnd.ms-outlook</mimetype>
      </mimetypes>
      <extensions>
        <extension>msg</extension>
      </extensions>
    </mimetype>

    <!--  Microsoft Office document -->

    <mimetype normalized="application/msword" binary="true" iconPath="word.png"
      onlineEditable="true" oleSupported="true">
      <mimetypes>
        <mimetype>application/msword</mimetype>
      </mimetypes>
      <extensions>
        <extension>doc</extension>
        <extension>dot</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.ms-excel" binary="true"
      iconPath="xls.png" onlineEditable="true" oleSupported="true">
      <mimetypes>
        <mimetype>application/vnd.ms-excel</mimetype>
      </mimetypes>
      <extensions>
        <extension>xls</extension>
        <extension>xlt</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.ms-powerpoint" binary="true"
      iconPath="ppt.png" onlineEditable="true" oleSupported="true">
      <mimetypes>
        <mimetype>application/vnd.ms-powerpoint</mimetype>
      </mimetypes>
      <extensions>
        <extension>ppt</extension>
        <extension>pot</extension>
        <extension>pps</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.ms-project" binary="true"
      iconPath="mpp.png">
      <mimetypes>
        <mimetype>application/vnd.ms-project</mimetype>
      </mimetypes>
      <extensions>
        <extension>mpp</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.ms-publisher" binary="true"
      iconPath="pub.png">
      <mimetypes>
        <mimetype>application/vnd.ms-publisher</mimetype>
      </mimetypes>
      <extensions>
        <extension>pub</extension>
      </extensions>
    </mimetype>

    <!--  XML based document types -->

    <mimetype normalized="application/docbook+xml" binary="true"
      iconPath="xml.png">
      <mimetypes>
        <mimetype>application/docbook+xml</mimetype>
      </mimetypes>
      <extensions>
        <extension>doc.xml</extension>
        <extension>docb.xml</extension>
        <extension>docb</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="text/xml" binary="false" iconPath="xml.png">
      <mimetypes>
        <mimetype>text/xml</mimetype>
      </mimetypes>
      <extensions>
        <extension>xml</extension>
        <extension>graffle</extension>
        <extension>twb</extension>
      </extensions>
    </mimetype>

    <!-- OpenOffice.org 1.x document types -->

    <mimetype normalized="application/vnd.sun.xml.writer" binary="true"
      iconPath="sxw.png" oleSupported="true">
      <mimetypes>
        <mimetype>application/vnd.sun.xml.writer</mimetype>
      </mimetypes>
      <extensions>
        <extension>sxw</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.sun.xml.writer.template" binary="true"
      iconPath="stw.png" oleSupported="true">
      <mimetypes>
        <mimetype>application/vnd.sun.xml.writer.template</mimetype>
      </mimetypes>
      <extensions>
        <extension>stw</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.sun.xml.impress" binary="true"
      iconPath="sxi.png" oleSupported="true">
      <mimetypes>
        <mimetype>application/vnd.sun.xml.impress</mimetype>
      </mimetypes>
      <extensions>
        <extension>sxi</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.sun.xml.impress.template"
      binary="true" iconPath="sti.png" oleSupported="true">
      <mimetypes>
        <mimetype>application/vnd.sun.xml.impress.template</mimetype>
      </mimetypes>
      <extensions>
        <extension>sti</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.sun.xml.calc" binary="true"
      iconPath="sxc.png" oleSupported="true">
      <mimetypes>
        <mimetype>application/vnd.sun.xml.calc</mimetype>
      </mimetypes>
      <extensions>
        <extension>sxc</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.sun.xml.calc.template" binary="true"
      iconPath="stc.png" oleSupported="true">
      <mimetypes>
        <mimetype>application/vnd.sun.xml.calc.template</mimetype>
      </mimetypes>
      <extensions>
        <extension>stc</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.sun.xml.draw" binary="true"
      iconPath="sxd.png" oleSupported="true">
      <mimetypes>
        <mimetype>application/vnd.sun.xml.draw</mimetype>
      </mimetypes>
      <extensions>
        <extension>sxd</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.sun.xml.draw.template" binary="true"
      iconPath="std.png" oleSupported="true">
      <mimetypes>
        <mimetype>application/vnd.sun.xml.draw.template</mimetype>
      </mimetypes>
      <extensions>
        <extension>std</extension>
      </extensions>
    </mimetype>

    <!--  OpenOffice.org 2.x document types -->

    <mimetype normalized="application/vnd.oasis.opendocument.spreadsheet"
      binary="true" iconPath="ods.png" oleSupported="true"
      onlineEditable="true">
      <mimetypes>
        <mimetype>application/vnd.oasis.opendocument.spreadsheet</mimetype>
      </mimetypes>
      <extensions>
        <extension>ods</extension>
      </extensions>
    </mimetype>

    <mimetype
      normalized="application/vnd.oasis.opendocument.spreadsheet-template"
      binary="true" iconPath="ots.png" oleSupported="true"
      onlineEditable="true">
      <mimetypes>
        <mimetype>
          application/vnd.oasis.opendocument.spreadsheet-template
        </mimetype>
      </mimetypes>
      <extensions>
        <extension>ots</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.oasis.opendocument.text" binary="true"
      iconPath="odt.png" oleSupported="true" onlineEditable="true">
      <mimetypes>
        <mimetype>application/vnd.oasis.opendocument.text</mimetype>
      </mimetypes>
      <extensions>
        <extension>odt</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.oasis.opendocument.text-template"
      binary="true" iconPath="ott.png" oleSupported="true"
      onlineEditable="true">
      <mimetypes>
        <mimetype>application/vnd.oasis.opendocument.text-template</mimetype>
      </mimetypes>
      <extensions>
        <extension>ott</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.oasis.opendocument.presentation"
      binary="true" iconPath="odp.png" oleSupported="true"
      onlineEditable="true">
      <mimetypes>
        <mimetype>application/vnd.oasis.opendocument.presentation</mimetype>
      </mimetypes>
      <extensions>
        <extension>odp</extension>
      </extensions>
    </mimetype>

    <mimetype
      normalized="application/vnd.oasis.opendocument.presentation-template"
      binary="true" iconPath="otp.png" oleSupported="true"
      onlineEditable="true">
      <mimetypes>
        <mimetype>
          application/vnd.oasis.opendocument.presentation-template
        </mimetype>
      </mimetypes>
      <extensions>
        <extension>otp</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.oasis.opendocument.graphics"
      binary="true" iconPath="odg.png" oleSupported="true"
      onlineEditable="true">
      <mimetypes>
        <mimetype>application/vnd.oasis.opendocument.graphics</mimetype>
      </mimetypes>
      <extensions>
        <extension>odg</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.oasis.opendocument.graphics-template"
      binary="true" iconPath="otg.png" oleSupported="true"
      onlineEditable="true">
      <mimetypes>
        <mimetype>
          application/vnd.oasis.opendocument.graphics-template
        </mimetype>
      </mimetypes>
      <extensions>
        <extension>otg</extension>
      </extensions>
    </mimetype>

    <!--  Adobe PDF -->
    <mimetype normalized="application/pdf" binary="true" iconPath="pdf.png">
      <mimetypes>
        <mimetype>application/pdf</mimetype>
      </mimetypes>
      <extensions>
        <extension>pdf</extension>
      </extensions>
    </mimetype>

    <!--  binaries -->

    <mimetype normalized="application/octet-stream" binary="true"
      iconPath="application.png">
      <mimetypes>
        <mimetype>application/octet-stream</mimetype>
      </mimetypes>
      <extensions />
    </mimetype>

    <!--  Archives -->
    <mimetype normalized="application/x-gtar" binary="true"
      iconPath="tar.png">
      <mimetypes>
        <mimetype>application/x-gtar</mimetype>
      </mimetypes>
      <extensions />
    </mimetype>


    <!-- Ms Office 2007 -->

    <mimetype normalized="application/vnd.ms-word.document.macroEnabled.12"
      binary="true" iconPath="docx.png" onlineEditable="true">
      <mimetypes>
        <mimetype>application/vnd.ms-word.document.macroEnabled.12</mimetype>
      </mimetypes>
      <extensions>
        <extension>docm</extension>
      </extensions>
    </mimetype>


    <mimetype
      normalized="application/vnd.openxmlformats-officedocument.wordprocessingml.document"
      binary="true" iconPath="docx.png" onlineEditable="true">
      <mimetypes>
        <mimetype>
          application/vnd.openxmlformats-officedocument.wordprocessingml.document
        </mimetype>
      </mimetypes>
      <extensions>
        <extension>docx</extension>
      </extensions>
    </mimetype>


    <mimetype normalized="application/vnd.ms-word.template.macroEnabled.12"
      binary="true" iconPath="docx.png" onlineEditable="true">
      <mimetypes>
        <mimetype>application/vnd.ms-word.template.macroEnabled.12</mimetype>
      </mimetypes>
      <extensions>
        <extension>dotm</extension>
      </extensions>
    </mimetype>


    <mimetype
      normalized="application/vnd.openxmlformats-officedocument.wordprocessingml.template"
      binary="true" iconPath="docx.png" onlineEditable="true">
      <mimetypes>
        <mimetype>
          application/vnd.openxmlformats-officedocument.wordprocessingml.template
        </mimetype>
      </mimetypes>
      <extensions>
        <extension>dotx</extension>
      </extensions>
    </mimetype>


    <mimetype
      normalized="application/vnd.ms-powerpoint.slideshow.macroEnabled.12"
      binary="true" iconPath="pptx.png" onlineEditable="true">
      <mimetypes>
        <mimetype>
          application/vnd.ms-powerpoint.slideshow.macroEnabled.12
        </mimetype>
      </mimetypes>
      <extensions>
        <extension>ppsm</extension>
      </extensions>
    </mimetype>


    <mimetype
      normalized="application/vnd.openxmlformats-officedocument.presentationml.slideshow"
      binary="true" iconPath="pptx.png" onlineEditable="true">
      <mimetypes>
        <mimetype>
          application/vnd.openxmlformats-officedocument.presentationml.slideshow
        </mimetype>
      </mimetypes>
      <extensions>
        <extension>ppsx</extension>
      </extensions>
    </mimetype>

    <mimetype
      normalized="application/vnd.ms-powerpoint.presentation.macroEnabled.12"
      binary="true" iconPath="pptx.png" onlineEditable="true">
      <mimetypes>
        <mimetype>
          application/vnd.ms-powerpoint.presentation.macroEnabled.12
        </mimetype>
      </mimetypes>
      <extensions>
        <extension>pptm</extension>
      </extensions>
    </mimetype>


    <mimetype
      normalized="application/vnd.openxmlformats-officedocument.presentationml.presentation"
      binary="true" iconPath="pptx.png" onlineEditable="true">
      <mimetypes>
        <mimetype>
          application/vnd.openxmlformats-officedocument.presentationml.presentation
        </mimetype>
      </mimetypes>
      <extensions>
        <extension>pptx</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.ms-excel.sheet.binary.macroEnabled.12"
      binary="true" iconPath="xlsx.png" onlineEditable="true">
      <mimetypes>
        <mimetype>
          application/vnd.ms-excel.sheet.binary.macroEnabled.12
        </mimetype>
      </mimetypes>
      <extensions>
        <extension>xlsb</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/vnd.ms-excel.sheet.macroEnabled.12"
      binary="true" iconPath="xlsx.png" onlineEditable="true">
      <mimetypes>
        <mimetype>application/vnd.ms-excel.sheet.macroEnabled.12</mimetype>
      </mimetypes>
      <extensions>
        <extension>xlsm</extension>
      </extensions>
    </mimetype>

    <mimetype
      normalized="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
      binary="true" iconPath="xlsx.png" onlineEditable="true">
      <mimetypes>
        <mimetype>
          application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
        </mimetype>
      </mimetypes>
      <extensions>
        <extension>xlsx</extension>
      </extensions>
    </mimetype>

    <!--  element of office 2007, but which one ??? -->
    <mimetype normalized="application/vnd.ms-xpsdocument" binary="true"
      iconPath="xlsx.png" onlineEditable="true">
      <mimetypes>
        <mimetype>application/vnd.ms-xpsdocument</mimetype>
      </mimetypes>
      <extensions>
        <extension>xps</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/zip" binary="true" iconPath="zip.png">
      <mimetypes>
        <mimetype>application/zip</mimetype>
        <mimetype>application/x-zip-compressed</mimetype>
      </mimetypes>
      <extensions>
        <extension>zip</extension>
      </extensions>
    </mimetype>

    <!-- images -->
    <mimetype normalized="image/gif" binary="true" iconPath="image.gif">
      <mimetypes>
        <mimetype>image/gif</mimetype>
      </mimetypes>
      <extensions>
        <extension>gif</extension>
      </extensions>
    </mimetype>
    <mimetype normalized="image/png" binary="true" iconPath="image.gif">
      <mimetypes>
        <mimetype>image/png</mimetype>
      </mimetypes>
      <extensions>
        <extension>png</extension>
      </extensions>
    </mimetype>
    <mimetype normalized="image/jpeg" binary="true" iconPath="image.gif">
      <mimetypes>
        <mimetype>image/jpeg</mimetype>
        <mimetype>image/pjpeg</mimetype>
      </mimetypes>
      <extensions>
        <extension>jpg</extension>
        <extension>jpeg</extension>
      </extensions>
    </mimetype>
    <mimetype normalized="image/x-portable-bitmap" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-portable-bitmap</mimetype>
      </mimetypes>
      <extensions>
        <extension>pbm</extension>
      </extensions>
    </mimetype>
    <mimetype normalized="image/bmp" binary="true" iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-bitmap</mimetype>
        <mimetype>image/bmp</mimetype>

      </mimetypes>
      <extensions>
        <extension>bmp</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="image/x-portable-graymap" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-portable-graymap</mimetype>
      </mimetypes>
      <extensions>
        <extension>ppm</extension>
      </extensions>
    </mimetype>
    <mimetype normalized="image/g3fax" binary="true" iconPath="image.gif">
      <mimetypes>
        <mimetype>image/g3fax</mimetype>
      </mimetypes>
      <extensions>
        <extension>fax</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="image/tiff" binary="true" iconPath="image.gif">
      <mimetypes>
        <mimetype>image/tiff</mimetype>
      </mimetypes>
      <extensions>
        <extension>tiff</extension>
        <extension>tif</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="image/svg+xml" binary="false" iconPath="image.gif">
      <mimetypes>
        <mimetype>image/svg+xml</mimetype>
      </mimetypes>
      <extensions>
        <extension>svg</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="image/x-dpx" binary="true" iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-dpx</mimetype>
      </mimetypes>
      <extensions>
        <extension>dpx</extension>
      </extensions>
    </mimetype>

    <!-- Adobe Illustrator -->
   <mimetype normalized="application/illustrator" binary="false" iconPath="image.gif">
     <mimetypes>
       <mimetype>application/illustrator</mimetype>
     </mimetypes>
     <extensions>
       <extension>ai</extension>
     </extensions>
   </mimetype>

   <!-- Adobe Photoshop -->
   <mimetype normalized="application/photoshop" binary="false" iconPath="image.gif">
     <mimetypes>
       <mimetype>application/photoshop</mimetype>
       <mimetype>application/x-photoshop</mimetype>
       <mimetype>image/photoshop</mimetype>
       <mimetype>image/x-photoshop</mimetype>
       <mimetype>image/psd</mimetype>
       <mimetype>image/x-psd</mimetype>
       <mimetype>image/vnd.adobe.photoshop</mimetype>
       <mimetype>application/psd</mimetype>
       <mimetype>zz-application</mimetype>
       <mimetype>zz-winassoc-psd</mimetype>
       <mimetype>application/vnd.3gpp.pic-bw-small</mimetype> <!-- psb files -->
     </mimetypes>
     <extensions>
       <extension>psd</extension>
       <extension>psb</extension>
     </extensions>
   </mimetype>

    <mimetype normalized="application/x-emf" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>application/x-emf</mimetype>
      </mimetypes>
      <extensions>
        <extension>emf</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/x-vclmtf" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>application/x-vclmtf</mimetype>
      </mimetypes>
      <extensions>
        <extension>vclmtf</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="text/csv" binary="false" iconPath="csv.png">
      <mimetypes>
        <mimetype>text/csv</mimetype>
        <mimetype>text/comma-separated-values</mimetype>
        <mimetype>application/csv</mimetype>
        <mimetype>application/excel</mimetype>
        <mimetype>application/vnd.ms-excel</mimetype>
        <mimetype>application/vnd.msexcel</mimetype>
        <mimetype>text/anytext</mimetype>
      </mimetypes>
      <extensions>
        <extension>csv</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/visio" binary="true"
      iconPath="visio.gif">
      <mimetypes>
        <mimetype>application/vnd.visio</mimetype>
        <mimetype>application/vnd.visio2013</mimetype>
        <mimetype>application/visio</mimetype>
        <mimetype>application/x-visio</mimetype>
        <mimetype>application/visio.drawing</mimetype>
        <mimetype>application/vsd</mimetype>
        <mimetype>application/x-vsd</mimetype>
        <mimetype>image/x-vsd</mimetype>
        <mimetype>zz-application/zz-winassoc-vsd</mimetype>
      </mimetypes>
      <extensions>
        <extension>vsdx</extension>
        <extension>vsd</extension>
        <extension>vst</extension>
      </extensions>
    </mimetype>


    <mimetype normalized="audio/mpeg" binary="true" iconPath="audio.png">
      <mimetypes>
        <mimetype>audio/mpeg</mimetype>
      </mimetypes>
      <extensions>
        <extension>mp3</extension>
        <extension>mpga</extension>
        <extension>mp2</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="audio/x-wav" binary="true" iconPath="wav.png">
      <mimetypes>
        <mimetype>audio/x-wav</mimetype>
      </mimetypes>
      <extensions>
        <extension>wav</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="audio/x-mpegurl" binary="true" iconPath="audio.png">
      <mimetypes>
        <mimetype>audio/x-mpegurl</mimetype>
      </mimetypes>
      <extensions>
        <extension>m3u</extension>
      </extensions>
    </mimetype>



    <mimetype normalized="audio/x-aiff" binary="true" iconPath="audio.png">
      <mimetypes>
        <mimetype>audio/x-aiff</mimetype>
      </mimetypes>
      <extensions>
        <extension>aif</extension>
        <extension>aifc</extension>
        <extension>aiff</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="audio/ogg" binary="true" iconPath="audio.png">
      <mimetypes>
        <mimetype>audio/ogg</mimetype>
      </mimetypes>
      <extensions>
        <extension>ogg</extension>
        <extension>oga</extension>
        <extension>spx</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="audio/flac" binary="true" iconPath="audio.png">
      <mimetypes>
        <mimetype>audio/flac</mimetype>
      </mimetypes>
      <extensions>
        <extension>flac</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/ogg" binary="true" iconPath="audio.png">
      <mimetypes>
        <mimetype>application/ogg</mimetype>
      </mimetypes>
      <extensions>
        <extension>ogm</extension>
        <extension>ogx</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="audio/aac" binary="true" iconPath="audio.png">
      <mimetypes>
        <mimetype>audio/aac</mimetype>
        <mimetype>audio/aacp</mimetype>
        <mimetype>audio/3gpp</mimetype>
        <mimetype>audio/3gpp2</mimetype>
        <mimetype>audio/mp4</mimetype>
        <mimetype>audio/MP4A-LATM</mimetype>
        <mimetype>audio/mpeg4-generic</mimetype>
      </mimetypes>
      <extensions>
        <extension>aac</extension>
        <extension>m4a</extension>
        <extension>m4b</extension>
        <extension>m4p</extension>
        <extension>m4r</extension>
        <extension>mp4</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="audio/x-matroska" binary="true" iconPath="audio.png">
      <mimetypes>
        <mimetype>audio/x-matroska</mimetype>
      </mimetypes>
      <extensions>
        <extension>mka</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="audio/x-ms-wax" binary="true" iconPath="audio.png">
      <mimetypes>
        <mimetype>audio/x-ms-wax</mimetype>
      </mimetypes>
      <extensions>
        <extension>wax</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="audio/x-ms-wma" binary="true" iconPath="audio.png">
      <mimetypes>
        <mimetype>audio/x-ms-wma</mimetype>
      </mimetypes>
      <extensions>
        <extension>wma</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/mpeg" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/mpeg</mimetype>
      </mimetypes>
      <extensions>
        <extension>mpa</extension>
        <extension>mpe</extension>
        <extension>mpeg</extension>
        <extension>mpg</extension>
        <extension>mpv2</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/mp4" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/mp4</mimetype>
      </mimetypes>
      <extensions>
        <extension>mp4</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/MP2T" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/MP2T</mimetype>
      </mimetypes>
      <extensions>
        <extension>mts</extension>
        <extension>m2t</extension>
        <extension>m2ts</extension>
        <extension>ts</extension>
        <extension>tsa</extension>
        <extension>tsv</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/quicktime" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/quicktime</mimetype>
      </mimetypes>
      <extensions>
        <extension>mov</extension>
        <extension>qt</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/ogg" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/ogg</mimetype>
      </mimetypes>
      <extensions>
        <extension>ogv</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/webm" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/webm</mimetype>
      </mimetypes>
      <extensions>
        <extension>webm</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/x-matroska" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/x-matroska</mimetype>
      </mimetypes>
      <extensions>
        <extension>mkv</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/x-ms-asf" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/x-ms-asf</mimetype>
      </mimetypes>
      <extensions>
        <extension>asf</extension>
        <extension>asr</extension>
        <extension>asx</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/x-msvideo" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/x-msvideo</mimetype>
      </mimetypes>
      <extensions>
        <extension>avi</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/fli" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/fli</mimetype>
      </mimetypes>
      <extensions>
        <extension>fli</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/flv" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/flv</mimetype>
      </mimetypes>
      <extensions>
        <extension>flv</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/vnd.vivo" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/vnd.vivo</mimetype>
      </mimetypes>
      <extensions>
        <extension>viv</extension>
        <extension>vivo</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/x-m4v" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/x-m4v</mimetype>
      </mimetypes>
      <extensions>
        <extension>m4v</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/3gpp" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/3gpp</mimetype>
      </mimetypes>
      <extensions>
        <extension>3gp</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/3gpp2" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/3gpp2</mimetype>
      </mimetypes>
      <extensions>
        <extension>3g2</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/x-ms-wmv" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/x-ms-wmv</mimetype>
      </mimetypes>
      <extensions>
        <extension>wmv</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/x-ms-wm" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/x-ms-wm</mimetype>
      </mimetypes>
      <extensions>
        <extension>wm</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/x-ms-wvx" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/x-ms-wvx</mimetype>
      </mimetypes>
      <extensions>
        <extension>wvx</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="video/x-ms-wmx" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>video/x-ms-wmx</mimetype>
      </mimetypes>
      <extensions>
        <extension>wmx</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/gxf" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>application/gxf</mimetype>
      </mimetypes>
      <extensions>
        <extension>gxf</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/mxf" binary="true" iconPath="video.png">
      <mimetypes>
        <mimetype>application/mxf</mimetype>
      </mimetypes>
      <extensions>
        <extension>mxf</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/java-archive" binary="true"
      iconPath="java.png">
      <mimetypes>
        <mimetype>application/java-archive</mimetype>
      </mimetypes>
      <extensions>
        <extension>jar</extension>
      </extensions>
    </mimetype>


    <mimetype normalized="application/postscript" binary="true"
      iconPath="ps.png">
      <mimetypes>
        <mimetype>application/postscript</mimetype>
      </mimetypes>
      <extensions>
        <extension>ps</extension>
        <extension>eps</extension>
      </extensions>
    </mimetype>

    <!-- MIME types specific to RAW images; for more details see
      http://www.rawsamples.ch
      http://ufraw.sourceforge.net/wiki
      http://dotwhat.net/
      http://trac.imagemagick.org/browser/ImageMagick/trunk/config/mime.xml -->

    <!-- Canon RAW image file format -->
    <mimetype normalized="image/x-canon-cr2" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-canon-cr2</mimetype>
        <mimetype>image/CR2</mimetype>
      </mimetypes>
      <extensions>
        <extension>cr2</extension>
      </extensions>
    </mimetype>
    <mimetype normalized="image/x-canon-crw" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-canon-crw</mimetype>
      </mimetypes>
      <extensions>
        <extension>crw</extension>
      </extensions>
    </mimetype>

    <!-- Nikon RAW image file format -->
    <mimetype normalized="image/x-nikon-nef" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-nikon-nef</mimetype>
        <mimetype>image/NEF</mimetype>
      </mimetypes>
      <extensions>
        <extension>nef</extension>
      </extensions>
    </mimetype>

    <!-- Leica RAW image files format -->
    <mimetype normalized="image/x-adobe-dng" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-adobe-dng</mimetype>
      </mimetypes>
      <extensions>
        <extension>dng</extension>
      </extensions>
    </mimetype>
    <!-- Panasonic RAW image file format -->
    <mimetype normalized="image/x-panasonic-raw" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-panasonic-raw</mimetype>
      </mimetypes>
      <extensions>
        <extension>raw</extension>
        <extension>rw2</extension>
      </extensions>
    </mimetype>

    <!-- Fuji RAW image file format -->
    <mimetype normalized="image/x-fuji-raf" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-fuji-raf</mimetype>
      </mimetypes>
      <extensions>
        <extension>raf</extension>
      </extensions>
    </mimetype>

    <!-- Sigma RAW image file format. A file with the extension .X3F is associated with a RAW image file taken with a digital cameras that incorporate the Foveon X3 direct image sensor. -->
    <mimetype normalized="image/x-sigma-x3f" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-sigma-x3f</mimetype>
      </mimetypes>
      <extensions>
        <extension>x3f</extension>
      </extensions>
    </mimetype>

    <!-- Pentax RAW image file format -->
    <mimetype normalized="image/x-pentax-pef" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-pentax-pef</mimetype>
      </mimetypes>
      <extensions>
        <extension>pef</extension>
      </extensions>
    </mimetype>

    <!-- Kodak RAW image file format -->
    <mimetype normalized="image/x-kodak-dcr" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-kodak-dcr</mimetype>
      </mimetypes>
      <extensions>
        <extension>dcr</extension>
      </extensions>
    </mimetype>
    <mimetype normalized="image/x-kodak-kdc" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-kodak-kdc</mimetype>
      </mimetypes>
      <extensions>
        <extension>kdc</extension>
      </extensions>
    </mimetype>

    <!-- Sony RAW image files format -->
    <mimetype normalized="image/x-sony-sr2" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-sony-sr2</mimetype>
      </mimetypes>
      <extensions>
        <extension>sr2</extension>
      </extensions>
    </mimetype>
    <mimetype normalized="image/x-sony-arw" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-sony-arw</mimetype>
      </mimetypes>
      <extensions>
        <extension>arw</extension>
      </extensions>
    </mimetype>
    <mimetype normalized="image/x-sony-srf" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-sony-srf</mimetype>
      </mimetypes>
      <extensions>
        <extension>srf</extension>
      </extensions>
    </mimetype>

    <!-- Minolta RAW image file format -->
    <mimetype normalized="image/x-minolta-mrw" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-minolta-mrw</mimetype>
      </mimetypes>
      <extensions>
        <extension>mrw</extension>
      </extensions>
    </mimetype>

    <!-- Olympus RAW image file format -->
    <mimetype normalized="image/x-olympus-orf" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-olympus-orf</mimetype>
      </mimetypes>
      <extensions>
        <extension>orf</extension>
      </extensions>
    </mimetype>

    <!-- Epson RAW image file format -->
    <mimetype normalized="image/x-raw-epson" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-raw-epson</mimetype>
      </mimetypes>
      <extensions>
        <extension>erf</extension>
      </extensions>
    </mimetype>

    <!-- Portable Pixmap image file Format -->
    <mimetype normalized="image/x-portable-pixmap" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-portable-pixmap</mimetype>
      </mimetypes>
      <extensions>
        <extension>ppm</extension>
      </extensions>
    </mimetype>

    <!-- the bellow registered file extensions are not sure  as Image Magick does not have them registered... -->
    <mimetype normalized="image/raw" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/raw</mimetype>
      </mimetypes>
      <extensions>
        <extension>mos</extension>
        <extension>nrw</extension>
        <!-- Hasselblad RAW image file format -->
        <extension>3fr</extension>
      </extensions>
    </mimetype>

    <!-- Mamiya RAW image file format -->
    <mimetype normalized="image/x-raw" binary="true"
      iconPath="image.gif">
      <mimetypes>
        <mimetype>image/x-raw</mimetype>
      </mimetypes>
      <extensions>
        <extension>mef</extension>
      </extensions>
    </mimetype>

    <mimetype normalized="application/wordperfect"
     binary="true" iconPath="wpd.png" oleSupported="false">
     <mimetypes>
       <mimetype>application/wordperfect</mimetype>
     </mimetypes>
     <extensions>
       <extension>wpd</extension>
     </extensions>
   </mimetype>


  </extension>

  <extension
    target="org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService"
    point="extension">

    <documentation>Default filename extension to mimetype rules.</documentation>

    <fileExtension name="xml" mimetype="text/xml" ambiguous="true" />
    <fileExtension name="vsd" mimetype="application/visio" ambiguous="false" />
    <fileExtension name="vst" mimetype="application/visio" ambiguous="false" />
    <fileExtension name="ai" mimetype="application/illustrator" ambiguous="false" />
    <fileExtension name="key" mimetype="application/vnd.apple.keynote" ambiguous="false" />
    <fileExtension name="numbers" mimetype="application/vnd.apple.numbers" ambiguous="false" />
    <fileExtension name="pages" mimetype="application/vnd.apple.pages" ambiguous="false" />

  </extension>

</component>