Platform Explorer / Nuxeo Platform LTS 2017 9.10

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

This contribution is part of XML component org.nuxeo.ecm.platform.preview.actions inside nuxeo-preview-core-9.10.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="hasBlobPreview">
          <rule grant="true">
            <condition>#{previewActions.hasBlobPreview(document, blobXPath)}</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="hasBlobPreview">
      <rule grant="true">
        <condition>#{previewActions.hasBlobPreview(document, blobXPath)}</condition>
      </rule>
    </filter>

  </extension>