Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.webapp.seam.debug.action--filters

This contribution is part of XML component org.nuxeo.ecm.webapp.seam.debug.action inside nuxeo-platform-webapp-base-7.10-HF07.jar /OSGI-INF/actions-contrib.xml

Extension point

Extension point filters of component ActionService.

Contributed items

  • <filter id="restoreVersionDisplay">
          <rule grant="true">
            <condition>#{deleteActions.restoreActionDisplay()}
            </condition>
          </rule>
        </filter>
  • <filter id="devModeEnabledForAdmin">
          <rule grant="true">
            <condition>#{seamReload.getCanTriggerFlush()}</condition>
          </rule>
        </filter>
  • <filter id="seamHotReloadIsEnabled">
          <rule grant="true">
            <condition>#{seamHotReloadIsEnabled}</condition>
          </rule>
        </filter>
  • <filter id="layoutDevModeEnabled">
          <rule grant="true">
            <condition>#{nxDevModeSet and nuxeoLayoutManagerBean.devModeSet}</condition>
          </rule>
        </filter>
  • <filter id="layoutDevModeDisabled">
          <rule grant="true">
            <condition>#{nxDevModeSet and not nuxeoLayoutManagerBean.devModeSet}</condition>
          </rule>
        </filter>
  • <filter id="hasSubscriptions">
          <rule grant="true">
            <condition>#{subscriptionAction.getSelectedNotifications().size() &gt; 0}</condition>
          </rule>
        </filter>
  • <filter id="hasNoSubscriptions">
          <rule grant="true">
            <condition>#{subscriptionAction.getSelectedNotifications().size() == 0}</condition>
          </rule>
        </filter>
  • <filter id="canSubscribe">
          <rule grant="false">
            <type>Domain</type>
            <type>WorkspaceRoot</type>
          </rule>
        </filter>
  • <filter id="documentHasBlobs">
          <rule grant="true">
            <condition>
              #{popupHelper.isDocumentHasBlobs(document)}
            </condition>
          </rule>
        </filter>
  • <filter id="hasNote">
          <rule grant="true">
            <schema>note</schema>
          </rule>
        </filter>
  • <filter id="notHasNote">
          <rule grant="false">
            <schema>note</schema>
          </rule>
        </filter>
  • <filter id="denyForFile">
          <rule grant="false">
            <type>File</type>
          </rule>
        </filter>
  • <filter id="hasDublincore">
          <rule grant="true">
            <schema>dublincore</schema>
          </rule>
        </filter>
  • <filter id="canToggleLayoutToEditMode">
          <documentation>
            <p>
              Filter used by the "toggleableLayoutWithForms" widget type
              to check
              wether the "edit" button should be displayed.
            </p>
            <p>
              This filter is a combination of default filters "edit" and
              "mutable_document" usually used to control rendering of the "edit" tab
              on document views.
            </p>
            @since 5.6
          </documentation>
          <rule grant="true">
            <permission>Write</permission>
          </rule>
          <rule grant="false">
            <facet>Immutable</facet>
          </rule>
          <rule grant="false">
            <condition>
              document.getCurrentLifeCycleState().equals("deleted")
            </condition>
          </rule>
        </filter>

    Filter used by the "toggleableLayoutWithForms" widget type to check wether the "edit" button should be displayed.

    This filter is a combination of default filters "edit" and "mutable_document" usually used to control rendering of the "edit" tab on document views.

    @since 5.6
  • <filter id="isMainBlob">
          <rule grant="true">
            <condition>#{blobXPath == blobHolderGenerator.getBlobHolder(document).xpath}</condition>
          </rule>
        </filter>
  • <filter id="isExportableToPDF">
          <rule grant="true">
            <condition>#{conversionActions.isExportableToPDF(blob)}</condition>
          </rule>
        </filter>

XML source

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

    <filter id="restoreVersionDisplay">
      <rule grant="true">
        <condition>#{deleteActions.restoreActionDisplay()}
        </condition>
      </rule>
    </filter>

    <filter id="devModeEnabledForAdmin">
      <rule grant="true">
        <condition>#{seamReload.getCanTriggerFlush()}</condition>
      </rule>
    </filter>

    <filter id="seamHotReloadIsEnabled">
      <rule grant="true">
        <condition>#{seamHotReloadIsEnabled}</condition>
      </rule>
    </filter>

    <filter id="layoutDevModeEnabled">
      <rule grant="true">
        <condition>#{nxDevModeSet and nuxeoLayoutManagerBean.devModeSet}</condition>
      </rule>
    </filter>

    <filter id="layoutDevModeDisabled">
      <rule grant="true">
        <condition>#{nxDevModeSet and not nuxeoLayoutManagerBean.devModeSet}</condition>
      </rule>
    </filter>

    <filter id="hasSubscriptions">
      <rule grant="true">
        <condition>#{subscriptionAction.getSelectedNotifications().size() &gt; 0}</condition>
      </rule>
    </filter>

    <filter id="hasNoSubscriptions">
      <rule grant="true">
        <condition>#{subscriptionAction.getSelectedNotifications().size() == 0}</condition>
      </rule>
    </filter>

    <filter id="canSubscribe">
      <rule grant="false">
        <type>Domain</type>
        <type>WorkspaceRoot</type>
      </rule>
    </filter>

    <filter id="documentHasBlobs">
      <rule grant="true">
        <condition>
          #{popupHelper.isDocumentHasBlobs(document)}
        </condition>
      </rule>
    </filter>

    <filter id="hasNote">
      <rule grant="true">
        <schema>note</schema>
      </rule>
    </filter>

    <filter id="notHasNote">
      <rule grant="false">
        <schema>note</schema>
      </rule>
    </filter>

    <filter id="denyForFile">
      <rule grant="false">
        <type>File</type>
      </rule>
    </filter>

    <filter id="hasDublincore">
      <rule grant="true">
        <schema>dublincore</schema>
      </rule>
    </filter>

    <filter id="canToggleLayoutToEditMode">
      <documentation>
        <p>
          Filter used by the "toggleableLayoutWithForms" widget type
          to check
          wether the "edit" button should be displayed.
        </p>
        <p>
          This filter is a combination of default filters "edit" and
          "mutable_document" usually used to control rendering of the "edit" tab
          on document views.
        </p>
        @since 5.6
      </documentation>
      <rule grant="true">
        <permission>Write</permission>
      </rule>
      <rule grant="false">
        <facet>Immutable</facet>
      </rule>
      <rule grant="false">
        <condition>
          document.getCurrentLifeCycleState().equals("deleted")
        </condition>
      </rule>
    </filter>

    <filter id="isMainBlob">
      <rule grant="true">
        <condition>#{blobXPath == blobHolderGenerator.getBlobHolder(document).xpath}</condition>
      </rule>
    </filter>

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

  </extension>