Package org.springframework.ldap.filter

Examples of org.springframework.ldap.filter.OrFilter


        }
    }

    public Collection<Entity> getEntitiesById(Collection<String> entityIds)
    {
        OrFilter idFilter = new OrFilter();
        String idAttr = configuration.getLdapIdAttribute();
        for (String id : entityIds)
        {
            idFilter.or(new EqualsFilter(idAttr, id));
        }
        Filter combinedFilter = null;
        if (configuration.getSearchFilter() != null)
        {
            combinedFilter = SearchUtil.andFilters(idFilter, configuration.getSearchFilter());
View Full Code Here


        for (String[] nameAndValues : fieldNamesAndValues)
        {
            if (nameAndValues.length > 1)
            {
                String name = nameAndValues[0];
                OrFilter fieldFilter = new OrFilter();
                for (int i = 1; i < nameAndValues.length; i++)
                {
                    fieldFilter.or(new EqualsFilter(name, nameAndValues[i]));
                }
                filter.and(fieldFilter);
            }
        }
        return baseFilter != null ? andFilters(baseFilter, filter) : filter;
View Full Code Here

        return handler.getCount() == 1 ? handler.getSingleResult() : null;
    }

    public void getEntitiesById(Collection<String> entityIds, EntitySearchResultHandler handler) throws SecurityException
    {
        OrFilter filter = new OrFilter();
        String idAttr = configuration.getLdapIdAttribute();
        for (String id : entityIds)
        {
            filter.or(new EqualsFilter(idAttr, id));
        }
        getEntities(filter, handler);
    }
View Full Code Here

TOP

Related Classes of org.springframework.ldap.filter.OrFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.