Interface OrganizationalUnitSearchService


  • public interface OrganizationalUnitSearchService
    OrganizationalUnit remote search interface
    • Method Detail

      • searchByName

        Collection<OrganizationalUnit> searchByName​(String pattern,
                                                    int maxItems,
                                                    boolean caseSensitive)
        Retrieve a max number of OrganizationalUnit instances given a name pattern.

        Examples:

        • searchByName("", 20, true); => get 20 instances, no matter their name
        • searchByName("A", 10, true); => get the first 10 instances that match the letter A
        • searchByName("alfa", -1, false); => get all the instances which name contains the word "alfa" (case unsensitive)
        Parameters:
        pattern - An string fragment which must be present in any of the instances retrieved.
        maxItems - Max number of instances to retrieve. This setting is ruled out if zero or negative.
        caseSensitive - Case sensitiveness flag
        Returns:
        A collection of OrganizationalUnit instances