Return-Path: X-Original-To: apmail-directory-commits-archive@www.apache.org Delivered-To: apmail-directory-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C389B10CB2 for ; Wed, 24 Jul 2013 23:58:08 +0000 (UTC) Received: (qmail 72370 invoked by uid 500); 24 Jul 2013 23:58:08 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 72326 invoked by uid 500); 24 Jul 2013 23:58:08 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 72319 invoked by uid 99); 24 Jul 2013 23:58:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jul 2013 23:58:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jul 2013 23:58:07 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6B5A92388A29 for ; Wed, 24 Jul 2013 23:57:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r871072 - in /websites/staging/directory/trunk/content: ./ api/five-minutes-tutorial.html Date: Wed, 24 Jul 2013 23:57:47 -0000 To: commits@directory.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130724235747.6B5A92388A29@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 @@

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 localHost and 389 if nothing is defined.

Opening a connection

Here is an example :

-
LdapConnection connection = new LdapConnection( "localhost", 389 );
+
LdapConnection connection = new LdapNetworkConnection( "localhost", 389 );
 
@@ -170,13 +170,13 @@ The returning attributes list

Simple search operation

Here is a simple search, done using only those four parameters :

-
Cursor<SearchResponse> cursor = connection.search( "ou=system", "(objectclass=*)", SearchScope.ONELEVEL, "*" );
+
EntryCursor cursor = connection.search( "ou=system", "(objectclass=*)", SearchScope.ONELEVEL, "*" );
 
 while ( cursor.next() )
 {
-    SearchResponse response = cursor.get();
+    Entry entry = cursor.get();
 
-    // Process the response
+    // Process the entry
     ...
 }