Platform Explorer / Nuxeo Platform LTS 2015 7.10

Extension point processor

Extension allowing one to register a new TemplateProcessor.

A TemplateProcessor is a class associated with a format (mime-type or extension) and that can be used to render a DocumentModel via type type of template.

For instance :

    <templateProcessor
        class="org.nuxeo.template.processors.xdocreport.XDocReportProcessor"
        default="true" label="XDocReport processor" name="XDocReportProcessor">
        <supportedMimeType>application/vnd.oasis.opendocument.text</supportedMimeType>
        <supportedMimeType>application/vnd.openxmlformats-officedocument.wordprocessingml.document</supportedMimeType>
        <supportedExtension>odt</supportedExtension>
        <supportedExtension>docx</supportedExtension>
    </templateProcessor>

Contribution Descriptor

Existing Contributions

  • nuxeo-template-rendering-xdocreport-7.10.jar /OSGI-INF/templateprocessor-contrib.xml
    <extension point="processor" target="org.nuxeo.template.service.TemplateProcessorComponent">
    
        <documentation>XDocReport Report based template processor</documentation>
    
        <templateProcessor class="org.nuxeo.template.processors.xdocreport.XDocReportProcessor" default="true" label="XDocReport processor" name="XDocReportProcessor">
          <supportedMimeType>application/vnd.oasis.opendocument.text</supportedMimeType>
          <supportedMimeType>application/vnd.openxmlformats-officedocument.wordprocessingml.document</supportedMimeType>
          <supportedMimeType>application/vnd.oasis.opendocument.spreadsheet</supportedMimeType>
          <supportedExtension>odt</supportedExtension>
          <supportedExtension>docx</supportedExtension>
          <supportedExtension>ods</supportedExtension>
        </templateProcessor>
    
      </extension>
  • nuxeo-template-rendering-core-7.10-HF02.jar /OSGI-INF/templateprocessor-contrib.xml
    <extension point="processor" target="org.nuxeo.template.service.TemplateProcessorComponent">
    
        <documentation>Identity processor</documentation>
    
        <templateProcessor class="org.nuxeo.template.processors.IdentityProcessor" default="false" label="Identity" name="Identity">
        </templateProcessor>
    
      </extension>
  • nuxeo-template-rendering-jxls-7.10.jar /OSGI-INF/templateprocessor-contrib.xml
    <extension point="processor" target="org.nuxeo.template.service.TemplateProcessorComponent">
    
        <documentation>JXLS template processor  @author Thierry Delprat (td@nuxeo.com)</documentation>
    
        <templateProcessor class="org.nuxeo.template.processors.jxls.JXLSTemplateProcessor" default="false" label="JXLS Processor" name="JXLSProcessor">
          <supportedMimeType>application/vnd.ms-excel</supportedMimeType>
          <supportedExtension>xls</supportedExtension>
        </templateProcessor>
    
      </extension>