Platform Explorer / CMF 1.8

Component org.nuxeo.ecm.platform.audit.web

Documentation

NXAudit action contributions.

@version 1.0

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.platform.audit.web">

  <documentation>
    NXAudit action contributions.

    @version 1.0
    @author Julien Anguenot
  </documentation>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">
    <documentation>
      Contribute a new action related to document history.
    </documentation>

    <action id="TAB_CONTENT_HISTORY" link="/incl/tabs/document_history.xhtml"
      enabled="true" label="action.view.history" icon="/icons/file.gif"
      order="100">
      <category>VIEW_ACTION_LIST</category>
      <filter id="view_content_history">
        <rule grant="false">
          <type>WorkspaceRoot</type>
          <type>SectionRoot</type>
          <type>Server</type>
        </rule>
      </filter>
      <filter id="TAB_CONTENT_HISTORY_has_subtabs">
        <rule grant="false">
          <condition>
            #{webActions.getActionsList('TAB_CONTENT_HISTORY_sub_tab').isEmpty()}
          </condition>
        </rule>
      </filter>
    </action>

    <action id="TAB_EVENTS" link="/incl/tabs/document_events_cv.xhtml"
      enabled="true" label="action.view.events" icon="/icons/file.gif"
      order="50">
      <category>TAB_CONTENT_HISTORY_sub_tab</category>
      <filter id="view_content_history">
        <rule grant="false">
          <type>WorkspaceRoot</type>
          <type>SectionRoot</type>
          <type>Server</type>
        </rule>
      </filter>
    </action>
    <action id="TAB_VERSIONS" link="/incl/tabs/document_versions.xhtml"
      enabled="true" label="action.view.versions" icon="/icons/file.gif"
      order="100">
      <category>TAB_CONTENT_HISTORY_sub_tab</category>
      <filter id="versionable">
        <rule grant="true">
          <facet>Versionable</facet>
        </rule>
      </filter>
    </action>
  </extension>

</component>