Platform Explorer / Nuxeo Platform 5.6

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.6.jar

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>TAB_CONTENT_HISTORY_has_subtabs</filter-id>
        </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</filter-id>
        </action>
  • <action enabled="true" icon="/icons/file.gif" id="TAB_EVENTS_PROXY" label="action.view.events" link="/incl/tabs/document_events_cv.xhtml" order="50">
          <category>TAB_CONTENT_HISTORY_sub_tab</category>
          <filter-id>view_proxy_history</filter-id>
          <filter-id>only_for_manager</filter-id>
        </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</filter-id>
        </action>
  • <action id="VIEW_VERSION" label="command.viewArchivedVersion" link="#{versionedActions.viewArchivedVersion}" order="10">
          <category>VERSION_LIST_ITEM</category>
        </action>
  • <action id="RESTORE_VERSION" label="command.restore" link="#{versionedActions.restoreToVersion}" order="20">
          <category>VERSION_LIST_ITEM</category>
          <filter-id>canRestoreVersion</filter-id>
        </action>
  • <action confirm="if( !confirmDeleteDocuments() ) return false;" id="CURRENT_VERSION_SELECTION_DELETE" label="command.removeSelectedArchivedVersions" link="#{versionedActions.removeSelectedArchivedVersions}" order="10">
          <category>CURRENT_VERSION_SELECTION_LIST</category>
          <filter-id>canDeleteCurrentVersionSelection</filter-id>
        </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>TAB_CONTENT_HISTORY_has_subtabs</filter-id>
    </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</filter-id>
    </action>

    <action enabled="true" icon="/icons/file.gif" id="TAB_EVENTS_PROXY" label="action.view.events" link="/incl/tabs/document_events_cv.xhtml" order="50">
      <category>TAB_CONTENT_HISTORY_sub_tab</category>
      <filter-id>view_proxy_history</filter-id>
      <filter-id>only_for_manager</filter-id>
    </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</filter-id>
    </action>
    
    <!-- Version actions -->
    <action id="VIEW_VERSION" label="command.viewArchivedVersion" link="#{versionedActions.viewArchivedVersion}" order="10">
      <category>VERSION_LIST_ITEM</category>
    </action>
    
    <action id="RESTORE_VERSION" label="command.restore" link="#{versionedActions.restoreToVersion}" order="20">
      <category>VERSION_LIST_ITEM</category>
      <filter-id>canRestoreVersion</filter-id>
    </action>
    
    <action confirm="if( !confirmDeleteDocuments() ) return false;" id="CURRENT_VERSION_SELECTION_DELETE" label="command.removeSelectedArchivedVersions" link="#{versionedActions.removeSelectedArchivedVersions}" order="10">
      <category>CURRENT_VERSION_SELECTION_LIST</category>
      <filter-id>canDeleteCurrentVersionSelection</filter-id>
    </action>
    
  </extension>