Platform Explorer / Nuxeo Platform 9.2

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

This contribution is part of XML component org.nuxeo.ecm.favorites.actions inside nuxeo-platform-collections-jsf-9.2.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>