Platform Explorer / Nuxeo Platform LTS 2015 7.10

Component org.nuxeo.ecm.platform.rendition.contrib

Services

Extension points

Contributions

XML source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.rendition.contrib">

  <extension target="org.nuxeo.ecm.platform.rendition.service.RenditionService"
    point="renditionDefinitions">
    <renditionDefinition name="pdf">
      <label>label.rendition.pdf</label>
      <icon>/icons/pdf.png</icon>
      <contentType>application/pdf</contentType>
      <operationChain>blobToPDF</operationChain>
      <filters>
        <filter-id>allowPDFRendition</filter-id>
      </filters>
    </renditionDefinition>

    <renditionDefinition name="xmlExport">
      <label>label.exportview.xmlExport</label>
      <icon>/icons/xml.png</icon>
      <contentType>text/xml</contentType>
      <allowEmptyBlob>true</allowEmptyBlob>
      <operationChain>xmlExportRendition</operationChain>
    </renditionDefinition>

    <renditionDefinition name="zipExport">
      <label>label.exportview.zipExport</label>
      <icon>/icons/zip_export.png</icon>
      <contentType>application/zip</contentType>
      <allowEmptyBlob>true</allowEmptyBlob>
      <operationChain>zipTreeExportRendition</operationChain>
      <filters>
        <filter-id>not_folder</filter-id>
      </filters>
    </renditionDefinition>

    <renditionDefinition name="zipTreeExport">
      <label>label.exportview.zipTreeExport</label>
      <icon>/icons/zip_tree_export.png</icon>
      <contentType>application/zip</contentType>
      <allowEmptyBlob>true</allowEmptyBlob>
      <operationChain>zipTreeExportRendition</operationChain>
      <variantPolicy>user</variantPolicy>
      <filters>
        <filter-id>folder</filter-id>
      </filters>
    </renditionDefinition>
  </extension>

  <extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent"
    point="chains">
    <chain id="blobToPDF">
      <operation id="Context.PopBlob" />
      <operation id="Blob.ToPDF" />
    </chain>

    <chain id="xmlExportRendition">
      <operation id="Context.PopDocument" />
      <operation id="Document.Export" />
    </chain>

    <chain id="zipTreeExportRendition">
      <operation id="Context.PopDocument" />
      <operation id="Document.Export">
        <param name="exportAsTree" type="boolean">true</param>
      </operation>
    </chain>
  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="filters">

    <filter id="allowPDFRendition" />

  </extension>

</component>

Documentation