Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.audit.web--filters

This contribution is part of XML component org.nuxeo.ecm.platform.audit.web inside nuxeo-platform-audit-client-5.6.jar

Extension point

Extension point filters of component ActionService.

Contributed items

  • <filter id="view_content_history">
          <rule grant="false">
            <type>WorkspaceRoot</type>
            <type>SectionRoot</type>
            <type>Server</type>
          </rule>
          <rule grant="false">
            <facet>Immutable</facet>
          </rule>
        </filter>
  • <filter id="view_proxy_history">
          <rule grant="true">
            <condition>document != null &amp;&amp; document.isProxy()</condition>
          </rule>
        </filter>
  • <filter id="TAB_CONTENT_HISTORY_has_subtabs">
          <rule grant="false">
            <condition>
              #{webActions.getActionsList('TAB_CONTENT_HISTORY_sub_tab').isEmpty()}
            </condition>
          </rule>
        </filter>
  • <filter id="versionable">
          <rule grant="true">
            <facet>Versionable</facet>
          </rule>
          <rule grant="false">
            <facet>Immutable</facet>
          </rule>
        </filter>
  • <filter id="canDeleteCurrentVersionSelection">
          <rule grant="true">
            <condition>#{versionedActions.canRemoveSelectedArchivedVersions}
            </condition>
          </rule>
        </filter>
  • <filter id="canRestoreVersion">
          <rule grant="true">
            <condition>#{versionedActions.canRestore}
            </condition>
          </rule>
        </filter>

XML source

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

    <filter id="view_content_history">
      <rule grant="false">
        <type>WorkspaceRoot</type>
        <type>SectionRoot</type>
        <type>Server</type>
      </rule>
      <rule grant="false">
        <facet>Immutable</facet>
      </rule>
    </filter>

    <filter id="view_proxy_history">
      <rule grant="true">
        <condition>document != null &amp;&amp; document.isProxy()</condition>
      </rule>
    </filter>

    <filter id="TAB_CONTENT_HISTORY_has_subtabs">
      <rule grant="false">
        <condition>
          #{webActions.getActionsList('TAB_CONTENT_HISTORY_sub_tab').isEmpty()}
        </condition>
      </rule>
    </filter>

    <filter id="versionable">
      <rule grant="true">
        <facet>Versionable</facet>
      </rule>
      <rule grant="false">
        <facet>Immutable</facet>
      </rule>
    </filter>
    
    <filter id="canDeleteCurrentVersionSelection">
      <rule grant="true">
        <condition>#{versionedActions.canRemoveSelectedArchivedVersions}
        </condition>
      </rule>
    </filter>
    
    <filter id="canRestoreVersion">
      <rule grant="true">
        <condition>#{versionedActions.canRestore}
        </condition>
      </rule>
    </filter>

  </extension>