Platform Explorer / Nuxeo Platform 5.6

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

This contribution is part of XML component org.nuxeo.ecm.rating.actions inside nuxeo-rating-web-5.6-RC1.jar /OSGI-INF/actions-contrib.xml

Extension point

Extension point filters of component ActionService.

Contributed items

  • <filter id="userLiked">
          <rule grant="true">
            <condition>
              #{likeActions.hasUserLiked(currentUser, currentDocument)}
            </condition>
          </rule>
        </filter>
  • <filter id="userNotLiked">
          <rule grant="false">
            <condition>
              #{likeActions.hasUserLiked(currentUser, currentDocument)}
            </condition>
          </rule>
        </filter>

XML source

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

    <filter id="userLiked">
      <rule grant="true">
        <condition>
          #{likeActions.hasUserLiked(currentUser, currentDocument)}
        </condition>
      </rule>
    </filter>

    <filter id="userNotLiked">
      <rule grant="false">
        <condition>
          #{likeActions.hasUserLiked(currentUser, currentDocument)}
        </condition>
      </rule>
    </filter>

  </extension>