chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r785877 - /websites/staging/chemistry/trunk/content/java/opencmis-client-api.html
Date Mon, 21 Feb 2011 15:17:26 GMT
Author: buildbot
Date: Mon Feb 21 15:17:26 2011
New Revision: 785877

Log:
Staging update by buildbot

Modified:
    websites/staging/chemistry/trunk/content/java/opencmis-client-api.html

Modified: websites/staging/chemistry/trunk/content/java/opencmis-client-api.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/opencmis-client-api.html (original)
+++ websites/staging/chemistry/trunk/content/java/opencmis-client-api.html Mon Feb 21 15:17:26
2011
@@ -257,97 +257,76 @@ In order to create a session, the Sessio
 <h2 id="example_code">Example Code</h2>
 <p><a name="OpenCMISClientAPI-SessionCreation-AtomPubBinding"></a></p>
 <h3 id="session_creation_-_atompub_binding">Session Creation - AtomPub Binding</h3>
-<DIV class="code panel" style="border-style: solid;border-width: 1px;">
-<DIV class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style:
solid;">
-<B>Opening a Atom Pub Connection</B>
-</DIV>
-<DIV class="codeContent panelContent">
-
-<div class="codehilite"><pre><span class="sr">//</span> <span
class="n">default</span> <span class="n">factory</span> <span class="n">implementation</span>
<span class="n">of</span> <span class="n">client</span> <span class="n">runtime</span>
-<span class="n">SessionFactory</span> <span class="n">f</span> <span
class="o">=</span> <span class="n">SessionFactoryImpl</span><span
class="o">.</span><span class="n">newInstance</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">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="p">,</span>
<span class="n">String</span><span class="o">&gt;</span><span
class="p">();</span>
-
-<span class="sr">//</span> <span class="n">user</span> <span class="n">credentials</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">USER</span><span class="p">,</span>
<span class="s">&quot;Otto&quot;</span><span class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">PASSWORD</span><span class="p">,</span>
<span class="s">&quot;****&quot;</span><span class="p">);</span>
-
-<span class="sr">//</span> <span class="n">connection</span> <span
class="n">settings</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">ATOMPUB_URL</span><span class="p">,</span>
<span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/atom&quot;</span><span
class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">BINDING_TYPE</span><span class="p">,</span>
<span class="n">BindingType</span><span class="o">.</span><span
class="n">ATOMPUB</span><span class="o">.</span><span class="n">value</span><span
class="p">());</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">REPOSITORY_ID</span><span class="p">,</span>
<span class="s">&quot;myRepository&quot;</span><span class="p">);</span>
-
-<span class="sr">//</span> <span class="n">session</span> <span
class="n">locale</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">LOCALE_ISO3166_COUNTRY</span><span
class="p">,</span> <span class="s">&quot;&quot;</span><span
class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">LOCALE_ISO639_LANGUAGE</span><span
class="p">,</span> <span class="s">&quot;de&quot;</span><span
class="p">);</span>
+<p><DIV class="codeHeader">Opening a Atom Pub Connection</DIV></p>
+<div class="codehilite"><pre><span class="c1">// default factory implementation
of client runtime</span>
+<span class="n">SessionFactory</span> <span class="n">f</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>
+
+<span class="c1">// user credentials</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">USER</span><span class="o">,</span>
<span class="s">&quot;Otto&quot;</span><span class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">PASSWORD</span><span class="o">,</span>
<span class="s">&quot;****&quot;</span><span class="o">);</span>
+
+<span class="c1">// connection settings</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">ATOMPUB_URL</span><span class="o">,</span>
<span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/atom&quot;</span><span
class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">BINDING_TYPE</span><span class="o">,</span>
<span class="n">BindingType</span><span class="o">.</span><span
class="na">ATOMPUB</span><span class="o">.</span><span class="na">value</span><span
class="o">());</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">REPOSITORY_ID</span><span class="o">,</span>
<span class="s">&quot;myRepository&quot;</span><span class="o">);</span>
+
+<span class="c1">// session locale</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">LOCALE_ISO3166_COUNTRY</span><span
class="o">,</span> <span class="s">&quot;&quot;</span><span
class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">LOCALE_ISO639_LANGUAGE</span><span
class="o">,</span> <span class="s">&quot;de&quot;</span><span
class="o">);</span>
 
-<span class="sr">//</span> <span class="n">create</span> <span
class="n">session</span>
-<span class="n">Session</span> <span class="n">s</span> <span
class="o">=</span> <span class="n">f</span><span class="o">.</span><span
class="n">createSession</span><span class="p">(</span><span class="n">parameter</span><span
class="p">);</span>
+<span class="c1">// create session</span>
+<span class="n">Session</span> <span class="n">s</span> <span
class="o">=</span> <span class="n">f</span><span class="o">.</span><span
class="na">createSession</span><span class="o">(</span><span class="n">parameter</span><span
class="o">);</span>
 </pre></div>
 
 
-<p></DIV>
-</DIV></p>
 <p><a name="OpenCMISClientAPI-SessionCreation-WebServicesBinding"></a></p>
 <h3 id="session_creation_-_web_services_binding">Session Creation - Web Services Binding</h3>
-<DIV class="code panel" style="border-style: solid;border-width: 1px;">
-<DIV class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style:
solid;">
-<B>Opening a Web Services Connection</B>
-</DIV>
-<DIV class="codeContent panelContent">
-
-<div class="codehilite"><pre><span class="sr">//</span> <span
class="n">default</span> <span class="n">factory</span> <span class="n">implementation</span>
<span class="n">of</span> <span class="n">client</span> <span class="n">runtime</span>
-<span class="n">SessionFactory</span> <span class="n">f</span> <span
class="o">=</span> <span class="n">SessionFactoryImpl</span><span
class="o">.</span><span class="n">newInstance</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">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="p">,</span>
<span class="n">String</span><span class="o">&gt;</span><span
class="p">();</span>
-
-<span class="sr">//</span> <span class="n">user</span> <span class="n">credentials</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">USER</span><span class="p">,</span>
<span class="s">&quot;Otto&quot;</span><span class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">PASSWORD</span><span class="p">,</span>
<span class="s">&quot;****&quot;</span><span class="p">);</span>
-
-<span class="sr">//</span> <span class="n">connection</span> <span
class="n">settings</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">BINDING_TYPE</span><span class="p">,</span>
<span class="n">BindingType</span><span class="o">.</span><span
class="n">WEBSERVICES</span><span class="o">.</span><span class="n">value</span><span
class="p">());</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">REPOSITORY_ID</span><span class="p">,</span>
<span class="s">&quot;myRepository&quot;</span><span class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">WEBSERVICES_ACL_SERVICE</span><span
class="p">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/ACLService?wsdl&quot;</span><span
class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">WEBSERVICES_DISCOVERY_SERVICE</span><span
class="p">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/DiscoveryService?wsdl&quot;</span><span
class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">WEBSERVICES_MULTIFILING_SERVICE</span><span
class="p">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/MultiFilingService?wsdl&quot;</span><span
class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">WEBSERVICES_NAVIGATION_SERVICE</span><span
class="p">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/NavigationService?wsdl&quot;</span><span
class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">WEBSERVICES_OBJECT_SERVICE</span><span
class="p">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/ObjectService?wsdl&quot;</span><span
class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">WEBSERVICES_POLICY_SERVICE</span><span
class="p">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/PolicyService?wsdl&quot;</span><span
class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">WEBSERVICES_RELATIONSHIP_SERVICE</span><span
class="p">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/RelationshipService?wsdl&quot;</span><span
class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">WEBSERVICES_REPOSITORY_SERVICE</span><span
class="p">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/RepositoryService?wsdl&quot;</span><span
class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">WEBSERVICES_VERSIONING_SERVICE</span><span
class="p">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/VersioningService?wsdl&quot;</span><span
class="p">);</span>
-
-<span class="sr">//</span> <span class="n">session</span> <span
class="n">locale</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">LOCALE_ISO3166_COUNTRY</span><span
class="p">,</span> <span class="s">&quot;&quot;</span><span
class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">LOCALE_ISO639_LANGUAGE</span><span
class="p">,</span> <span class="s">&quot;de&quot;</span><span
class="p">);</span>
-<span class="n">parameter</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="n">LOCALE_VARIANT</span><span class="p">,</span>
<span class="s">&quot;&quot;</span><span class="p">);</span>
+<p><DIV class="codeHeader">Opening a Web Services Connection</DIV></p>
+<div class="codehilite"><pre><span class="c1">// default factory implementation
of client runtime</span>
+<span class="n">SessionFactory</span> <span class="n">f</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>
+
+<span class="c1">// user credentials</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">USER</span><span class="o">,</span>
<span class="s">&quot;Otto&quot;</span><span class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">PASSWORD</span><span class="o">,</span>
<span class="s">&quot;****&quot;</span><span class="o">);</span>
+
+<span class="c1">// connection settings</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">BINDING_TYPE</span><span class="o">,</span>
<span class="n">BindingType</span><span class="o">.</span><span
class="na">WEBSERVICES</span><span class="o">.</span><span class="na">value</span><span
class="o">());</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">REPOSITORY_ID</span><span class="o">,</span>
<span class="s">&quot;myRepository&quot;</span><span class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">WEBSERVICES_ACL_SERVICE</span><span
class="o">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/ACLService?wsdl&quot;</span><span
class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">WEBSERVICES_DISCOVERY_SERVICE</span><span
class="o">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/DiscoveryService?wsdl&quot;</span><span
class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">WEBSERVICES_MULTIFILING_SERVICE</span><span
class="o">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/MultiFilingService?wsdl&quot;</span><span
class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">WEBSERVICES_NAVIGATION_SERVICE</span><span
class="o">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/NavigationService?wsdl&quot;</span><span
class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">WEBSERVICES_OBJECT_SERVICE</span><span
class="o">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/ObjectService?wsdl&quot;</span><span
class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">WEBSERVICES_POLICY_SERVICE</span><span
class="o">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/PolicyService?wsdl&quot;</span><span
class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">WEBSERVICES_RELATIONSHIP_SERVICE</span><span
class="o">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/RelationshipService?wsdl&quot;</span><span
class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">WEBSERVICES_REPOSITORY_SERVICE</span><span
class="o">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/RepositoryService?wsdl&quot;</span><span
class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">WEBSERVICES_VERSIONING_SERVICE</span><span
class="o">,</span> <span class="s">&quot;http://&lt;host&gt;:&lt;port&gt;/cmis/services/VersioningService?wsdl&quot;</span><span
class="o">);</span>
+
+<span class="c1">// session locale</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">LOCALE_ISO3166_COUNTRY</span><span
class="o">,</span> <span class="s">&quot;&quot;</span><span
class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">LOCALE_ISO639_LANGUAGE</span><span
class="o">,</span> <span class="s">&quot;de&quot;</span><span
class="o">);</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="n">SessionParameter</span><span
class="o">.</span><span class="na">LOCALE_VARIANT</span><span class="o">,</span>
<span class="s">&quot;&quot;</span><span class="o">);</span>
 
-<span class="sr">//</span> <span class="n">create</span> <span
class="n">session</span>
-<span class="n">Session</span> <span class="n">s</span> <span
class="o">=</span> <span class="n">f</span><span class="o">.</span><span
class="n">createSession</span><span class="p">(</span><span class="n">parameter</span><span
class="p">);</span>
+<span class="c1">// create session</span>
+<span class="n">Session</span> <span class="n">s</span> <span
class="o">=</span> <span class="n">f</span><span class="o">.</span><span
class="na">createSession</span><span class="o">(</span><span class="n">parameter</span><span
class="o">);</span>
 </pre></div>
 
 
-<p></DIV>
-</DIV></p>
 <p><a name="OpenCMISClientAPI-ReadingObjects-RootCollection"></a></p>
 <h3 id="reading_objects_-_root_collection">Reading Objects - Root Collection</h3>
-<DIV class="code panel" style="border-style: solid;border-width: 1px;">
-<DIV class="codeHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style:
solid;">
-<B>Reading the Root Collection</B>
-</DIV>
-<DIV class="codeContent panelContent">
-
-<div class="codehilite"><pre><span class="n">Folder</span> <span
class="n">root</span> <span class="o">=</span> <span class="n">this</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="n">ItemIterable</span><span class="sr">&lt;CmisObject&gt;</span>
<span class="n">pl</span> <span class="o">=</span> <span class="n">root</span><span
class="o">.</span><span class="n">getChildren</span><span class="p">();</span>
-
-<span class="k">for</span> <span class="p">(</span><span class="n">CmisObject</span>
<span class="n">o</span> <span class="p">:</span> <span class="n">pl</span><span
class="p">)</span> <span class="p">{</span>
-  <span class="n">System</span><span class="o">.</span><span class="n">out</span><span
class="o">.</span><span class="n">println</span><span class="p">(</span><span
class="n">o</span><span class="o">.</span><span class="n">getName</span><span
class="p">());</span>
-<span class="p">}</span>
+<p><DIV class="codeHeader">Reading the Root Collection</DIV></p>
+<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>
+
+<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>
 
 
-<p></DIV>
-</DIV></p>
 <p><a name="OpenCMISClientAPI-ReadingProperties-SingleProperty"></a></p>
 <h3 id="reading_properties_-_single_property">Reading Properties - Single Property</h3>
 <p><DIV class="codeHeader">Reading a Single Property</DIV></p>
@@ -361,7 +340,7 @@ In order to create a session, the Sessio
 
 <p><a name="OpenCMISClientAPI-ReadingProperties-AllProperties"></a></p>
 <h3 id="reading_properties_-_all_properties">Reading Properties - All Properties</h3>
-<p><strong>Reading all Properties</strong></p>
+<p><DIV class="codeHeader">Reading all Properties</DIV></p>
 <div class="codehilite"><pre><span class="n">ObjectId</span> <span
class="n">id</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">createObjectId</span><span class="o">(</span><span class="s">&quot;4711&quot;</span><span
class="o">);</span>
 <span class="n">Document</span> <span class="n">document</span> <span
class="o">=</span> <span class="o">(</span><span class="n">Document</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">getObject</span><span
class="o">(</span><span class="n">id</span><span class="o">);</span>
 <span class="n">List</span><span class="o">&lt;</span><span
class="n">Property</span><span class="o">&lt;?&gt;&gt;</span>
<span class="n">l</span> <span class="o">=</span> <span class="n">document</span><span
class="o">.</span><span class="na">getProperties</span><span class="o">();</span>



Mime
View raw message