Platform Explorer / Nuxeo Platform LTS 2015 7.10

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-7.10.jar /OSGI-INF/actions-contrib.xml

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>
  • <filter id="canRestoreMainBlob">
          <rule grant="false">
            <type>File</type>
            <condition>#{blobHolderGenerator.getBlobHolder(document).blob.length lt 0}</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>

    <filter id="canRestoreMainBlob">
      <rule grant="false">
        <type>File</type>
        <condition>#{blobHolderGenerator.getBlobHolder(document).blob.length lt 0}</condition>
      </rule>
    </filter>

  </extension>