From 76fb12bb34f82eaab340d4698487159a0950cfd4 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 25 May 2011 22:14:50 +0000
Subject: [PATCH] Add front page for OpenDJ LDAP SDK

---
 opendj-sdk/opendj3/opendj-ldap-sdk/src/site/xdoc/index.xml |  151 +++++++++++++++++++++++++++++++++++++++++++++++++-
 opendj-sdk/opendj3/opendj-ldap-sdk/src/site/site.xml       |   26 ++++++++
 2 files changed, 172 insertions(+), 5 deletions(-)

diff --git a/opendj-sdk/opendj3/opendj-ldap-sdk/src/site/site.xml b/opendj-sdk/opendj3/opendj-ldap-sdk/src/site/site.xml
index 2b7b9e0..d127f16 100644
--- a/opendj-sdk/opendj3/opendj-ldap-sdk/src/site/site.xml
+++ b/opendj-sdk/opendj3/opendj-ldap-sdk/src/site/site.xml
@@ -27,10 +27,32 @@
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd">
   <body>
-    <menu ref="parent" />
+    <menu name="OpenDJ LDAP SDK">
+      <item name="Welcome" href="index.html" />
+      <item name="News" href="../news.html" />
+      <item name="Join"
+        href="https://idp.forgerock.org/openam/UI/Login?service=register" />
+      <item name="Downloads" href="http://www.forgerock.com/downloads-opendj.html" />
+      <item name="FAQ" href="../faq.html" />
+      <item name="Mailing List" href="https://lists.forgerock.org/mailman/listinfo/opendj" />
+      <item name="Support" href="http://forgerock.com/subscriptions.html" />
+      <item name="Partners" href="http://forgerock.com/partners.html" />
+      <item name="Wiki" href="http://wikis.forgerock.org/opendj/" />
+    </menu>
+
+    <menu name="Documentation">
+      <item name="Developer Guide" href="../docs.html" collapse="true">
+        <item name="EPUB Format" href="../doc/OpenDJ-Dev-Guide.epub" />
+        <item name="HTML Format" href="../doc/dev-guide/OpenDJ-Dev-Guide.html" />
+        <item name="PDF Format" href="../doc/OpenDJ-Dev-Guide.pdf" />
+        <item name="RTF Format" href="../doc/OpenDJ-Dev-Guide.rtf" />
+      </item>
+      <item name="Javadoc" href="./apidocs/index.html" />
+    </menu>
+
     <menu ref="reports" />
   </body>
-  
+
   <custom>
     <googleAnalytics>UA-23412190-2</googleAnalytics>
     <openproject>
diff --git a/opendj-sdk/opendj3/opendj-ldap-sdk/src/site/xdoc/index.xml b/opendj-sdk/opendj3/opendj-ldap-sdk/src/site/xdoc/index.xml
index 3b59cc2..a7059b9 100644
--- a/opendj-sdk/opendj3/opendj-ldap-sdk/src/site/xdoc/index.xml
+++ b/opendj-sdk/opendj3/opendj-ldap-sdk/src/site/xdoc/index.xml
@@ -26,13 +26,158 @@
 <document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
   <properties>
-    <title>About OpenDJ</title>
+    <title>About OpenDJ LDAP SDK</title>
     <author email="opendj-dev@forgerock.org">ForgeRock AS</author>
   </properties>
   <body>
     <section name="About OpenDJ LDAP SDK">
-      <p>TBC</p>
+      <p>
+        The OpenDJ LDAP SDK provides a set of modern, developer-friendly Java
+        APIs as part of the OpenDJ product suite. The product suite includes the
+        client SDK alongside command-line tools and sample code, a 100% pure
+        Java directory server, and more. You can use OpenDJ SDK to create client
+        applications for use with any server that complies with the,
+        <a href='http://tools.ietf.org/html/rfc4510'>RFC 4510: Lightweight Directory
+          Access Protocol (LDAP):
+          Technical Specification Road Map</a>
+        .
+      </p>
+      <p>
+        The OpenDJ LDAP SDK brings you easy-to-use connection management,
+        connection pooling, load balancing, and all the standard LDAP operations
+        to read and
+        write directory entries. OpenDJ LDAP SDK also lets you build
+        applications
+        with
+        capabilities defined in additional draft and
+        experimental RFCs that
+        are
+        supported by modern LDAP servers.</p>
+    </section>
+    <section name="Get the OpenDJ LDAP SDK">
+      <p>
+        You can start developing your LDAP applications now by obtaining the
+        OpenDJ
+        LDAP SDK in any of the following three ways: 
+    </p>
+      <subsection name="Maven">
+        <p>
+          By far the simplest method is to develop your application using Maven
+          and add the following settings to your
+          <b>pom.xml</b>
+          :
+        </p>
+        <source>&lt;repositories>
+  &lt;repository>
+    &lt;id>forgerock-staging-repository&lt;/id>
+    &lt;name>ForgeRock Release Repository&lt;/name>
+    &lt;url>http://maven.forgerock.org/repo/releases&lt;/url>
+    &lt;snapshots>
+      &lt;enabled>false&lt;/enabled>
+    &lt;/snapshots>
+  &lt;/repository>
+  &lt;repository>
+    &lt;id>forgerock-snapshots-repository&lt;/id>
+    &lt;name>ForgeRock Snapshot Repository&lt;/name>
+    &lt;url>http://maven.forgerock.org/repo/snapshots&lt;/url>
+    &lt;releases>
+      &lt;enabled>false&lt;/enabled>
+    &lt;/releases>
+  &lt;/repository>
+&lt;repositories>
+
+...
+
+&lt;dependencies>
+  &lt;dependency>
+    &lt;groupId>org.forgerock.opendj&lt;/groupId>
+    &lt;artifactId>opendj-ldap-sdk&lt;/artifactId>
+    &lt;version>3.0.0-SNAPSHOT&lt;/version>
+  &lt;/dependency>
+&lt;/dependencies></source>
+      </subsection>
+      <subsection name="Download">
+        <p>
+          The easiest way to download the OpenDJ LDAP SDK and all of its
+          dependencies is to get either the
+          <a
+            href="http://maven.forgerock.org/repo/snapshots/org/forgerock/opendj/opendj-ldap-toolkit/3.0.0-SNAPSHOT">OpenDJ LDAP SDK Toolkit ZIP file</a>
+          or the
+          <a
+            href="http://maven.forgerock.org/repo/snapshots/org/forgerock/opendj/opendj-ldap-sdk-examples/3.0.0-SNAPSHOT">OpenDJ LDAP SDK Examples JAR file</a>
+          .
+        </p>
+      </subsection>
+      <subsection name="Build">
+        <p>
+          For the DIY enthusiasts you can build it yourself by checking out the
+          latest code using
+          <a href="source-repository.html">Subversion</a>
+          and building it with Maven 3
+        </p>
+      </subsection>
+    </section>
+    <section name="Getting started">
+      <p>
+        The following example shows how the OpenDJ SDK may be used to
+        connect to
+        a Directory Server, authenticate, and then perform a
+        search. The search
+        results are output as LDIF to the standard
+        output:
+        </p>
+      <source>// Create an LDIF writer which will write the search results to stdout.
+final LDIFEntryWriter writer = new LDIFEntryWriter(System.out);
+Connection connection = null;
+try
+{
+  // Connect and bind to the server.
+  final LDAPConnectionFactory factory = new LDAPConnectionFactory("localhost", 1389);
+
+  connection = factory.getConnection();
+  connection.bind(userName, password);
+
+  // Read the entries and output them as LDIF.
+  final ConnectionEntryReader reader = connection.search(baseDN, scope, filter, attributes);
+  while (reader.hasNext())
+  {
+    if (!reader.isReference())
+    {
+      // Got an entry.
+      final SearchResultEntry entry = reader.readEntry();
+      writer.writeComment("Search result entry: " + entry.getName().toString());
+      writer.writeEntry(entry);
+    }
+    else
+    {
+      // Got a continuation reference.
+      final SearchResultReference ref = reader.readReference();
+      writer.writeComment("Search result reference: " + ref.getURIs().toString());
+    }
+  }
+  writer.flush();
+}
+catch (final Exception e)
+{
+  // Handle exceptions...
+  System.err.println(e.getMessage());
+}
+finally
+{
+  if (connection != null)
+  {
+    connection.close();
+  }
+}</source>
+      <p>
+        You can find more examples demonstrating the use of the OpenDJ LDAP SDK
+        by downloading the examples package
+        <a
+          href="http://maven.forgerock.org/repo/snapshots/org/forgerock/opendj/opendj-ldap-sdk-examples/3.0.0-SNAPSHOT">
+          here
+        </a>
+        .
+      </p>
     </section>
   </body>
 </document>
-

--
Gitblit v1.10.0