Platform Explorer / Nuxeo Platform 5.6

Component org.nuxeo.dam.actions

Services

Extension points

Contributions

XML source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.dam.actions">

  <require>org.nuxeo.connect.client.actions</require>
  <require>org.nuxeo.ecm.user.center.actions</require>
  <require>org.nuxeo.ecm.platform.userworkspace.actions</require>

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

    <action id="dam" link="assets" label="label.main.tab.dam" order="50">
      <category>MAIN_TABS</category>
    </action>

    <!-- TABS -->
    <action id="DAM_TAB_ASSET_VIEW" link="/dam/incl/tabs/asset_view.xhtml" order="10"
      label="action.asset.view" icon="/icons/file.gif">
      <category>DAM_VIEW_ASSET_ACTION_LIST</category>
    </action>

    <action id="DAM_TAB_IP_RIGHTS" link="/dam/incl/tabs/ip_rights.xhtml" order="20"
      label="action.ip.rights" icon="/icons/file.gif">
      <category>DAM_VIEW_ASSET_ACTION_LIST</category>
    </action>

    <action id="DAM_TAB_DELIVERY" link="/dam/incl/tabs/delivery.xhtml" order="30"
      label="action.delivery" icon="/icons/file.gif">
      <category>DAM_VIEW_ASSET_ACTION_LIST</category>
    </action>

    <action id="DAM_TAB_HISTORY" link="/dam/incl/tabs/asset_history.xhtml" order="40"
      label="action.asset.history" icon="/icons/file.gif">
      <category>DAM_VIEW_ASSET_ACTION_LIST</category>
    </action>

    <!-- BUTTONS -->
    <action id="DAM_CURRENT_SELECTION_EDIT" link="javascript:showBulkEditPopup();"
      label="command.bulk.edit" icon="" help="command.bulk.edit.help">
      <category>DAM_CURRENT_SELECTION_LIST_HREF</category>
      <filter-id>damCanBulkEdit</filter-id>
    </action>

    <action id="DAM_CURRENT_SELECTION_TRASH" link="#{bulkSelectActions.deleteSelection}"
      label="command.delete" icon="" help="command.delete.help"
      confirm="if( !confirmDeleteAssets() ) return false;">
      <category>DAM_CURRENT_SELECTION_LIST</category>
      <filter-id>damCanDelete</filter-id>
    </action>

    <action id="DAM_CURRENT_SELECTION_EXPORT" link="#{bulkSelectActions.exportSelection}"
      label="command.export" icon="" help="command.export.help"
      confirm="if( !confirmExportAssets() ) return false;">
      <category>DAM_CURRENT_SELECTION_NOA4J_LIST</category>
      <filter-id>damCanExport</filter-id>
    </action>

  </extension>

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

    <filter id="damCanBulkEdit">
      <rule grant="true">
        <condition>#{bulkSelectActions.canEditAssets}</condition>
      </rule>
    </filter>

    <filter id="damCanDelete">
      <rule grant="true">
        <condition>#{deleteActions.canDelete}</condition>
      </rule>
    </filter>

    <filter id="damCanExport">
      <rule grant="true">
        <condition>#{bulkSelectActions.isSelectionNotEmpty}</condition>
      </rule>
    </filter>

    <filter id="create" append="true">
      <rule grant="true">
        <permission>AddChildren</permission>
        <facet>Folderish</facet>
        <type>ImportRoot</type>
        <type>ImportFolder</type>
        <type>ImportSet</type>
      </rule>
    </filter>

  </extension>

</component>

Documentation