Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.social.workspace.actions--filters

This contribution is part of XML component org.nuxeo.ecm.social.workspace.actions inside nuxeo-social-workspace-web-5.6.jar

Extension point

Extension point filters of component ActionService.

Contributed items

  • <filter id="socialCollaborationManagementAccess">
          <rule grant="true">
            <condition>#{currentUser.administrator}</condition>
            <condition>#{currentUser.isMemberOf('powerusers')}</condition>
          </rule>
        </filter>
  • <filter id="can_be_created_and_modified_in_collaboration_view">
          <rule grant="true">
            <type>Article</type>
            <type>NewsItem</type>
            <type>File</type>
          </rule>
        </filter>
  • <filter id="moderate_social_workspace">
          <rule grant="true">
            <condition>#{socialWorkspaceActions.enableSocialWorkspaceActions()}</condition>
            <condition>#{documentsListsManager.isWorkingListEmpty("CURRENT_SELECTION") == false}</condition>
          </rule>
        </filter>
  • <filter id="manage_social_workspace">
          <rule grant="true">
            <permission>Manage everything</permission>
            <facet>SocialWorkspace</facet>
          </rule>
        </filter>
  • <filter id="not_in_social_workspace">
          <rule grant="true">
            <condition>#{socialWorkspaceService.getSocialWorkspace(currentDocument) == null}</condition>
          </rule>
        </filter>
  • <filter id="social_workspace">
          <rule grant="true">
            <facet>SocialWorkspace</facet>
          </rule>
        </filter>
  • <filter id="not_social_workspace">
          <rule grant="false">
            <facet>SocialWorkspace</facet>
          </rule>
        </filter>
  • <filter id="social_document">
          <rule grant="true">
            <facet>SocialDocument</facet>
          </rule>
        </filter>
  • <filter id="not_social_document">
          <rule grant="false">
            <facet>SocialDocument</facet>
          </rule>
        </filter>
  • <filter id="has_previous_document">
          <rule grant="true">
            <condition>#{collaborationActions.previous != null}</condition>
          </rule>
        </filter>
  • <filter id="has_not_previous_document">
          <rule grant="true">
            <condition>#{collaborationActions.previous == null}</condition>
          </rule>
        </filter>
  • <filter id="hide_rights_tab">
          <rule grant="false">
            <facet>SocialWorkspace</facet>
            <condition>!principal.administrator</condition>
          </rule>
        </filter>
  • <filter id="has_collaboration_view">
          <rule grant="true">
            <facet>SocialDocument</facet>
            <facet>SocialWorkspace</facet>
            <type>Article</type>
            <type>NewsItem</type>
            <type>SocialWorkspace</type>
            <type>File</type>
          </rule>
        </filter>
  • <filter append="true" id="admin_publication_trees_filter">
          <rule grant="false">
            <facet>SocialWorkspace</facet>
          </rule>
        </filter>
  • <filter append="true" id="has_local_configuration_available">
          <rule grant="false">
            <facet>SocialWorkspace</facet>
          </rule>
        </filter>
  • <filter id="social_workspace_dashboard_view">
          <rule grant="false">
            <condition>#{collaborationActions.getViewId().equals("/social_dashboard.xhtml")}</condition>
          </rule>
        </filter>
  • <filter id="is_social_workspace_administrator">
          <rule grant="true">
            <permission>Manage everything</permission>
          </rule>
        </filter>
  • <filter id="has_write_right">
          <rule grant="true">
            <permission>Write</permission>
          </rule>
        </filter>
  • <filter id="new_news_item">
          <rule grant="true">
            <permission>AddChildren</permission>
            <type>NewsItemsRoot</type>
          </rule>
        </filter>
  • <filter append="true" id="isWebContainer">
          <rule grant="false">
            <facet>SocialWorkspace</facet>
          </rule>
        </filter>
  • <filter append="true" id="denyFilesTab">
          <rule grant="false">
            <facet>SocialWorkspace</facet>
          </rule>
        </filter>
  • <filter append="true" id="create">
          <rule grant="true">
            <permission>AddChildren</permission>
            <facet>SocialWorkspace</facet>
          </rule>
          <rule grant="true">
            <permission>AddChildren</permission>
            <type>Root</type>
            <type>SocialDomain</type>
            <type>SocialFolder</type>
            <condition>
              #{typeManager.getAllowedSubTypes(document.getType(), document).size()
             &gt; 0}
            </condition>
          </rule>
        </filter>
  • <filter append="true" id="importFile">
          <rule grant="true">
            <permission>AddChildren</permission>
            <facet>SocialWorkspace</facet>
          </rule>
          <rule grant="true">
            <permission>AddChildren</permission>
            <type>SocialFolder</type>
            <condition>
              #{typeManager.getAllowedSubTypes(document.getType(), document).size()
             &gt; 0}
            </condition>
          </rule>
        </filter>
  • <filter id="isSocialWorkspaceMember">
          <rule grant="true">
            <condition>
              #{socialWorkspaceActions.isCurrentUserAdministratorOrMemberOfCurrentSocialWorkspace()}
            </condition>
          </rule>
        </filter>
  • <filter id="isCurrentDocArticle">
          <rule grant="true">
            <type>Article</type>
          </rule>
        </filter>
  • <filter id="isCurrentDocNewsItem">
          <rule grant="true">
            <type>NewsItem</type>
          </rule>
        </filter>
  • <filter id="isCurrentDocFile">
          <rule grant="true">
            <type>File</type>
          </rule>
        </filter>
  • <filter id="canCreateSocialWorkspace">
          <rule grant="true">
            <condition>#{collaborationActions.canCreateSocialWorkspace()}</condition>
          </rule>
        </filter>
  • <filter id="isNotSocialWorkspaceContainer">
          <rule grant="false">
            <facet>folderish</facet>
          </rule>
        </filter>
  • <filter id="isPublic">
          <rule grant="true">
            <condition>#{socialDocumentVisibilityActions.isPublic()}</condition>
          </rule>
        </filter>
  • <filter id="isRestricted">
          <rule grant="true">
            <condition>#{socialDocumentVisibilityActions.isRestricted()}</condition>
          </rule>
        </filter>

XML source

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

    <filter id="socialCollaborationManagementAccess">
      <rule grant="true">
        <condition>#{currentUser.administrator}</condition>
        <condition>#{currentUser.isMemberOf('powerusers')}</condition>
      </rule>
    </filter>

    <filter id="can_be_created_and_modified_in_collaboration_view">
      <rule grant="true">
        <type>Article</type>
        <type>NewsItem</type>
        <type>File</type>
      </rule>
    </filter>

    <filter id="moderate_social_workspace">
      <rule grant="true">
        <condition>#{socialWorkspaceActions.enableSocialWorkspaceActions()}</condition>
        <condition>#{documentsListsManager.isWorkingListEmpty("CURRENT_SELECTION") == false}</condition>
      </rule>
    </filter>

    <filter id="manage_social_workspace">
      <rule grant="true">
        <permission>Manage everything</permission>
        <facet>SocialWorkspace</facet>
      </rule>
    </filter>

    <filter id="not_in_social_workspace">
      <rule grant="true">
        <condition>#{socialWorkspaceService.getSocialWorkspace(currentDocument) == null}</condition>
      </rule>
    </filter>

    <filter id="social_workspace">
      <rule grant="true">
        <facet>SocialWorkspace</facet>
      </rule>
    </filter>

    <filter id="not_social_workspace">
      <rule grant="false">
        <facet>SocialWorkspace</facet>
      </rule>
    </filter>

    <filter id="social_document">
      <rule grant="true">
        <facet>SocialDocument</facet>
      </rule>
    </filter>

    <filter id="not_social_document">
      <rule grant="false">
        <facet>SocialDocument</facet>
      </rule>
    </filter>

    <filter id="has_previous_document">
      <rule grant="true">
        <condition>#{collaborationActions.previous != null}</condition>
      </rule>
    </filter>

    <filter id="has_not_previous_document">
      <rule grant="true">
        <condition>#{collaborationActions.previous == null}</condition>
      </rule>
    </filter>

    <filter id="hide_rights_tab">
      <rule grant="false">
        <facet>SocialWorkspace</facet>
        <condition>!principal.administrator</condition>
      </rule>
    </filter>

    <filter id="has_collaboration_view">
      <rule grant="true">
        <facet>SocialDocument</facet>
        <facet>SocialWorkspace</facet>
        <type>Article</type>
        <type>NewsItem</type>
        <type>SocialWorkspace</type>
        <type>File</type>
      </rule>
    </filter>

    <filter append="true" id="admin_publication_trees_filter">
      <rule grant="false">
        <facet>SocialWorkspace</facet>
      </rule>
    </filter>

    <filter append="true" id="has_local_configuration_available">
      <rule grant="false">
        <facet>SocialWorkspace</facet>
      </rule>
    </filter>

    <filter id="social_workspace_dashboard_view">
      <rule grant="false">
        <condition>#{collaborationActions.getViewId().equals("/social_dashboard.xhtml")}</condition>
      </rule>
    </filter>

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

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

    <filter id="new_news_item">
      <rule grant="true">
        <permission>AddChildren</permission>
        <type>NewsItemsRoot</type>
      </rule>
    </filter>

    <filter append="true" id="isWebContainer">
      <rule grant="false">
        <facet>SocialWorkspace</facet>
      </rule>
    </filter>

    <filter append="true" id="denyFilesTab">
      <rule grant="false">
        <facet>SocialWorkspace</facet>
      </rule>
    </filter>

    <filter append="true" id="create">
      <rule grant="true">
        <permission>AddChildren</permission>
        <facet>SocialWorkspace</facet>
      </rule>
      <rule grant="true">
        <permission>AddChildren</permission>
        <type>Root</type>
        <type>SocialDomain</type>
        <type>SocialFolder</type>
        <condition>
          #{typeManager.getAllowedSubTypes(document.getType(), document).size()
         &gt; 0}
        </condition>
      </rule>
    </filter>

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

    <filter id="isSocialWorkspaceMember">
      <rule grant="true">
        <condition>
          #{socialWorkspaceActions.isCurrentUserAdministratorOrMemberOfCurrentSocialWorkspace()}
        </condition>
      </rule>
    </filter>

    <filter id="isCurrentDocArticle">
      <rule grant="true">
        <type>Article</type>
      </rule>
    </filter>

    <filter id="isCurrentDocNewsItem">
      <rule grant="true">
        <type>NewsItem</type>
      </rule>
    </filter>

    <filter id="isCurrentDocFile">
      <rule grant="true">
        <type>File</type>
      </rule>
    </filter>

    <filter id="canCreateSocialWorkspace">
      <rule grant="true">
        <condition>#{collaborationActions.canCreateSocialWorkspace()}</condition>
      </rule>
    </filter>

    <filter id="isNotSocialWorkspaceContainer">
      <rule grant="false">
        <facet>folderish</facet>
      </rule>
    </filter>

    <filter id="isPublic">
      <rule grant="true">
        <condition>#{socialDocumentVisibilityActions.isPublic()}</condition>
      </rule>
    </filter>

    <filter id="isRestricted">
      <rule grant="true">
        <condition>#{socialDocumentVisibilityActions.isRestricted()}</condition>
      </rule>
    </filter>

  </extension>