chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r787320 - in /websites/staging/chemistry/trunk/content/java: developing/ examples/
Date Mon, 21 Mar 2011 13:58:02 GMT
Author: buildbot
Date: Mon Mar 21 13:58:01 2011
New Revision: 787320

Log:
Staging update by buildbot

Modified:
    websites/staging/chemistry/trunk/content/java/developing/dev-known-repo-issues.html
    websites/staging/chemistry/trunk/content/java/developing/dev-operation-context.html
    websites/staging/chemistry/trunk/content/java/examples/example-connect-dotnet.html
    websites/staging/chemistry/trunk/content/java/examples/example-create-session.html
    websites/staging/chemistry/trunk/content/java/examples/example-create-update.html
    websites/staging/chemistry/trunk/content/java/examples/example-get-id-from-path.html
    websites/staging/chemistry/trunk/content/java/examples/example-list-folder.html
    websites/staging/chemistry/trunk/content/java/examples/example-osgi.html
    websites/staging/chemistry/trunk/content/java/examples/example-read-root.html
    websites/staging/chemistry/trunk/content/java/examples/index.html

Modified: websites/staging/chemistry/trunk/content/java/developing/dev-known-repo-issues.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/developing/dev-known-repo-issues.html (original)
+++ websites/staging/chemistry/trunk/content/java/developing/dev-known-repo-issues.html Mon
Mar 21 13:58:01 2011
@@ -25,7 +25,7 @@
     <meta name="description" content="Apache Chemistry, CMIS Implementation" />
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     <title>
-Apache Chemistry - 
+Apache Chemistry - Known repository issues
     </title>
   </head>
 <body onload="init()">
@@ -64,7 +64,7 @@ Apache Chemistry - 
               <td>
                 <div align="left">
                 <!-- Breadcrumbs -->
-<a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/java">Java</a>&nbsp;&raquo&nbsp;<a
href="/java/developing">Developing</a>&nbsp;&raquo&nbsp;<a href="/java/developing/dev-known-repo-issues.html">Dev-known-repo-issues.html</a>
+<a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/java">Java</a>&nbsp;&raquo&nbsp;<a
href="/java/developing">Developing</a>&nbsp;&raquo&nbsp;<a href="/java/developing/dev-known-repo-issues.html">Known
repository issues</a>
                 <!-- Breadcrumbs -->
                 </div>
               </td>
@@ -183,8 +183,7 @@ Apache Chemistry - 
            </td>
            <td height="100%">
              <!-- Content -->
-             <div class="wiki-content"><p>Title: Known repository issues</p>
-<h1 id="known_repository_issues">Known repository issues</h1>
+             <div class="wiki-content"><h1 id="known_repository_issues">Known
repository issues</h1>
 <p>This is a loose collection of current known issues, bugs, limitations and unusual
behaviors 
 of existing CMIS repositories.</p>
 <p>TODO</p></div>

Modified: websites/staging/chemistry/trunk/content/java/developing/dev-operation-context.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/developing/dev-operation-context.html (original)
+++ websites/staging/chemistry/trunk/content/java/developing/dev-operation-context.html Mon
Mar 21 13:58:01 2011
@@ -25,7 +25,7 @@
     <meta name="description" content="Apache Chemistry, CMIS Implementation" />
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     <title>
-Apache Chemistry - 
+Apache Chemistry - Understanding the Operation Context
     </title>
   </head>
 <body onload="init()">
@@ -64,7 +64,7 @@ Apache Chemistry - 
               <td>
                 <div align="left">
                 <!-- Breadcrumbs -->
-<a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/java">Java</a>&nbsp;&raquo&nbsp;<a
href="/java/developing">Developing</a>&nbsp;&raquo&nbsp;<a href="/java/developing/dev-operation-context.html">Dev-operation-context.html</a>
+<a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/java">Java</a>&nbsp;&raquo&nbsp;<a
href="/java/developing">Developing</a>&nbsp;&raquo&nbsp;<a href="/java/developing/dev-operation-context.html">Understanding
the Operation Context</a>
                 <!-- Breadcrumbs -->
                 </div>
               </td>
@@ -183,8 +183,7 @@ Apache Chemistry - 
            </td>
            <td height="100%">
              <!-- Content -->
-             <div class="wiki-content"><p>Title: Understanding the Operation
Context</p>
-<h1 id="understanding_the_operation_context">Understanding the Operation Context</h1>
+             <div class="wiki-content"><h1 id="understanding_the_operation_context">Understanding
the Operation Context</h1>
 <p>TODO</p></div>
              <!-- Content -->
            </td>

Modified: websites/staging/chemistry/trunk/content/java/examples/example-connect-dotnet.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/examples/example-connect-dotnet.html (original)
+++ websites/staging/chemistry/trunk/content/java/examples/example-connect-dotnet.html Mon
Mar 21 13:58:01 2011
@@ -25,7 +25,7 @@
     <meta name="description" content="Apache Chemistry, CMIS Implementation" />
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     <title>
-Apache Chemistry - Connecting from a .Net client
+Apache Chemistry - Connecting from a .NET client
     </title>
   </head>
 <body onload="init()">
@@ -64,7 +64,7 @@ Apache Chemistry - Connecting from a .Ne
               <td>
                 <div align="left">
                 <!-- Breadcrumbs -->
-<a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/java">Java</a>&nbsp;&raquo&nbsp;<a
href="/java/examples">Examples</a>&nbsp;&raquo&nbsp;<a href="/java/examples/example-connect-dotnet.html">Connecting
from a .Net client</a>
+<a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/java">Java</a>&nbsp;&raquo&nbsp;<a
href="/java/examples">Examples</a>&nbsp;&raquo&nbsp;<a href="/java/examples/example-connect-dotnet.html">Connecting
from a .NET client</a>
                 <!-- Breadcrumbs -->
                 </div>
               </td>
@@ -183,10 +183,8 @@ Apache Chemistry - Connecting from a .Ne
            </td>
            <td height="100%">
              <!-- Content -->
-             <div class="wiki-content"><h1 id="connecting_from_a_net_client_via_the_web_services_binding">Connecting
from a .Net client via the Web Services binding</h1>
-<p>This is a very simple C# example that demonstrates how to connect to an
-OpenCMIS server via the Web Services binding. Please note that .Net only
-allows UsernameTokens over HTTPS.
+             <div class="wiki-content"><h1 id="connecting_from_a_net_client_via_the_web_services_binding">Connecting
from a .NET client via the Web Services binding</h1>
+<p>This is a very simple C# example that demonstrates how to connect to an OpenCMIS
server via the Web Services binding. Please note that .NET only allows UsernameTokens over
HTTPS.
 (See also <a href="../../dotnet/dotcmis.html">DotCMIS</a>).</p>
 <div class="codehilite"><pre><span class="n">using</span> <span
class="n">System</span><span class="p">;</span>
 <span class="n">using</span> <span class="n">System</span><span
class="p">.</span><span class="n">ServiceModel</span><span class="p">;</span>

Modified: websites/staging/chemistry/trunk/content/java/examples/example-create-session.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/examples/example-create-session.html (original)
+++ websites/staging/chemistry/trunk/content/java/examples/example-create-session.html Mon
Mar 21 13:58:01 2011
@@ -184,10 +184,10 @@ Apache Chemistry - Creating a session
            <td height="100%">
              <!-- Content -->
              <div class="wiki-content"><h1 id="creating_a_session">Creating a
session</h1>
-<p>This example explains the first steps required in each client application: 
+<p>These examples show the first steps that are required in client applications: 
 How to create a session and connect to a repository.</p>
 <h2 id="atompub_binding">AtomPub binding</h2>
-<div class="codehilite"><pre><span class="c1">// default factory implementation
of client runtime</span>
+<div class="codehilite"><pre><span class="c1">// default factory implementation</span>
 <span class="n">SessionFactory</span> <span class="n">factory</span>
<span class="o">=</span> <span class="n">SessionFactoryImpl</span><span
class="o">.</span><span class="na">newInstance</span><span class="o">();</span>
 <span class="n">Map</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">String</span><span
class="o">&gt;</span> <span class="n">parameter</span> <span class="o">=</span>
<span class="k">new</span> <span class="n">HashMap</span><span
class="o">&lt;</span><span class="n">String</span><span class="o">,</span>
<span class="n">String</span><span class="o">&gt;();</span>
 
@@ -206,7 +206,7 @@ How to create a session and connect to a
 
 
 <h2 id="web_services_binding">Web Services binding</h2>
-<div class="codehilite"><pre><span class="c1">// default factory implementation
of client runtime</span>
+<div class="codehilite"><pre><span class="c1">// default factory implementation</span>
 <span class="n">SessionFactory</span> <span class="n">factory</span>
<span class="o">=</span> <span class="n">SessionFactoryImpl</span><span
class="o">.</span><span class="na">newInstance</span><span class="o">();</span>
 <span class="n">Map</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">String</span><span
class="o">&gt;</span> <span class="n">parameter</span> <span class="o">=</span>
<span class="k">new</span> <span class="n">HashMap</span><span
class="o">&lt;</span><span class="n">String</span><span class="o">,</span>
<span class="n">String</span><span class="o">&gt;();</span>
 
@@ -233,7 +233,8 @@ How to create a session and connect to a
 
 
 <h2 id="local_binding">Local binding</h2>
-<div class="codehilite"><pre><span class="c1">// default factory implementation
of client runtime</span>
+<p>The local binding is specific to OpenCMIS. It lets an OpenCMIS client connect to
an OpenCMIS server in the same JVM.</p>
+<div class="codehilite"><pre><span class="c1">// default factory implementation</span>
 <span class="n">SessionFactory</span> <span class="n">factory</span>
<span class="o">=</span> <span class="n">SessionFactoryImpl</span><span
class="o">.</span><span class="na">newInstance</span><span class="o">();</span>
 <span class="n">Map</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">String</span><span
class="o">&gt;</span> <span class="n">parameter</span> <span class="o">=</span>
<span class="k">new</span> <span class="n">HashMap</span><span
class="o">&lt;</span><span class="n">String</span><span class="o">,</span>
<span class="n">String</span><span class="o">&gt;();</span>
 

Modified: websites/staging/chemistry/trunk/content/java/examples/example-create-update.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/examples/example-create-update.html (original)
+++ websites/staging/chemistry/trunk/content/java/examples/example-create-update.html Mon
Mar 21 13:58:01 2011
@@ -184,7 +184,51 @@ Apache Chemistry - Creating and updating
            <td height="100%">
              <!-- Content -->
              <div class="wiki-content"><h1 id="creating_and_updating_cmis_objects">Creating
and updating CMIS objects</h1>
-<p>TODO</p></div>
+<h2 id="creating_a_folder">Creating a folder</h2>
+<p>This example creates a folder under the root folder.</p>
+<div class="codehilite"><pre><span class="n">Folder</span> <span
class="n">root</span> <span class="o">=</span> <span class="n">session</span><span
class="o">.</span><span class="n">getRootFolder</span><span class="p">();</span>
+
+<span class="sr">//</span> <span class="n">properties</span> <span
class="p">(</span><span class="n">minimal</span> <span class="n">set:</span>
<span class="n">name</span> <span class="ow">and</span> <span class="n">object</span>
<span class="n">type</span> <span class="n">id</span><span class="p">)</span>
+<span class="n">Map</span><span class="o">&lt;</span><span
class="n">String</span><span class="p">,</span> <span class="n">Object</span><span
class="o">&gt;</span> <span class="n">properties</span> <span
class="o">=</span> <span class="k">new</span> <span class="n">HashMap</span><span
class="o">&lt;</span><span class="n">String</span><span class="p">,</span>
<span class="n">Object</span><span class="o">&gt;</span><span
class="p">();</span>
+<span class="n">properties</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">PropertyIds</span><span
class="o">.</span><span class="n">OBJECT_TYPE_ID</span><span class="p">,</span>
<span class="s">&quot;cmis:folder&quot;</span><span class="p">);</span>
+<span class="n">properties</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">PropertyIds</span><span
class="o">.</span><span class="n">NAME</span><span class="p">,</span>
<span class="s">&quot;a new folder&quot;</span><span class="p">);</span>
+
+<span class="sr">//</span> <span class="n">create</span> <span
class="n">the</span> <span class="n">folder</span>
+<span class="n">Folder</span> <span class="n">newFolder</span> <span
class="o">=</span> <span class="n">root</span><span class="o">.</span><span
class="n">createFolder</span><span class="p">(</span><span class="n">properties</span><span
class="p">);</span>
+</pre></div>
+
+
+<h2 id="creating_a_document">Creating a document</h2>
+<p>This example creates a document in the folder <code>parent</code>.</p>
+<div class="codehilite"><pre><span class="n">Folder</span> <span
class="n">parent</span> <span class="o">=</span> <span class="o">....</span>
+
+<span class="n">String</span> <span class="n">name</span> <span
class="o">=</span> <span class="s">&quot;myNewDocument.txt&quot;</span><span
class="p">;</span>
+
+<span class="sr">//</span> <span class="n">properties</span> <span
class="p">(</span><span class="n">minimal</span> <span class="n">set:</span>
<span class="n">name</span> <span class="ow">and</span> <span class="n">object</span>
<span class="n">type</span> <span class="n">id</span><span class="p">)</span>
+<span class="n">Map</span><span class="o">&lt;</span><span
class="n">String</span><span class="p">,</span> <span class="n">Object</span><span
class="o">&gt;</span> <span class="n">properties</span> <span
class="o">=</span> <span class="k">new</span> <span class="n">HashMap</span><span
class="o">&lt;</span><span class="n">String</span><span class="p">,</span>
<span class="n">Object</span><span class="o">&gt;</span><span
class="p">();</span>
+<span class="n">properties</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">PropertyIds</span><span
class="o">.</span><span class="n">OBJECT_TYPE_ID</span><span class="p">,</span>
<span class="s">&quot;cmis:document&quot;</span><span class="p">);</span>
+<span class="n">properties</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="s">&quot;PropertyIds.NAME,
name);</span>
+
+<span class="s">// content</span>
+<span class="s">byte[] content = &quot;</span><span class="n">Hello</span>
<span class="n">World</span><span class="o">!</span><span class="s">&quot;.getBytes();</span>
+<span class="s">InputStream stream = new ByteArrayInputStream(content);</span>
+<span class="s">ContentStream contentStream = new ContentStreamImpl(name, content.length,
&quot;</span><span class="n">text</span><span class="o">/</span><span
class="n">plain</span><span class="err">&quot;</span><span class="p">,</span>
<span class="n">stream</span><span class="p">);</span>
+
+<span class="sr">//</span> <span class="n">create</span> <span
class="n">a</span> <span class="n">major</span> <span class="n">version</span>
+<span class="n">Document</span> <span class="n">newDoc</span> <span
class="o">=</span> <span class="n">parent</span><span class="o">.</span><span
class="n">createDocument</span><span class="p">(</span><span class="n">properties</span><span
class="p">,</span> <span class="n">contentStream</span><span class="p">,</span>
<span class="n">VersioningState</span><span class="o">.</span><span
class="n">MAJOR</span><span class="p">);</span>
+</pre></div>
+
+
+<h2 id="update_properties">Update properties</h2>
+<p>This example updates two properties of a CMIS object</p>
+<div class="codehilite"><pre><span class="n">CmisObject</span> <span
class="n">cmisobject</span> <span class="o">=</span> <span class="o">....</span>
+
+<span class="n">Map</span><span class="o">&lt;</span><span
class="n">String</span><span class="p">,</span> <span class="n">Object</span><span
class="o">&gt;</span> <span class="n">updateproperties</span> <span
class="o">=</span> <span class="k">new</span> <span class="n">HashMap</span><span
class="o">&lt;</span><span class="n">String</span><span class="p">,</span>
<span class="n">Object</span><span class="o">&gt;</span><span
class="p">();</span>
+<span class="n">updateproperties</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="s">&quot;my:property&quot;</span><span
class="p">,</span> <span class="s">&quot;new value&quot;</span><span
class="p">);</span>
+<span class="n">updateproperties</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="s">&quot;my:other.property&quot;</span><span
class="p">,</span> <span class="mi">42</span><span class="p">);</span>
+
+<span class="n">cmisobject</span><span class="o">.</span><span
class="n">updateProperties</span><span class="p">(</span><span class="n">updateproperties</span><span
class="p">);</span>
+</pre></div></div>
              <!-- Content -->
            </td>
           </tr>

Modified: websites/staging/chemistry/trunk/content/java/examples/example-get-id-from-path.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/examples/example-get-id-from-path.html (original)
+++ websites/staging/chemistry/trunk/content/java/examples/example-get-id-from-path.html Mon
Mar 21 13:58:01 2011
@@ -186,7 +186,7 @@ Apache Chemistry - Getting the id from p
              <div class="wiki-content"><h1 id="getting_the_id_of_an_object_from_its_path">Getting
the id of an object from its path</h1>
 <p>A code snippet how to get the id of an object when only a path is known:</p>
 <div class="codehilite"><pre><span class="n">String</span> <span
class="n">path</span> <span class="o">=</span> <span class="s">&quot;/User
Homes/customer1/document.odt&quot;</span>
-<span class="n">CmisObject</span> <span class="n">object</span> <span
class="o">=</span> <span class="n">getSession</span><span class="o">().</span><span
class="na">getObjectByPath</span><span class="o">(</span><span class="n">path</span><span
class="o">);</span>
+<span class="n">CmisObject</span> <span class="n">object</span> <span
class="o">=</span> <span class="n">session</span><span class="o">.</span><span
class="na">getObjectByPath</span><span class="o">(</span><span class="n">path</span><span
class="o">);</span>
 <span class="n">String</span> <span class="n">id</span> <span
class="o">=</span> <span class="n">object</span><span class="o">.</span><span
class="na">getId</span><span class="o">();</span>
 </pre></div></div>
              <!-- Content -->

Modified: websites/staging/chemistry/trunk/content/java/examples/example-list-folder.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/examples/example-list-folder.html (original)
+++ websites/staging/chemistry/trunk/content/java/examples/example-list-folder.html Mon Mar
21 13:58:01 2011
@@ -25,7 +25,7 @@
     <meta name="description" content="Apache Chemistry, CMIS Implementation" />
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     <title>
-Apache Chemistry - 
+Apache Chemistry - List a folder with paging
     </title>
   </head>
 <body onload="init()">
@@ -64,7 +64,7 @@ Apache Chemistry - 
               <td>
                 <div align="left">
                 <!-- Breadcrumbs -->
-<a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/java">Java</a>&nbsp;&raquo&nbsp;<a
href="/java/examples">Examples</a>&nbsp;&raquo&nbsp;<a href="/java/examples/example-list-folder.html">Example-list-folder.html</a>
+<a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/java">Java</a>&nbsp;&raquo&nbsp;<a
href="/java/examples">Examples</a>&nbsp;&raquo&nbsp;<a href="/java/examples/example-list-folder.html">List
a folder with paging</a>
                 <!-- Breadcrumbs -->
                 </div>
               </td>
@@ -183,13 +183,12 @@ Apache Chemistry - 
            </td>
            <td height="100%">
              <!-- Content -->
-             <div class="wiki-content"><p>Title: List a folder with paging</p>
-<h1 id="showing_a_folders_items_with_results_paging">Showing a folder's items, with
results paging</h1>
+             <div class="wiki-content"><h1 id="showing_a_folders_items_with_results_paging">Showing
a folder's items, with results paging</h1>
 <div class="codehilite"><pre><span class="kt">int</span> <span
class="n">maxItemsPerPage</span> <span class="o">=</span> <span class="mi">5</span><span
class="o">;</span>
 <span class="kt">int</span> <span class="n">skipCount</span> <span
class="o">=</span> <span class="mi">10</span><span class="o">;</span>
 
 <span class="n">CmisObject</span> <span class="n">object</span> <span
class="o">=</span> <span class="n">session</span><span class="o">.</span><span
class="na">getObject</span><span class="o">(</span><span class="n">session</span><span
class="o">.</span><span class="na">createObjectId</span><span class="o">(</span><span
class="n">folderId</span><span class="o">));</span>
-<span class="n">Folder</span> <span class="n">folder</span> <span
class="o">=</span> <span class="o">(</span><span class="n">Folder</span><span
class="o">)</span><span class="n">object</span><span class="o">;</span>
+<span class="n">Folder</span> <span class="n">folder</span> <span
class="o">=</span> <span class="o">(</span><span class="n">Folder</span><span
class="o">)</span> <span class="n">object</span><span class="o">;</span>
 <span class="n">OperationContext</span> <span class="n">operationContext</span>
<span class="o">=</span> <span class="n">session</span><span class="o">.</span><span
class="na">createOperationContext</span><span class="o">();</span>
 <span class="n">operationContext</span><span class="o">.</span><span
class="na">setMaxItemsPerPage</span><span class="o">(</span><span
class="n">maxItemsPerPage</span><span class="o">);</span>
 

Modified: websites/staging/chemistry/trunk/content/java/examples/example-osgi.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/examples/example-osgi.html (original)
+++ websites/staging/chemistry/trunk/content/java/examples/example-osgi.html Mon Mar 21 13:58:01
2011
@@ -25,7 +25,7 @@
     <meta name="description" content="Apache Chemistry, CMIS Implementation" />
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     <title>
-Apache Chemistry - 
+Apache Chemistry - Using OSGI with OpenCMIS
     </title>
   </head>
 <body onload="init()">
@@ -64,7 +64,7 @@ Apache Chemistry - 
               <td>
                 <div align="left">
                 <!-- Breadcrumbs -->
-<a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/java">Java</a>&nbsp;&raquo&nbsp;<a
href="/java/examples">Examples</a>&nbsp;&raquo&nbsp;<a href="/java/examples/example-osgi.html">Example-osgi.html</a>
+<a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/java">Java</a>&nbsp;&raquo&nbsp;<a
href="/java/examples">Examples</a>&nbsp;&raquo&nbsp;<a href="/java/examples/example-osgi.html">Using
OSGI with OpenCMIS</a>
                 <!-- Breadcrumbs -->
                 </div>
               </td>
@@ -183,8 +183,7 @@ Apache Chemistry - 
            </td>
            <td height="100%">
              <!-- Content -->
-             <div class="wiki-content"><p>Title: Using OSGI with OpenCMIS</p>
-<h1 id="using_osgi_with_opencmis">Using OSGI with OpenCMIS</h1>
+             <div class="wiki-content"><h1 id="using_osgi_with_opencmis">Using
OSGI with OpenCMIS</h1>
 <p>This example shows how to use OpenCMIS with OSGI bundles.</p>
 <p>TODO</p></div>
              <!-- Content -->

Modified: websites/staging/chemistry/trunk/content/java/examples/example-read-root.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/examples/example-read-root.html (original)
+++ websites/staging/chemistry/trunk/content/java/examples/example-read-root.html Mon Mar
21 13:58:01 2011
@@ -25,7 +25,7 @@
     <meta name="description" content="Apache Chemistry, CMIS Implementation" />
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     <title>
-Apache Chemistry - Reading the Root Fodler
+Apache Chemistry - Reading the Root Folder
     </title>
   </head>
 <body onload="init()">
@@ -64,7 +64,7 @@ Apache Chemistry - Reading the Root Fodl
               <td>
                 <div align="left">
                 <!-- Breadcrumbs -->
-<a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/java">Java</a>&nbsp;&raquo&nbsp;<a
href="/java/examples">Examples</a>&nbsp;&raquo&nbsp;<a href="/java/examples/example-read-root.html">Reading
the Root Fodler</a>
+<a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/java">Java</a>&nbsp;&raquo&nbsp;<a
href="/java/examples">Examples</a>&nbsp;&raquo&nbsp;<a href="/java/examples/example-read-root.html">Reading
the Root Folder</a>
                 <!-- Breadcrumbs -->
                 </div>
               </td>
@@ -184,15 +184,27 @@ Apache Chemistry - Reading the Root Fodl
            <td height="100%">
              <!-- Content -->
              <div class="wiki-content"><h1 id="reading_the_root_folder">Reading
the Root Folder</h1>
-<DIV class="codeHeader">Reading the Root Collection</DIV>
-
-<div class="codehilite"><pre><span class="n">Folder</span> <span
class="n">root</span> <span class="o">=</span> <span class="k">this</span><span
class="o">.</span><span class="na">session</span><span class="o">.</span><span
class="na">getRootFolder</span><span class="o">();</span>
+<h2 id="listing_all_children">Listing all children</h2>
+<p>This example lists all objects in the root folder.</p>
+<div class="codehilite"><pre><span class="n">Folder</span> <span
class="n">root</span> <span class="o">=</span> <span class="n">session</span><span
class="o">.</span><span class="na">getRootFolder</span><span class="o">();</span>
 
 <span class="n">ItemIterable</span><span class="o">&lt;</span><span
class="n">CmisObject</span><span class="o">&gt;</span> <span class="n">pl</span>
<span class="o">=</span> <span class="n">root</span><span class="o">.</span><span
class="na">getChildren</span><span class="o">();</span>
 
 <span class="k">for</span> <span class="o">(</span><span class="n">CmisObject</span>
<span class="n">o</span> <span class="o">:</span> <span class="n">pl</span><span
class="o">)</span> <span class="o">{</span>
   <span class="n">System</span><span class="o">.</span><span class="na">out</span><span
class="o">.</span><span class="na">println</span><span class="o">(</span><span
class="n">o</span><span class="o">.</span><span class="na">getName</span><span
class="o">());</span>
 <span class="o">}</span>
+</pre></div>
+
+
+<h2 id="retrieving_a_page">Retrieving a page</h2>
+<p>This example retrieves a page of 10 objects starting at the 20th child.</p>
+<div class="codehilite"><pre><span class="n">Folder</span> <span
class="n">root</span> <span class="o">=</span> <span class="n">session</span><span
class="o">.</span><span class="na">getRootFolder</span><span class="o">();</span>
+
+<span class="n">ItemIterable</span><span class="o">&lt;</span><span
class="n">CmisObject</span><span class="o">&gt;</span> <span class="n">pl</span>
<span class="o">=</span> <span class="n">root</span><span class="o">.</span><span
class="na">getChildren</span><span class="o">().</span><span class="na">skipTo</span><span
class="o">(</span><span class="mi">20</span><span class="o">).</span><span
class="na">getPage</span><span class="o">(</span><span class="mi">10</span><span
class="o">);</span>
+
+<span class="k">for</span> <span class="o">(</span><span class="n">CmisObject</span>
<span class="n">o</span> <span class="o">:</span> <span class="n">pl</span><span
class="o">)</span> <span class="o">{</span>
+  <span class="n">System</span><span class="o">.</span><span class="na">out</span><span
class="o">.</span><span class="na">println</span><span class="o">(</span><span
class="n">o</span><span class="o">.</span><span class="na">getName</span><span
class="o">());</span>
+<span class="o">}</span>
 </pre></div></div>
              <!-- Content -->
            </td>

Modified: websites/staging/chemistry/trunk/content/java/examples/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/examples/index.html (original)
+++ websites/staging/chemistry/trunk/content/java/examples/index.html Mon Mar 21 13:58:01
2011
@@ -188,7 +188,7 @@ Apache Chemistry - Example code for Open
 <h2 id="basics">Basics</h2>
 <ul>
 <li><a href="example-create-session.html">Creating a session</a></li>
-<li><a href="example-create-update.html">Creating and updating a document</a></li>
+<li><a href="example-create-update.html">Creating and updating a CMIS object</a></li>
 <li><a href="example-list-folder.html">Listing a folder</a></li>
 <li><a href="example-process-query-results.html">Processing a query</a></li>
 <li><a href="example-read-meta-content.html">Reading metadata and content</a></li>



Mime
View raw message