Platform Explorer / Nuxeo Platform 5.6

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

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

Extension point

Extension point filters of component ActionService.

Contributed items

  • <filter id="view">
          <rule grant="false">
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="create">
          <rule grant="true">
            <permission>AddChildren</permission>
            <facet>Folderish</facet>
            <type>Workspace</type>
            <type>TemplateRoot</type>
            <type>Section</type>
            <type>Folder</type>
            <type>OrderedFolder</type>
            <condition>
              #{typeManager.getAllowedSubTypes(document.getType(),
              document).size()
              &gt; 0}
            </condition>
          </rule>
        </filter>
  • <filter id="importFile">
          <rule grant="true">
            <permission>AddChildren</permission>
            <facet>Folderish</facet>
            <type>Workspace</type>
            <type>Folder</type>
            <condition>
              #{typeManager.getAllowedSubTypes(document.getType(),
              document).size()
              &gt; 0}
            </condition>
          </rule>
        </filter>
  • <filter id="edit">
          <rule grant="false">
            <type>Root</type>
            <type>Domain</type>
            <type>WorkspaceRoot</type>
            <type>Workspace</type>
          </rule>
          <rule grant="true">
            <permission>Write</permission>
          </rule>
        </filter>
  • <filter id="user_canedit">
          <rule grant="true">
            <permission>Write</permission>
          </rule>
        </filter>
  • <filter id="workspace_edit">
          <rule grant="true">
            <type>Domain</type>
            <type>WorkspaceRoot</type>
            <type>Workspace</type>
            <permission>Write</permission>
          </rule>
        </filter>
  • <filter id="metadata_edit">
          <rule grant="false">
            <type>Root</type>
          </rule>
          <rule grant="true">
            <permission>Write</permission>
          </rule>
        </filter>
  • <filter id="cannotEdit">
          <rule grant="false">
            <type>Root</type>
          </rule>
          <rule grant="false">
            <condition>!document.isProxy()</condition>
            <permission>Write</permission>
          </rule>
          <rule grant="false">
            <condition>!document.isProxy()</condition>
            <permission>Manage everything</permission>
          </rule>
        </filter>
  • <filter id="anonymous">
          <rule grant="true">
            <condition>#{currentUser.anonymous}</condition>
          </rule>
        </filter>
  • <filter id="not_anonymous">
          <rule grant="false">
            <condition>#{currentUser.anonymous}</condition>
          </rule>
        </filter>
  • <filter id="view_content">
          <rule grant="true">
            <permission>ReadChildren</permission>
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="valid_for_publish">
          <rule grant="true">
            <condition>
              document.getCurrentLifeCycleState().equals("approved")
            </condition>
          </rule>
        </filter>
  • <filter id="manage">
          <rule grant="true">
            <permission>Manage everything</permission>
          </rule>
        </filter>
  • <filter id="not_review_documents">
          <rule grant="false">
            <condition>
              document.getCurrentLifeCycleState().equals("review")
            </condition>
          </rule>
        </filter>
  • <filter id="mutable_document">
          <rule grant="false">
            <facet>Immutable</facet>
          </rule>
          <rule grant="false">
            <type>Root</type>
          </rule>
          <rule grant="false">
            <condition>
              document.getCurrentLifeCycleState().equals("deleted")
            </condition>
          </rule>
        </filter>
  • <filter id="delete_content">
          <rule grant="true">
            <permission>RemoveChildren</permission>
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="rights">
          <rule grant="true">
            <permission>WriteSecurity</permission>
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="not_folder">
          <rule grant="false">
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="folder">
          <rule grant="true">
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="currentWorkListIsNotEmpty">
          <rule grant="false">
            <condition>#{clipboardActions.workListEmpty}</condition>
          </rule>
        </filter>
  • <filter id="canPasteCurrentWorkList">
          <rule grant="true">
            <condition>#{clipboardActions.canPasteWorkList}</condition>
          </rule>
        </filter>
  • <filter id="canMoveWorkingList">
          <rule grant="true">
            <condition>#{clipboardActions.canMoveWorkingList}</condition>
          </rule>
        </filter>
  • <filter id="canCopyFromCurrentSelection">
          <rule grant="true">
            <condition>#{clipboardActions.canCopy}</condition>
          </rule>
        </filter>
  • <filter id="can_lock">
          <rule grant="true">
            <permission>Write</permission>
            <condition>#{lockActions.canLockCurrentDoc}</condition>
          </rule>
          <rule grant="false">
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="can_unlock">
          <rule grant="true">
            <permission>Write</permission>
            <condition>#{lockActions.canUnlockCurrentDoc}</condition>
          </rule>
          <rule grant="false">
            <facet>Folderish</facet>
          </rule>
        </filter>
  • <filter id="only_for_manager">
          <rule grant="true">
            <condition>#{userSession.administrator}</condition>
          </rule>
        </filter>
  • <filter id="hasAttachedFiles">
          <rule grant="true">
            <schema>files</schema>
          </rule>
        </filter>
  • <filter id="type_section">
          <rule grant="false">
            <type>Section</type>
          </rule>
        </filter>
  • <filter id="denyFilesTab">
          <rule grant="false">
            <type>WebSite</type>
            <type>WebPage</type>
            <type>BlogSite</type>
            <type>BlogPost</type>
          </rule>
        </filter>
  • <filter id="inSection">
          <rule grant="true">
            <type>Section</type>
            <type>SectionRoot</type>
          </rule>
        </filter>
  • <filter id="outSection">
          <rule grant="false">
            <type>Section</type>
            <type>SectionRoot</type>
          </rule>
        </filter>
  • <filter id="not_readonly">
          <rule grant="true">
            <condition>#{notReadOnly}</condition>
          </rule>
        </filter>
  • <filter id="orderable">
          <rule grant="true">
            <facet>Orderable</facet>
          </rule>
        </filter>
  • <filter id="not_orderable">
          <rule grant="false">
            <facet>Orderable</facet>
          </rule>
        </filter>
  • <filter id="canMoveToTop">
          <rule grant="true">
            <condition>#{orderableDocumentActions.canMoveToTop}</condition>
            <facet>Orderable</facet>
          </rule>
        </filter>
  • <filter id="canMoveUp">
          <rule grant="true">
            <condition>#{orderableDocumentActions.canMoveUp}</condition>
            <facet>Orderable</facet>
          </rule>
        </filter>
  • <filter id="canMoveDown">
          <rule grant="true">
            <condition>#{orderableDocumentActions.canMoveDown}</condition>
            <facet>Orderable</facet>
          </rule>
        </filter>
  • <filter id="canMoveToBottom">
          <rule grant="true">
            <condition>#{orderableDocumentActions.canMoveToBottom}</condition>
            <facet>Orderable</facet>
          </rule>
        </filter>
  • <filter id="has_local_configuration_available">
          <rule grant="false">
            <condition>
              #{webActions.getActionsList('LOCAL_CONFIGURATION').isEmpty()}
            </condition>
          </rule>
          <rule grant="true">
            <permission>Manage everything</permission>
            <facet>SuperSpace</facet>
          </rule>
        </filter>
  • <filter id="is_creating_workspace">
          <rule grant="true">
            <condition>#{changeableDocument.type == 'Workspace'}</condition>
          </rule>
        </filter>
  • <filter id="is_not_creating_workspace">
          <rule grant="false">
            <condition>#{changeableDocument.type == 'Workspace'}</condition>
          </rule>
        </filter>

XML source

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

    <filter id="view">
      <rule grant="false">
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="create">
      <rule grant="true">
        <permission>AddChildren</permission>
        <facet>Folderish</facet>
        <type>Workspace</type>
        <type>TemplateRoot</type>
        <type>Section</type>
        <type>Folder</type>
        <type>OrderedFolder</type>
        <condition>
          #{typeManager.getAllowedSubTypes(document.getType(),
          document).size()
          &gt; 0}
        </condition>
      </rule>
    </filter>

    <filter id="importFile">
      <rule grant="true">
        <permission>AddChildren</permission>
        <facet>Folderish</facet>
        <type>Workspace</type>
        <type>Folder</type>
        <condition>
          #{typeManager.getAllowedSubTypes(document.getType(),
          document).size()
          &gt; 0}
        </condition>
      </rule>
    </filter>

    <filter id="edit">
      <rule grant="false">
        <type>Root</type>
        <type>Domain</type>
        <type>WorkspaceRoot</type>
        <type>Workspace</type>
      </rule>
      <rule grant="true">
        <permission>Write</permission>
      </rule>
    </filter>

    <filter id="user_canedit">
      <rule grant="true">
        <permission>Write</permission>
      </rule>
    </filter>

    <filter id="workspace_edit">
      <rule grant="true">
        <type>Domain</type>
        <type>WorkspaceRoot</type>
        <type>Workspace</type>
        <permission>Write</permission>
      </rule>
    </filter>

    <filter id="metadata_edit">
      <rule grant="false">
        <type>Root</type>
      </rule>
      <rule grant="true">
        <permission>Write</permission>
      </rule>
    </filter>

    <!-- deprecated, use mutable_document instead -->
    <filter id="cannotEdit">
      <rule grant="false">
        <type>Root</type>
      </rule>
      <rule grant="false">
        <condition>!document.isProxy()</condition>
        <permission>Write</permission>
      </rule>
      <rule grant="false">
        <condition>!document.isProxy()</condition>
        <permission>Manage everything</permission>
      </rule>
    </filter>

    <filter id="anonymous">
      <rule grant="true">
        <condition>#{currentUser.anonymous}</condition>
      </rule>
    </filter>

    <filter id="not_anonymous">
      <rule grant="false">
        <condition>#{currentUser.anonymous}</condition>
      </rule>
    </filter>

    <filter id="view_content">
      <rule grant="true">
        <permission>ReadChildren</permission>
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="valid_for_publish">
      <rule grant="true">
        <condition>
          document.getCurrentLifeCycleState().equals("approved")
        </condition>
      </rule>
    </filter>

    <filter id="manage">
      <rule grant="true">
        <permission>Manage everything</permission>
      </rule>
    </filter>

    <filter id="not_review_documents">
      <rule grant="false">
        <condition>
          document.getCurrentLifeCycleState().equals("review")
        </condition>
      </rule>
    </filter>

    <filter id="mutable_document">
      <rule grant="false">
        <facet>Immutable</facet>
      </rule>
      <rule grant="false">
        <type>Root</type>
      </rule>
      <rule grant="false">
        <condition>
          document.getCurrentLifeCycleState().equals("deleted")
        </condition>
      </rule>
    </filter>

    <filter id="delete_content">
      <rule grant="true">
        <permission>RemoveChildren</permission>
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="rights">
      <rule grant="true">
        <permission>WriteSecurity</permission>
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="not_folder">
      <rule grant="false">
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="folder">
      <rule grant="true">
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="currentWorkListIsNotEmpty">
      <rule grant="false">
        <condition>#{clipboardActions.workListEmpty}</condition>
      </rule>
    </filter>

    <filter id="canPasteCurrentWorkList">
      <rule grant="true">
        <condition>#{clipboardActions.canPasteWorkList}</condition>
      </rule>
    </filter>

    <filter id="canMoveWorkingList">
      <rule grant="true">
        <condition>#{clipboardActions.canMoveWorkingList}</condition>
      </rule>
    </filter>

    <filter id="canCopyFromCurrentSelection">
      <rule grant="true">
        <condition>#{clipboardActions.canCopy}</condition>
      </rule>
    </filter>

    <filter id="can_lock">
      <rule grant="true">
        <permission>Write</permission>
        <condition>#{lockActions.canLockCurrentDoc}</condition>
      </rule>
      <rule grant="false">
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="can_unlock">
      <rule grant="true">
        <permission>Write</permission>
        <condition>#{lockActions.canUnlockCurrentDoc}</condition>
      </rule>
      <rule grant="false">
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="only_for_manager">
      <rule grant="true">
        <condition>#{userSession.administrator}</condition>
      </rule>
    </filter>

    <filter id="hasAttachedFiles">
      <rule grant="true">
        <schema>files</schema>
      </rule>
    </filter>

    <filter id="type_section">
      <rule grant="false">
        <type>Section</type>
      </rule>
    </filter>

    <filter id="denyFilesTab">
      <rule grant="false">
        <type>WebSite</type>
        <type>WebPage</type>
        <type>BlogSite</type>
        <type>BlogPost</type>
      </rule>
    </filter>

    <filter id="inSection">
      <rule grant="true">
        <type>Section</type>
        <type>SectionRoot</type>
      </rule>
    </filter>

    <filter id="outSection">
      <rule grant="false">
        <type>Section</type>
        <type>SectionRoot</type>
      </rule>
    </filter>

    <filter id="not_readonly">
      <rule grant="true">
        <condition>#{notReadOnly}</condition>
      </rule>
    </filter>

    <filter id="orderable">
      <rule grant="true">
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="not_orderable">
      <rule grant="false">
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="canMoveToTop">
      <rule grant="true">
        <condition>#{orderableDocumentActions.canMoveToTop}</condition>
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="canMoveUp">
      <rule grant="true">
        <condition>#{orderableDocumentActions.canMoveUp}</condition>
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="canMoveDown">
      <rule grant="true">
        <condition>#{orderableDocumentActions.canMoveDown}</condition>
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="canMoveToBottom">
      <rule grant="true">
        <condition>#{orderableDocumentActions.canMoveToBottom}</condition>
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="has_local_configuration_available">
      <rule grant="false">
        <condition>
          #{webActions.getActionsList('LOCAL_CONFIGURATION').isEmpty()}
        </condition>
      </rule>
      <rule grant="true">
        <permission>Manage everything</permission>
        <facet>SuperSpace</facet>
      </rule>
    </filter>

    <filter id="is_creating_workspace">
      <rule grant="true">
        <condition>#{changeableDocument.type == 'Workspace'}</condition>
      </rule>
    </filter>

    <filter id="is_not_creating_workspace">
      <rule grant="false">
        <condition>#{changeableDocument.type == 'Workspace'}</condition>
      </rule>
    </filter>

  </extension>