From 47296dcccca008c937a201c9301a3b231dd3b47f Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 27 Nov 2013 17:19:28 +0000
Subject: [PATCH] Initial work towards OPENDJ-1195: Realign the SDK developer guide with the SDK trunk once the new Maven module and package layout has been validated

---
 opendj-ldap-sdk/src/site/xdoc/index.xml.vm |   90 +++++++++++++++++++++-----------------------
 1 files changed, 43 insertions(+), 47 deletions(-)

diff --git a/opendj-ldap-sdk/src/site/xdoc/index.xml.vm b/opendj-ldap-sdk/src/site/xdoc/index.xml.vm
index efb13fe..61da15d 100644
--- a/opendj-ldap-sdk/src/site/xdoc/index.xml.vm
+++ b/opendj-ldap-sdk/src/site/xdoc/index.xml.vm
@@ -20,14 +20,14 @@
   !
   ! CCPL HEADER END
   !
-  !      Copyright 2011-2012 ForgeRock AS
+  !      Copyright 2011-2013 ForgeRock AS
   !    
 -->
 <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 LDAP SDK</title>
-    <author email="opendj-dev@forgerock.org">ForgeRock AS</author>
+    <author email="opendj-dev@forgerock.org">${project.organization.name}</author>
   </properties>
   <body>
     <section name="About OpenDJ LDAP SDK">
@@ -38,40 +38,31 @@
         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>
-        .
+        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>
+        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 using any of the following methods: 
-    </p>
+        OpenDJ LDAP SDK using any of the following methods: 
+      </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>
-          :
+          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;url>${mavenRepoReleases}&lt;/url>
     &lt;snapshots>
       &lt;enabled>false&lt;/enabled>
     &lt;/snapshots>
@@ -79,44 +70,52 @@
   &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;url>${mavenRepoSnapshots}&lt;/url>
     &lt;releases>
       &lt;enabled>false&lt;/enabled>
     &lt;/releases>
   &lt;/repository>
-&lt;/repositories>
-
-...
-
-&lt;dependencies>
+&lt;/repositories></source>
+        <p>
+          The following dependency will load both the OpenDJ Core APIs and the
+          OpenDJ Grizzly network transport:
+        </p>
+        <source>&lt;dependencies>
   &lt;dependency>
-    &lt;groupId>org.forgerock.opendj&lt;/groupId>
-    &lt;artifactId>opendj-ldap-sdk&lt;/artifactId>
-    &lt;version>${currentSDKversion}&lt;/version>
+    &lt;groupId>${project.groupId}&lt;/groupId>
+    &lt;artifactId>${project.artifactId}&lt;/artifactId>
+    &lt;version>${project.version}&lt;/version>
+    &lt;type>pom&lt;/type>
+  &lt;/dependency>
+&lt;/dependencies></source>
+        <p>
+          In some use-cases, such as developing LDAP unit tests or embedded
+          LDAP applications, the network transport is not required, in which
+          case you can simply declare a dependency on the OpenDJ core APIs:
+        </p>
+        <source>&lt;dependencies>
+  &lt;dependency>
+    &lt;groupId>${project.groupId}&lt;/groupId>
+    &lt;artifactId>opendj-core&lt;/artifactId>
+    &lt;version>${project.version}&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://builds.forgerock.org/view/OpenDJ/job/OpenDJ3/lastStableBuild/org.forgerock.opendj$opendj-ldap-toolkit/artifact/org.forgerock.opendj/opendj-ldap-toolkit/${currentSDKversion}/opendj-ldap-toolkit-${currentSDKversion}.zip">OpenDJ LDAP SDK Toolkit ZIP file</a>
-          or the
-          <a href="http://builds.forgerock.org/view/OpenDJ/job/OpenDJ3/lastStableBuild/org.forgerock.opendj$opendj-ldap-sdk-examples/artifact/org.forgerock.opendj/opendj-ldap-sdk-examples/${currentSDKversion}/opendj-ldap-sdk-examples-${currentSDKversion}.jar">OpenDJ LDAP SDK Examples JAR file</a>
-          . Alternatively, if you can download the individual JARs from the
-          following locations:
+          If you are not using Maven then you will need to download a pre-built
+          binary from the ForgeRock Maven repository, along with any compile
+          time <a href="dependencies.html">dependencies</a>:
         </p>
         <ul>
-          <li><a href="http://builds.forgerock.org/view/OpenDJ/job/OpenDJ3/lastStableBuild/org.forgerock.opendj$opendj-ldap-sdk/artifact/org.forgerock.opendj/opendj-ldap-sdk/${currentSDKversion}/opendj-ldap-sdk-${currentSDKversion}.jar">opendj-ldap-sdk-${currentSDKversion}.jar</a> - OpenDJ LDAP SDK</li>
-          <li><a href="http://maven.forgerock.org/repo/releases/org/forgerock/commons/i18n-core/${i18nFrameworkVersion}/i18n-core-${i18nFrameworkVersion}.jar">i18n-core-${i18nFrameworkVersion}.jar</a> - ForgeRock Commons I18N Framework</li>
-          <li><a href="http://search.maven.org/remotecontent?filepath=org/glassfish/grizzly/grizzly-framework/${grizzlyFrameworkVersion}/grizzly-framework-${grizzlyFrameworkVersion}.jar">grizzly-framework-${grizzlyFrameworkVersion}.jar</a> - Grizzly IO Framework</li>
+          <li><a href="${mavenRepoReleases}/org/forgerock/opendj/opendj-core">Stable releases</a></li>
+          <li><a href="${mavenRepoSnapshots}/org/forgerock/opendj/opendj-core/${project.version}">Latest development snapshot</a></li>
         </ul>
       </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>
+          latest code using <a href="source-repository.html">Subversion</a>
           and building it with Maven 3.
         </p>
       </subsection>
@@ -124,12 +123,9 @@
     <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>
+        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;

--
Gitblit v1.10.0