Platform Explorer / Nuxeo Platform LTS 2015 7.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-7.10-HF07.jar /OSGI-INF/actions-contrib.xml

Extension point

Extension point filters of component ActionService.

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>

    Filter used by the "suggestOneDirectory" and "suggestManyDirectory" widget types to check wether the "Add new entry" button should be displayed.

    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.

    This filter is evaluated in a context where the variable 'directoryName' is set to the currently selected directory name.

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