Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.favorites.actions--actions

This contribution is part of XML component org.nuxeo.ecm.favorites.actions inside nuxeo-platform-collections-jsf-7.10-HF01.jar /OSGI-INF/favorites-actions-contrib.xml

Extension point

Extension point actions of component ActionService.

Contributed items

  • <action icon="/icons/pin.png" id="addToFavoritesAction" label="label.addToFavorites" link="#{favoritesActions.addCurrentDocumentToFavorites()}" order="0">
          <category>DOCUMENT_UPPER_ACTION</category>
          <filter-id>canAddToFavorites</filter-id>
        </action>
  • <action icon="/icons/pinned.png" id="removeFromFavoritesAction" label="label.removeFromFavorites" link="#{favoritesActions.removeCurrentDocumentFromFavorites()}" order="0">
          <category>DOCUMENT_UPPER_ACTION</category>
          <filter-id>canRemoveFromFavorites</filter-id>
        </action>

XML source

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

    <!-- action id="Favorites" link="/user_center_fragment.xhtml" label="user.center.favorites"
      order="80" icon="/icons/favorite_tab.png"> <category>USER_CENTER</category> <properties>
      <property name="alwaysDisplaySubTabs">true</property> </properties> <filter-id>not_anonymous</filter-id>
      </action> <action id="favoritesContent" link="/incl/favorites_content_listing.xhtml"
      label="user.center.favorites" order="0"> <category>Favorites_sub_tab</category> <filter-id>not_readonly</filter-id>
      </action -->

    <action icon="/icons/pin.png" id="addToFavoritesAction" label="label.addToFavorites" link="#{favoritesActions.addCurrentDocumentToFavorites()}" order="0">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>canAddToFavorites</filter-id>
    </action>

    <action icon="/icons/pinned.png" id="removeFromFavoritesAction" label="label.removeFromFavorites" link="#{favoritesActions.removeCurrentDocumentFromFavorites()}" order="0">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>canRemoveFromFavorites</filter-id>
    </action>

  </extension>