Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.drive.layouts--actions

This contribution is part of XML component org.nuxeo.drive.layouts inside nuxeo-drive-jsf-7.10.jar /OSGI-INF/nuxeodrive-layouts-contrib.xml

Extension point

Extension point actions of component ActionService.

Contributed items

  • <action id="driveMetadataTitleContainer" order="100" type="widget">
          <category>DRIVE_METADATA_VIEW_PANEL</category>
          <properties>
            <property name="widgetName">driveMetadataTitleContainer</property>
          </properties>
        </action>
  • <action id="driveMetadataLayoutContainer" order="200" type="widget">
          <category>DRIVE_METADATA_VIEW_PANEL</category>
          <properties>
            <property name="widgetName">driveMetadataLayoutContainer</property>
          </properties>
        </action>
  • <action id="driveMetadataActions" order="300" type="widget">
          <category>DRIVE_METADATA_VIEW_PANEL</category>
          <properties>
            <property name="widgetName">driveMetadataActions</property>
          </properties>
        </action>
  • <action icon="/icons/update.png" id="driveUpdateDocument" label="command.save" link="#{nuxeoDriveActions.updateCurrentDocument}" order="10" type="link">
          <category>DRIVE_METADATA_VIEW_FORM_ACTION</category>
        </action>
  • <action icon="/icons/pin.png" id="diveMetadataAddToFavoritesAction" label="label.addToFavorites" link="#{favoritesActions.addCurrentDocumentToFavorites()}" order="0">
          <category>DRIVE_METADATA_VIEW_ACTION</category>
          <filter-id>canAddToFavorites</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/pinned.png" id="diveMetadataRemoveFromFavoritesAction" label="label.removeFromFavorites" link="#{favoritesActions.removeCurrentDocumentFromFavorites()}" order="0">
          <category>DRIVE_METADATA_VIEW_ACTION</category>
          <filter-id>canRemoveFromFavorites</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/contextual_menu/unlocked.png" id="diveMetadataDocumentLock" label="command.lock" link="#{lockActions.lockCurrentDocument}" order="10" type="link">
          <category>DRIVE_METADATA_VIEW_ACTION</category>
          <filter-id>mutable_document</filter-id>
          <filter-id>can_lock</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/contextual_menu/locked.png" id="diveMetadataDocumentUnlock" label="command.unlock" link="#{lockActions.unlockCurrentDocument}" order="10" type="link">
          <category>DRIVE_METADATA_VIEW_ACTION</category>
          <filter-id>mutable_document</filter-id>
          <filter-id>can_unlock</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action accessKey="k" icon="/icons/contextual_menu/share.png" id="diveMetadataermalinkAction" label="label.permalink" order="20" type="fancybox">
          <category>DRIVE_METADATA_VIEW_ACTION</category>
          <properties>
            <property name="include">/incl/permalink_box.xhtml</property>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/contextual_menu/subscribe.png" id="diveMetadataubscribesAllDocNotifications" label="label.subscriptions.follow" link="#{subscriptionAction.updateAllSubscriptions}" order="40" type="link">
          <category>DRIVE_METADATA_VIEW_ACTION</category>
          <filter-id>hasNoSubscriptions</filter-id>
          <filter-id>canSubscribe</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/contextual_menu/unsubscribe.png" id="diveMetadataUnsubscribesAllDocNotifications" label="label.subscriptions.unfollow" link="#{subscriptionAction.updateAllSubscriptions}" order="40" type="link">
          <category>DRIVE_METADATA_VIEW_ACTION</category>
          <filter-id>hasSubscriptions</filter-id>
          <filter-id>canSubscribe</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>

XML source

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

    <action id="driveMetadataTitleContainer" order="100" type="widget">
      <category>DRIVE_METADATA_VIEW_PANEL</category>
      <properties>
        <property name="widgetName">driveMetadataTitleContainer</property>
      </properties>
    </action>

    <action id="driveMetadataLayoutContainer" order="200" type="widget">
      <category>DRIVE_METADATA_VIEW_PANEL</category>
      <properties>
        <property name="widgetName">driveMetadataLayoutContainer</property>
      </properties>
    </action>

    <action id="driveMetadataActions" order="300" type="widget">
      <category>DRIVE_METADATA_VIEW_PANEL</category>
      <properties>
        <property name="widgetName">driveMetadataActions</property>
      </properties>
    </action>

    <action icon="/icons/update.png" id="driveUpdateDocument" label="command.save" link="#{nuxeoDriveActions.updateCurrentDocument}" order="10" type="link">
      <category>DRIVE_METADATA_VIEW_FORM_ACTION</category>
    </action>

    <action icon="/icons/pin.png" id="diveMetadataAddToFavoritesAction" label="label.addToFavorites" link="#{favoritesActions.addCurrentDocumentToFavorites()}" order="0">
      <category>DRIVE_METADATA_VIEW_ACTION</category>
      <filter-id>canAddToFavorites</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/pinned.png" id="diveMetadataRemoveFromFavoritesAction" label="label.removeFromFavorites" link="#{favoritesActions.removeCurrentDocumentFromFavorites()}" order="0">
      <category>DRIVE_METADATA_VIEW_ACTION</category>
      <filter-id>canRemoveFromFavorites</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/contextual_menu/unlocked.png" id="diveMetadataDocumentLock" label="command.lock" link="#{lockActions.lockCurrentDocument}" order="10" type="link">
      <category>DRIVE_METADATA_VIEW_ACTION</category>
      <filter-id>mutable_document</filter-id>
      <filter-id>can_lock</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/contextual_menu/locked.png" id="diveMetadataDocumentUnlock" label="command.unlock" link="#{lockActions.unlockCurrentDocument}" order="10" type="link">
      <category>DRIVE_METADATA_VIEW_ACTION</category>
      <filter-id>mutable_document</filter-id>
      <filter-id>can_unlock</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action accessKey="k" icon="/icons/contextual_menu/share.png" id="diveMetadataermalinkAction" label="label.permalink" order="20" type="fancybox">
      <category>DRIVE_METADATA_VIEW_ACTION</category>
      <properties>
        <property name="include">/incl/permalink_box.xhtml</property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/contextual_menu/subscribe.png" id="diveMetadataubscribesAllDocNotifications" label="label.subscriptions.follow" link="#{subscriptionAction.updateAllSubscriptions}" order="40" type="link">
      <category>DRIVE_METADATA_VIEW_ACTION</category>
      <filter-id>hasNoSubscriptions</filter-id>
      <filter-id>canSubscribe</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/contextual_menu/unsubscribe.png" id="diveMetadataUnsubscribesAllDocNotifications" label="label.subscriptions.unfollow" link="#{subscriptionAction.updateAllSubscriptions}" order="40" type="link">
      <category>DRIVE_METADATA_VIEW_ACTION</category>
      <filter-id>hasSubscriptions</filter-id>
      <filter-id>canSubscribe</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

  </extension>