Platform Explorer / Nuxeo Platform LTS 2019 10.10

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

This contribution is part of XML component org.nuxeo.ecm.platform.ui.select2.actions inside nuxeo-platform-ui-select2-10.10-HF33.jar /OSGI-INF/actions-contrib.xml

Extension Point

Extension point filters of component ActionService.

Registration Order

17
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="canAddEntryFromSuggestDirectoryWidget">
          <documentation>
            <p>
              Filter used by the "suggestOneDirectory" and "suggestManyDirectory"
              widget types to check wether the "Add new entry" button should be
              displayed.
            </p>
            <p>
              This filter is a combination of default filters controlling access to
              the "Vocabularies" tab in Admin Center and read-only configuration set
              on the directory.
            </p>
            <p>
              This filter is evaluated in a context where the variable
              'directoryName' is set to the currently selected directory name.
            </p>
            @since 5.9.1
          </documentation>
          <rule grant="true">
            <condition>currentUser.administrator</condition>
            <condition>currentUser.isMemberOf('powerusers')</condition>
          </rule>
          <rule grant="false">
            <condition>#{directoryUIActions.isReadOnly(directoryName)}</condition>
          </rule>
        </filter>

    @since 5.9.1

XML Source

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

    <filter id="canAddEntryFromSuggestDirectoryWidget">
      <documentation>
        <p>
          Filter used by the "suggestOneDirectory" and "suggestManyDirectory"
          widget types to check wether the "Add new entry" button should be
          displayed.
        </p>
        <p>
          This filter is a combination of default filters controlling access to
          the "Vocabularies" tab in Admin Center and read-only configuration set
          on the directory.
        </p>
        <p>
          This filter is evaluated in a context where the variable
          'directoryName' is set to the currently selected directory name.
        </p>
        @since 5.9.1
      </documentation>
      <rule grant="true">
        <condition>currentUser.administrator</condition>
        <condition>currentUser.isMemberOf('powerusers')</condition>
      </rule>
      <rule grant="false">
        <condition>#{directoryUIActions.isReadOnly(directoryName)}</condition>
      </rule>
    </filter>

  </extension>