Platform Explorer / Nuxeo Platform LTS 2015 7.10

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

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 filters of component ActionService.

Contributed items

  • <filter id="canAddToFavorites">
          <rule grant="true">
            <condition>
              #{favoritesActions.canCurrentDocumentBeAddedToFavorites()}
            </condition>
          </rule>
        </filter>
  • <filter id="canRemoveFromFavorites">
          <rule grant="true">
            <condition>
              #{favoritesActions.canCurrentDocumentBeRemovedFromFavorites()}
            </condition>
          </rule>
        </filter>

XML source

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

    <filter id="canAddToFavorites">
      <rule grant="true">
        <condition>
          #{favoritesActions.canCurrentDocumentBeAddedToFavorites()}
        </condition>
      </rule>
    </filter>

    <filter id="canRemoveFromFavorites">
      <rule grant="true">
        <condition>
          #{favoritesActions.canCurrentDocumentBeRemovedFromFavorites()}
        </condition>
      </rule>
    </filter>

  </extension>