Platform Explorer / CMF 1.8

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

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

Documentation

Contribute a new action related to document history.

Extension Point

Extension point actions of component ActionService.

Contributed Items

  • <action enabled="true" icon="/icons/file.gif" id="TAB_CONTENT_HISTORY" label="action.view.history" link="/incl/tabs/document_history.xhtml" 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 enabled="true" icon="/icons/file.gif" id="TAB_EVENTS" label="action.view.events" link="/incl/tabs/document_events_cv.xhtml" 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 enabled="true" icon="/icons/file.gif" id="TAB_VERSIONS" label="action.view.versions" link="/incl/tabs/document_versions.xhtml" order="100">
          <category>TAB_CONTENT_HISTORY_sub_tab</category>
          <filter id="versionable">
            <rule grant="true">
              <facet>Versionable</facet>
            </rule>
          </filter>
        </action>

XML Source

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

    <action enabled="true" icon="/icons/file.gif" id="TAB_CONTENT_HISTORY" label="action.view.history" link="/incl/tabs/document_history.xhtml" 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 enabled="true" icon="/icons/file.gif" id="TAB_EVENTS" label="action.view.events" link="/incl/tabs/document_events_cv.xhtml" 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 enabled="true" icon="/icons/file.gif" id="TAB_VERSIONS" label="action.view.versions" link="/incl/tabs/document_versions.xhtml" order="100">
      <category>TAB_CONTENT_HISTORY_sub_tab</category>
      <filter id="versionable">
        <rule grant="true">
          <facet>Versionable</facet>
        </rule>
      </filter>
    </action>
  </extension>