Platform Explorer / Nuxeo Platform 5.8

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.8.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>