Platform Explorer / Nuxeo Platform 2021.26

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

This contribution is part of XML component org.nuxeo.ecm.directory.actions inside nuxeo-platform-directory-web-2021.26.5.jar /OSGI-INF/actions-contrib.xml

Extension Point

Extension point filters of component ActionService.

Registration Order

7
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <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">

    <!--  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>