Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.platform.preview.actions--filters

This contribution is part of XML component org.nuxeo.ecm.platform.preview.actions inside nuxeo-platform-preview-7.10-HF07.jar /OSGI-INF/actions-contrib.xml

Extension point

Extension point filters of component ActionService.

Contributed items

  • <filter id="view_preview">
          <rule grant="true">
            <condition>#{previewActions.hasPreview}</condition>
          </rule>
        </filter>
  • <filter id="notHasPreview">
          <rule grant="true">
            <condition>#{not previewActions.hasPreview}</condition>
          </rule>
        </filter>
  • <filter id="popup_view_preview">
          <rule grant="true">
            <condition>#{previewActions.documentHasPreview(document)}</condition>
          </rule>
        </filter>
  • <filter id="hasPDFPreview">
          <rule grant="true">
            <condition>#{conversionActions.isExportableToPDF(blob)}</condition>
            <condition>#{conversionActions.isPDF(blob)}</condition>
          </rule>
        </filter>

XML source

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

    <filter id="view_preview">
      <rule grant="true">
        <condition>#{previewActions.hasPreview}</condition>
      </rule>
    </filter>

    <filter id="notHasPreview">
      <rule grant="true">
        <condition>#{not previewActions.hasPreview}</condition>
      </rule>
    </filter>

    <filter id="popup_view_preview">
      <rule grant="true">
        <condition>#{previewActions.documentHasPreview(document)}</condition>
      </rule>
    </filter>

    <filter id="hasPDFPreview">
      <rule grant="true">
        <condition>#{conversionActions.isExportableToPDF(blob)}</condition>
        <condition>#{conversionActions.isPDF(blob)}</condition>
      </rule>
    </filter>

  </extension>