directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <seelm...@apache.org>
Subject Re: Search result in LDAP API
Date Thu, 28 Apr 2011 16:00:27 GMT
On Thu, Apr 28, 2011 at 5:39 PM, Emmanuel Lecharny <elecharny@gmail.com> wrote:
> I like Stefan's idea a lot, but there is something a bit confusing : if a
> user tries to do a simple search, he will expect the LdapConnection.search()
> to be the method to use. Having to use LdapConnection.searchEntries()
> instead is a bit problematic.
>
> What about transforming the LdapConnection.search( SearchRequest ) method to
> LdapConnection.send( SearchRequest ) (and the very same for any complex
> request, using a Request instance) :
> - LdapConnection.send( AddRequest ) but LdapConnection.add( Entry )
> - LdapConnection.send( BindRequest ) but LdapConnection.bind( dn, password )
> - LdapConnection.send( SearchRequest ) but Cursor<Entry>
> LdapConnection.search( base, filter, scope, attrs...)
> - ...
>
> thoughts ?

Sure, that makes totally sense because the operation is already part
of the request class. And fortunately "search" will be listed before
"send" in the API docs and code completion popup window ;-)

Kind Regards,
Stefan

Mime
View raw message