Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
titleWrapping the allAuthoritiesSearch bean with a UnionizingLdapSearch
<bean id="allAuthoritiesSearch" class="org.pentaho.platform.plugin.services.security.userrole.ldap.search.UnionizingLdapSearch">
  <property name="searches">
    <set>
      <bean class="org.pentaho.platform.plugin.services.security.userrole.ldap.search.GenericLdapSearch">
        <!-- omitted for brevity; notice that the id has been removed for this bean -->
      </bean>
    </set>
  </property>
</beanbean>

Now we have the ability to add other searches and UnionizingLdapSearch will automatically merge all the search results. Here's where StaticListLdapSearch comes in. We'll add that as the "other" search. As stated before, it simply returns the list that is set as its staticList property. Shown below is how a StaticListLdapSearch would be used alone.

...