Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.forum.actions--actions

This contribution is part of XML component org.nuxeo.ecm.platform.forum.actions inside nuxeo-platform-forum-5.6.jar

Extension point

Extension point actions of component ActionService.

Contributed items

  • <action enabled="true" icon="/icons/file.gif" id="forumView" label="action.forum.content" link="/incl/tabs/forum_content.xhtml">
          <category>VIEW_ACTION_LIST</category>
          <filter id="isForum">
            <rule grant="true">
              <type>Forum</type>
            </rule>
          </filter>
        </action>
  • <action id="TAB_CONTENT">
          <filter id="display_forum">
            <rule grant="false">
              <type>Forum</type>
            </rule>
          </filter>
        </action>
  • <action enabled="true" icon="/icons/action_add.gif" id="newForumThread" label="command.create.thread" link="#{documentActions.createDocument('Thread')}">
          <category>SUBVIEW_UPPER_LIST</category>
          <filter id="newThread">
            <rule grant="true">
              <permission>AddChildren</permission>
              <type>Forum</type>
            </rule>
          </filter>
        </action>
  • <action id="TAB_EDIT">
          <filter id="no_edit_on_thread">
            <rule grant="false">
              <type>Thread</type>
            </rule>
          </filter>
        </action>
  • <action id="TAB_RELATIONS">
          <filter id="no_relations_on_thread">
            <rule grant="false">
              <type>Thread</type>
            </rule>
          </filter>
        </action>
  • <action id="TAB_METADATA_EDIT">
          <filter id="no_metadata_on_thread">
            <rule grant="false">
              <type>Thread</type>
            </rule>
          </filter>
        </action>
  • <action id="TAB_CONTENT_HISTORY">
          <filter id="no_history_on_thread">
            <rule grant="false">
              <type>Thread</type>
            </rule>
          </filter>
        </action>
  • <action id="TAB_METADATA_VIEW">
          <filter id="no_metadata_view_on_thread">
            <rule grant="false">
              <type>Thread</type>
            </rule>
          </filter>
        </action>
  • <action id="view_comments">
          <filter id="no_comment_on_thread">
            <rule grant="false">
              <type>Thread</type>
            </rule>
          </filter>
        </action>
  • <action enabled="true" icon="/icons/file.gif" id="thread_rights" label="action.view.rights" link="/incl/tabs/document_rights.xhtml" order="50">
          <category>VIEW_ACTION_LIST</category>
          <filter id="on_thread_rights">
            <rule grant="true">
              <permission>WriteSecurity</permission>
              <type>Thread</type>
            </rule>
          </filter>
        </action>
  • <action enabled="true" id="TAB_THREAD" label="action.view.thread" link="/incl/tabs/document_thread.xhtml">
          <category>VIEW_ACTION_LIST</category>
          <filter id="on_thread_view">
            <rule grant="true">
              <type>Thread</type>
            </rule>
          </filter>
        </action>

XML source

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

    <action enabled="true" icon="/icons/file.gif" id="forumView" label="action.forum.content" link="/incl/tabs/forum_content.xhtml">
      <category>VIEW_ACTION_LIST</category>
      <filter id="isForum">
        <rule grant="true">
          <type>Forum</type>
        </rule>
      </filter>
    </action>

    <action id="TAB_CONTENT">
      <filter id="display_forum">
        <rule grant="false">
          <type>Forum</type>
        </rule>
      </filter>
    </action>

    <!--  add the thread creation button -->
    <action enabled="true" icon="/icons/action_add.gif" id="newForumThread" label="command.create.thread" link="#{documentActions.createDocument('Thread')}">
      <category>SUBVIEW_UPPER_LIST</category>
      <filter id="newThread">
        <rule grant="true">
          <permission>AddChildren</permission>
          <type>Forum</type>
        </rule>
      </filter>
    </action>

    <!-- Filter tabs for thread -->
    <action id="TAB_EDIT">
      <filter id="no_edit_on_thread">
        <rule grant="false">
          <type>Thread</type>
        </rule>
      </filter>
    </action>

    <action id="TAB_RELATIONS">
      <filter id="no_relations_on_thread">
        <rule grant="false">
          <type>Thread</type>
        </rule>
      </filter>
    </action>

    <action id="TAB_METADATA_EDIT">
      <filter id="no_metadata_on_thread">
        <rule grant="false">
          <type>Thread</type>
        </rule>
      </filter>
    </action>

    <action id="TAB_CONTENT_HISTORY">
      <filter id="no_history_on_thread">
        <rule grant="false">
          <type>Thread</type>
        </rule>
      </filter>
    </action>

    <action id="TAB_METADATA_VIEW">
      <filter id="no_metadata_view_on_thread">
        <rule grant="false">
          <type>Thread</type>
        </rule>
      </filter>
    </action>

    <action id="view_comments">
      <filter id="no_comment_on_thread">
        <rule grant="false">
          <type>Thread</type>
        </rule>
      </filter>
    </action>

    <action enabled="true" icon="/icons/file.gif" id="thread_rights" label="action.view.rights" link="/incl/tabs/document_rights.xhtml" order="50">
      <category>VIEW_ACTION_LIST</category>
      <filter id="on_thread_rights">
        <rule grant="true">
          <permission>WriteSecurity</permission>
          <type>Thread</type>
        </rule>
      </filter>
    </action>

    <action enabled="true" id="TAB_THREAD" label="action.view.thread" link="/incl/tabs/document_thread.xhtml">
      <category>VIEW_ACTION_LIST</category>
      <filter id="on_thread_view">
        <rule grant="true">
          <type>Thread</type>
        </rule>
      </filter>
    </action>
  </extension>