Package org.springframework.ldap.core

Examples of org.springframework.ldap.core.CollectingNameClassPairCallbackHandler


    @Test
    public void test()
    {
        ContextMapperCallbackHandlerFactory sut = new ContextMapperCallbackHandlerFactory(mapper);

        CollectingNameClassPairCallbackHandler result = sut.getCallbackHandler();
        assertNotNull(result);
    }
View Full Code Here


    @Test
    public void test()
    {
        AttributesMapperCallbackHandlerFactory sut = new AttributesMapperCallbackHandlerFactory(mapper);

        CollectingNameClassPairCallbackHandler result = sut.getCallbackHandler();
        assertNotNull(result);
    }
View Full Code Here

        // add passed in attribute criteria to filter.
        AbstractFilter abstractFilter = filterCreator.getFilter(inRequest.getQueryString());

        // get the configured CollectingNameClassPairCallbackHandler to use for query.
        CollectingNameClassPairCallbackHandler collectingHandler = handlerFactory.getCallbackHandler();

        // execute query.
        ldapSearchStrategy.searchLdap(template, abstractFilter.encode(), searchControls, collectingHandler);

        // get results gathered by CollectingNameClassPairCallbackHandler.
        List<Type> rawResults = collectingHandler.getList();

        // Results contain nulls if the context/attribute mappers were unable to create objects, so pull them out.
        List<Type> results = new ArrayList<Type>();
        for (Type t : rawResults)
        {
View Full Code Here

TOP

Related Classes of org.springframework.ldap.core.CollectingNameClassPairCallbackHandler

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.