Platform Explorer / Nuxeo Platform 5.6

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

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

Contributed items

  • <action icon="/icons/like.png" id="documentLike" label="command.like" link="#{likeActions.like(currentUser, currentDocument)}" order="5" type="link">
          <category>DOCUMENT_UPPER_ACTION</category>
          <filter-id>mutable_document</filter-id>
          <filter-id>not_folder</filter-id>
          <filter-id>userNotLiked</filter-id>
        </action>
  • <action icon="/icons/unlike.png" id="documentUnlike" label="command.unlike" link="#{likeActions.cancelLike(currentUser, currentDocument)}" order="5" type="link">
          <category>DOCUMENT_UPPER_ACTION</category>
          <filter-id>mutable_document</filter-id>
          <filter-id>not_folder</filter-id>
          <filter-id>userLiked</filter-id>
        </action>

XML source

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

    <action icon="/icons/like.png" id="documentLike" label="command.like" link="#{likeActions.like(currentUser, currentDocument)}" order="5" type="link">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>mutable_document</filter-id>
      <filter-id>not_folder</filter-id>
      <filter-id>userNotLiked</filter-id>
    </action>

    <action icon="/icons/unlike.png" id="documentUnlike" label="command.unlike" link="#{likeActions.cancelLike(currentUser, currentDocument)}" order="5" type="link">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>mutable_document</filter-id>
      <filter-id>not_folder</filter-id>
      <filter-id>userLiked</filter-id>
    </action>

  </extension>