@Test public void testCreateFilterWildcard() { List<Filter> filterList = new ArrayList<Filter>(); filterList.add(new EqualsFilter("objectclass", "person")); filterList.add(new EqualsFilter("objectclass", "user")); FindByAttributeQuery findByAttribFilterCreator = new FindByAttributeQuery(filterList); sut = new FindByAttribute("cn", findByAttribFilterCreator, false); AbstractFilter filter = sut.getFilter("something"); assertEquals("(&(objectclass=person)(objectclass=user)(cn=something*))", filter.encode()); }
public AbstractFilter getFilter(final String inAttributeValue) { return findByAttribFilterCreator.getFilter((exactMatch ? attribute + inAttributeValue : attribute + inAttributeValue + "*")); }
FindByAttribute implements FilterCreator { public AbstractFilter getFilter(final String inAttributeValue) { return findByAttribFilterCreator.getFilter((exactMatch ? attribute + inAttributeValue : attribute + inAttributeValue + "*")); } }
FindByAttribute implements FilterCreator { public AbstractFilter getFilter(final String inAttributeValue) { return findByAttribFilterCreator.getFilter((exactMatch ? attribute + inAttributeValue : attribute + inAttributeValue + "*")); } FindByAttribute(final String inAttribute, final boolean inExactMatch);  FindByAttribute(final String inAttribute, final FindByAttributeQuery inFindByAttributeQueryFilterCreator,
            final boolean inExactMatch); }
FindByAttribute implements FilterCreator { public AbstractFilter getFilter(final String inAttributeValue) { return findByAttribFilterCreator.getFilter((exactMatch ? attribute + inAttributeValue : attribute + inAttributeValue + "*")); } FindByAttribute(final String inAttribute, final boolean inExactMatch);  FindByAttribute(final String inAttribute, final FindByAttributeQuery inFindByAttributeQueryFilterCreator,
            final boolean inExactMatch); AbstractFilter getFilter(final String inAttributeValue); }
FindByAttribute implements FilterCreator { public AbstractFilter getFilter(final String inAttributeValue) { return findByAttribFilterCreator.getFilter((exactMatch ? attribute + inAttributeValue : attribute + inAttributeValue + "*")); } FindByAttribute(final String inAttribute, final boolean inExactMatch);  FindByAttribute(final String inAttribute, final FindByAttributeQuery inFindByAttributeQueryFilterCreator,
            final boolean inExactMatch); AbstractFilter getFilter(final String inAttributeValue);  }