Platform Explorer / CMF 1.8

Contribution org.nuxeo.ecm.classification.web.actions--actions

This contribution is part of XML component org.nuxeo.ecm.classification.web.actions inside nuxeo-classification-web-5.4.2-HF05.jar

Extension Point

Extension point actions of component ActionService.

Contributed Items

  • <action enabled="true" icon="/icons/action_add_file.gif" id="newClassificationRoot" label="command.createClassificationRoot" link="#{documentActions.createDocument('ClassificationRoot')}">
          <category>SUBVIEW_UPPER_LIST</category>
          <filter id="newClassificationRoot">
            <rule grant="true">
              <permission>AddChildren</permission>
              <facet>Folderish</facet>
            </rule>
          </filter>
        </action>
  • <action enabled="true" icon="/icons/action_add_file.gif" id="newClassificationFolder" label="command.createClassificationFolder" link="#{documentActions.createDocument('ClassificationFolder')}">
          <category>SUBVIEW_UPPER_LIST</category>
          <filter id="newClassificationFolder">
            <rule grant="true">
              <permission>AddChildren</permission>
              <schema>classification</schema>
            </rule>
          </filter>
        </action>
  • <action id="TAB_RIGHTS">
          <filter-id>is_not_classification_folder</filter-id>
        </action>
  • <action id="TAB_CONTENT">
          <filter id="is_not_classification_container">
            <rule grant="false">
              <schema>classification</schema>
            </rule>
          </filter>
        </action>
  • <action id="TAB_CLASSIFICATION_CONTENT" label="action.view.content" link="/classification/classification_content.xhtml" order="10">
          <category>VIEW_ACTION_LIST</category>
          <filter id="is_classification_container">
            <rule grant="true">
              <schema>classification</schema>
            </rule>
          </filter>
        </action>
  • <action id="CURRENT_SELECTION_CLASSIFICATION" label="action.classificationRequest" link="#{classificationActions.showCurrentSelectionClassificationForm(facesContext.viewRoot.viewId)}">
          <category>CURRENT_SELECTION_LIST</category>
          <filter-id>canClassifyFromCurrentSelection</filter-id>
        </action>
  • <action id="newDocument">
          <filter-id>is_not_classification_container</filter-id>
        </action>
  • <action id="newFile">
          <filter-id>is_not_classification_container</filter-id>
        </action>

XML Source

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

    <action enabled="true" icon="/icons/action_add_file.gif" id="newClassificationRoot" label="command.createClassificationRoot" link="#{documentActions.createDocument('ClassificationRoot')}">
      <category>SUBVIEW_UPPER_LIST</category>
      <filter id="newClassificationRoot">
        <rule grant="true">
          <permission>AddChildren</permission>
          <facet>Folderish</facet>
        </rule>
      </filter>
    </action>

    <action enabled="true" icon="/icons/action_add_file.gif" id="newClassificationFolder" label="command.createClassificationFolder" link="#{documentActions.createDocument('ClassificationFolder')}">
      <category>SUBVIEW_UPPER_LIST</category>
      <filter id="newClassificationFolder">
        <rule grant="true">
          <permission>AddChildren</permission>
          <schema>classification</schema>
        </rule>
      </filter>
    </action>

    <!-- avoid rights setting on classification folders -->
    <action id="TAB_RIGHTS">
      <filter-id>is_not_classification_folder</filter-id>
    </action>

    <action id="TAB_CONTENT">
      <filter id="is_not_classification_container">
        <rule grant="false">
          <schema>classification</schema>
        </rule>
      </filter>
    </action>

    <!-- specific content presentation for classification containers -->
    <action id="TAB_CLASSIFICATION_CONTENT" label="action.view.content" link="/classification/classification_content.xhtml" order="10">
      <category>VIEW_ACTION_LIST</category>
      <filter id="is_classification_container">
        <rule grant="true">
          <schema>classification</schema>
        </rule>
      </filter>
    </action>

    <action id="CURRENT_SELECTION_CLASSIFICATION" label="action.classificationRequest" link="#{classificationActions.showCurrentSelectionClassificationForm(facesContext.viewRoot.viewId)}">
      <category>CURRENT_SELECTION_LIST</category>
      <filter-id>canClassifyFromCurrentSelection</filter-id>
    </action>

    <!-- remove generic actions for classification folder documents -->
    <action id="newDocument">
      <filter-id>is_not_classification_container</filter-id>
    </action>
    <action id="newFile">
      <filter-id>is_not_classification_container</filter-id>
    </action>

  </extension>