Platform Explorer / Nuxeo Platform 5.6

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

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

Extension point

Extension point filters of component ActionService.

Contributed items

  • <filter id="directoriesManagementAccess">
          <rule grant="true">
            <condition>#{currentUser.administrator}</condition>
            <condition>#{currentUser.isMemberOf('powerusers')}</condition>
          </rule>
        </filter>
  • <filter id="readOnlyDirectory">
          <rule grant="true">
            <condition>#{directoryUIActions.isReadOnly(directoryName)}</condition>
          </rule>
        </filter>

XML source

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

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

    <!--  This filter is designed to be evaluated via
          #{directoryUIActions.checkContextualDirectoryFilter('readOnlyDirectory')}
          the filter context contains the name of the current directory being displayed

          You can override this filter to implement a custom logic
     -->
    <filter id="readOnlyDirectory">
      <rule grant="true">
        <condition>#{directoryUIActions.isReadOnly(directoryName)}</condition>
      </rule>
    </filter>

  </extension>