<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/ldapframework/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/ldapframework/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 29 Feb 2008 17:48:54 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ldapframework/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>LDAPResultSet boolean next() fix</title><link>https://sourceforge.net/p/ldapframework/feature-requests/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If you try to read more results than are in the LDAPResultSet, an exception is returned (PartialResultSet). I think the intention was to return "false" back to the caller to let it know there are no more results.  Here is a fix:&lt;/p&gt;
&lt;p&gt;public boolean next() throws DAOException {&lt;br /&gt;
try {&lt;br /&gt;
if(result.hasMore()) {&lt;br /&gt;
    logger.debug("LDAPResultSet::next() - has more");&lt;br /&gt;
currentResult = (SearchResult) result.next();&lt;br /&gt;
attrs = currentResult.getAttributes();&lt;br /&gt;
return true;&lt;br /&gt;
}&lt;br /&gt;
else {&lt;br /&gt;
currentResult = null;&lt;br /&gt;
attrs = null;&lt;br /&gt;
return false;&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;catch(PartialResultException ex) {&lt;br /&gt;
currentResult = null;&lt;br /&gt;
attrs = null;&lt;br /&gt;
return false;&lt;br /&gt;
}&lt;br /&gt;
catch(NamingException ex) {&lt;br /&gt;
throw new DAOException(ex);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trames</dc:creator><pubDate>Fri, 29 Feb 2008 17:48:54 -0000</pubDate><guid>https://sourceforge.net128e9db8289900a37572631dd7d245564b27d164</guid></item><item><title>LDAPResultSet List getResultSetNames()</title><link>https://sourceforge.net/p/ldapframework/feature-requests/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Add this method to retrieve a List object &amp;lt;String&amp;gt; of all the field names returned by the ResultSet. Handy if you requested all fields "SELECT *"&lt;/p&gt;
&lt;p&gt;/**&lt;br /&gt;
* Returns a List of all of the field names contained&lt;br /&gt;
* within the result set&lt;br /&gt;
* &lt;br /&gt;
* @return&lt;br /&gt;
* @throws DAOException&lt;br /&gt;
*/&lt;br /&gt;
public List&amp;lt;String&amp;gt; getResultSetNames() throws DAOException {&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;ArrayList&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;String&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;names&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ArrayList&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;String&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;NamingEnumeration&amp;lt;String&amp;gt; en = attrs.getIDs();&lt;br /&gt;
while(en.hasMore()) {&lt;br /&gt;
String name = (String) en.next();&lt;br /&gt;
names.add(name);&lt;br /&gt;
}&lt;br /&gt;
    }&lt;br /&gt;
    catch (NamingException ex) {&lt;br /&gt;
throw new DAOException(ex);&lt;br /&gt;
    }&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;names&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trames</dc:creator><pubDate>Thu, 28 Feb 2008 21:27:01 -0000</pubDate><guid>https://sourceforge.net23559a021d0bf8f923c05480a5bff50088f4383f</guid></item><item><title>LDAPResultSet getList(String attrName)</title><link>https://sourceforge.net/p/ldapframework/feature-requests/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Add this method to retrieve by name instead of number:&lt;/p&gt;
&lt;p&gt;// getList by attribute name&lt;br /&gt;
public List getList(String attrName) throws DAOException {&lt;br /&gt;
try {&lt;br /&gt;
ArrayList list = new ArrayList();&lt;br /&gt;
Attribute attr = attrs.get(attrName);&lt;/p&gt;
&lt;p&gt;if(attr != null){&lt;br /&gt;
NamingEnumeration en = attr.getAll();&lt;br /&gt;
while(en.hasMore()) {&lt;br /&gt;
String val = (String) en.next();&lt;br /&gt;
list.add(val);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
return list;&lt;br /&gt;
}&lt;br /&gt;
catch(NamingException ex) {&lt;br /&gt;
throw new DAOException(ex);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trames</dc:creator><pubDate>Wed, 27 Feb 2008 18:34:23 -0000</pubDate><guid>https://sourceforge.net2891a61fd0ff1f4ff8b845d36cbc8fa5a4fe0ac9</guid></item><item><title>Enhance WHERE clause</title><link>https://sourceforge.net/p/ldapframework/feature-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;A cool feature would be to get rid of the LDAP silly syntax and use SQL AND/OR and even IN clauses after the WHERE.&lt;/p&gt;
&lt;p&gt;(&amp;amp;(objectClass=fooOrganziation)(&amp;amp;(&amp;amp;(&amp;amp;(orgName=?)(orgType=?))(st=?))(orgBusinessUnit=?))) &lt;/p&gt;
&lt;p&gt;(objectClass=fooOrganization) AND (orgName=? AND orgType=? AND st=? AND orgBusinessUnit=?)&lt;/p&gt;
&lt;p&gt;... or something like that.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trames</dc:creator><pubDate>Mon, 25 Feb 2008 22:27:20 -0000</pubDate><guid>https://sourceforge.net1951286d5e2327d42289c73d7b4af258b2288fe2</guid></item></channel></rss>