directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r871072 - in /websites/staging/directory/trunk/content: ./ api/five-minutes-tutorial.html
Date Wed, 24 Jul 2013 23:57:47 GMT
Author: buildbot
Date: Wed Jul 24 23:57:47 2013
New Revision: 871072

Log:
Staging update by buildbot for directory

Modified:
    websites/staging/directory/trunk/content/   (props changed)
    websites/staging/directory/trunk/content/api/five-minutes-tutorial.html

Propchange: websites/staging/directory/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Jul 24 23:57:47 2013
@@ -1 +1 @@
-1506536
+1506784

Modified: websites/staging/directory/trunk/content/api/five-minutes-tutorial.html
==============================================================================
--- websites/staging/directory/trunk/content/api/five-minutes-tutorial.html (original)
+++ websites/staging/directory/trunk/content/api/five-minutes-tutorial.html Wed Jul 24 23:57:47
2013
@@ -133,7 +133,7 @@
 <p>In order to create a connection, you first have to provide the name of the server,
and the port to use. Those parameters will be defaulted to <strong>localHost</strong>
and <strong>389</strong> if nothing is defined. </p>
 <h3 id="opening-a-connection">Opening a connection</h3>
 <p>Here is an example :</p>
-<div class="codehilite"><pre><span class="n">LdapConnection</span>
<span class="n">connection</span> <span class="o">=</span> <span
class="k">new</span> <span class="n">LdapConnection</span><span class="o">(</span>
<span class="s">&quot;localhost&quot;</span><span class="o">,</span>
<span class="mi">389</span> <span class="o">);</span>
+<div class="codehilite"><pre><span class="n">LdapConnection</span>
<span class="n">connection</span> <span class="o">=</span> <span
class="k">new</span> <span class="n">LdapNetworkConnection</span><span
class="o">(</span> <span class="s">&quot;localhost&quot;</span><span
class="o">,</span> <span class="mi">389</span> <span class="o">);</span>
 </pre></div>
 
 
@@ -170,13 +170,13 @@
 </em> The returning attributes list</p>
 <h3 id="simple-search-operation">Simple search operation</h3>
 <p>Here is a simple search, done using only those four parameters :</p>
-<div class="codehilite"><pre><span class="n">Cursor</span><span
class="o">&lt;</span><span class="n">SearchResponse</span><span
class="o">&gt;</span> <span class="n">cursor</span> <span class="o">=</span>
<span class="n">connection</span><span class="o">.</span><span
class="na">search</span><span class="o">(</span> <span class="s">&quot;ou=system&quot;</span><span
class="o">,</span> <span class="s">&quot;(objectclass=*)&quot;</span><span
class="o">,</span> <span class="n">SearchScope</span><span class="o">.</span><span
class="na">ONELEVEL</span><span class="o">,</span> <span class="s">&quot;*&quot;</span>
<span class="o">);</span>
+<div class="codehilite"><pre><span class="n">EntryCursor</span> <span
class="n">cursor</span> <span class="o">=</span> <span class="n">connection</span><span
class="o">.</span><span class="na">search</span><span class="o">(</span>
<span class="s">&quot;ou=system&quot;</span><span class="o">,</span>
<span class="s">&quot;(objectclass=*)&quot;</span><span class="o">,</span>
<span class="n">SearchScope</span><span class="o">.</span><span
class="na">ONELEVEL</span><span class="o">,</span> <span class="s">&quot;*&quot;</span>
<span class="o">);</span>
 
 <span class="k">while</span> <span class="o">(</span> <span class="n">cursor</span><span
class="o">.</span><span class="na">next</span><span class="o">()</span>
<span class="o">)</span>
 <span class="o">{</span>
-    <span class="n">SearchResponse</span> <span class="n">response</span>
<span class="o">=</span> <span class="n">cursor</span><span class="o">.</span><span
class="na">get</span><span class="o">();</span>
+    <span class="n">Entry</span> <span class="n">entry</span> <span
class="o">=</span> <span class="n">cursor</span><span class="o">.</span><span
class="na">get</span><span class="o">();</span>
 
-    <span class="c1">// Process the response</span>
+    <span class="c1">// Process the entry</span>
     <span class="o">...</span>
 <span class="o">}</span>
 </pre></div>



Mime
View raw message