@Test public void testFindFullTextWithAndWithoutWildcard() { Iterator<? extends Principal> i1 = principalProvider.findPrincipals("testGroup", true, SEARCH_TYPE_GROUP, 0, -1); Iterator<? extends Principal> i2 = principalProvider.findPrincipals("testGroup*", true, SEARCH_TYPE_GROUP, 0, -1); assertTrue(Iterators.elementsEqual(i1, i2)); }
@NotNull @Override public Iterator<? extends Principal> findPrincipals(@Nullable final String nameHint, final int searchType) { return findPrincipals(nameHint, false, searchType, 0, -1); }
UserPrincipalProvider implements PrincipalProvider { @NotNull @Override public Iterator<? extends Principal> findPrincipals(@Nullable final String nameHint, final int searchType) { return findPrincipals(nameHint, false, searchType, 0, -1); } }
UserPrincipalProvider implements PrincipalProvider { @NotNull @Override public Iterator<? extends Principal> findPrincipals(@Nullable final String nameHint, final int searchType) { return findPrincipals(nameHint, false, searchType, 0, -1); } UserPrincipalProvider(@NotNull Root root,
                          @NotNull UserConfiguration userConfiguration,
                          @NotNull NamePathMapper namePathMapper); }
UserPrincipalProvider implements PrincipalProvider { @NotNull @Override public Iterator<? extends Principal> findPrincipals(@Nullable final String nameHint, final int searchType) { return findPrincipals(nameHint, false, searchType, 0, -1); } UserPrincipalProvider(@NotNull Root root,
                          @NotNull UserConfiguration userConfiguration,
                          @NotNull NamePathMapper namePathMapper); @Override Principal getPrincipal(@NotNull String principalName); @Nullable @Override ItemBasedPrincipal getItemBasedPrincipal(@NotNull String principalOakPath); @NotNull @Override Set<Principal> getMembershipPrincipals(@NotNull Principal principal); @NotNull @Override Set<? extends Principal> getPrincipals(@NotNull String userID); @NotNull @Override Iterator<? extends Principal> findPrincipals(@Nullable final String nameHint, final int searchType); @NotNull @Override Iterator<? extends Principal> findPrincipals(@Nullable final String nameHint, final boolean fullText, final int searchType, long offset,
            long limit); @NotNull @Override Iterator<? extends Principal> findPrincipals(int searchType); }
UserPrincipalProvider implements PrincipalProvider { @NotNull @Override public Iterator<? extends Principal> findPrincipals(@Nullable final String nameHint, final int searchType) { return findPrincipals(nameHint, false, searchType, 0, -1); } UserPrincipalProvider(@NotNull Root root,
                          @NotNull UserConfiguration userConfiguration,
                          @NotNull NamePathMapper namePathMapper); @Override Principal getPrincipal(@NotNull String principalName); @Nullable @Override ItemBasedPrincipal getItemBasedPrincipal(@NotNull String principalOakPath); @NotNull @Override Set<Principal> getMembershipPrincipals(@NotNull Principal principal); @NotNull @Override Set<? extends Principal> getPrincipals(@NotNull String userID); @NotNull @Override Iterator<? extends Principal> findPrincipals(@Nullable final String nameHint, final int searchType); @NotNull @Override Iterator<? extends Principal> findPrincipals(@Nullable final String nameHint, final boolean fullText, final int searchType, long offset,
            long limit); @NotNull @Override Iterator<? extends Principal> findPrincipals(int searchType);  }