chemistry-commits mailing list archives

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

Log:
Staging update by buildbot

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

Modified: websites/staging/chemistry/trunk/content/java/opencmis-client-bindings.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/opencmis-client-bindings.html (original)
+++ websites/staging/chemistry/trunk/content/java/opencmis-client-bindings.html Mon Feb 21
15:42:08 2011
@@ -183,7 +183,7 @@ covering all CMIS operations and extensi
 clunky interface. The <a href="opencmis-client-api.html">OpenCMIS Client API</a>
  sits on top of the provider layer and exposes a nicer and simpler to use
 interface. It is the better choice for most applications.</p>
-<p>A connection to a CMIS repository is represented by a <a href="http://incubator.apache.org/chemistry/javadoc/org/apache/chemistry/opencmis/commons/spi/CmisBinding.html"><em>CmisBinding</em></a>
+<p>A connection to a CMIS repository is represented by a <a href="http://incubator.apache.org/chemistry/javadoc/org/apache/chemistry/opencmis/commons/spi/CmisBinding.html"><code>CmisBinding</code></a>
  object. Such an object can be created by the <a href="http://incubator.apache.org/chemistry/javadoc/org/apache/chemistry/opencmis/client/bindings/CmisBindingFactory.html"><code>CmisBindingFactory</code></a>.
 The factory provides three main methods, one for each binding and third
 one for a local connection (same JVM), that require binding specific
@@ -207,15 +207,15 @@ This factory can be obtained through the
 <p>The AtomPub binding requires the URL of the CMIS service document. HTTP
 basic authentication is enabled by default and a username and a password
 have to be provided.</p>
-<div class="codehilite"><pre><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">parameters</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>
+<div class="codehilite"><pre><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">parameters</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="n">parameters</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="n">user</span><span class="p">);</span>
-<span class="n">parameters</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="n">password</span><span class="p">);</span>
+<span class="n">parameters</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="n">user</span><span class="o">);</span>
+<span class="n">parameters</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="n">password</span><span class="o">);</span>
 
-<span class="n">parameters</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="n">url</span><span class="p">);</span> <span class="sr">//</span>
<span class="n">service</span> <span class="n">document</span> <span
class="n">URL</span>
+<span class="n">parameters</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="n">url</span><span class="o">);</span> <span class="c1">//
service document URL</span>
 
-<span class="n">CmisBindingFactory</span> <span class="n">factory</span>
<span class="o">=</span> <span class="n">CmisBindingFactory</span><span
class="o">.</span><span class="n">newInstance</span><span class="p">();</span>
-<span class="n">CmisBinding</span> <span class="n">binding</span>
<span class="o">=</span> <span class="n">factory</span><span class="o">.</span><span
class="n">createCmisAtomPubBinding</span><span class="p">(</span><span
class="n">parameters</span><span class="p">);</span>
+<span class="n">CmisBindingFactory</span> <span class="n">factory</span>
<span class="o">=</span> <span class="n">CmisBindingFactory</span><span
class="o">.</span><span class="na">newInstance</span><span class="o">();</span>
+<span class="n">CmisBinding</span> <span class="n">binding</span>
<span class="o">=</span> <span class="n">factory</span><span class="o">.</span><span
class="na">createCmisAtomPubBinding</span><span class="o">(</span><span
class="n">parameters</span><span class="o">);</span>
 </pre></div>
 
 
@@ -223,23 +223,23 @@ have to be provided.</p>
 <p>The Web Services binding requires a WSDL URL for each CMIS service. This
 might the same the URL for all services. WS-Security (UsernameToken) is
 enabled by default and a username and a password have to be provided.</p>
-<div class="codehilite"><pre><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">parameters</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>
+<div class="codehilite"><pre><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">parameters</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="n">parameters</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="n">username</span><span class="p">);</span>
-<span class="n">parameters</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="n">password</span><span class="p">);</span>
+<span class="n">parameters</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="n">username</span><span class="o">);</span>
+<span class="n">parameters</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="n">password</span><span class="o">);</span>
 
-<span class="n">parameters</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="n">repositoryServiceWsdlUrl</span><span
class="p">);</span>
-<span class="n">parameters</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="n">navigationServiceWsdlUrl</span><span
class="p">);</span>
-<span class="n">parameters</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="n">objectServiceWsdlUrl</span><span
class="p">);</span>
-<span class="n">parameters</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="n">versioningServiceWsdlUrl</span><span
class="p">);</span>
-<span class="n">parameters</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="n">discoveryServiceWsdlUrl</span><span
class="p">);</span>
-<span class="n">parameters</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="n">relationshipServiceWsdlUrl</span><span
class="p">);</span>
-<span class="n">parameters</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="n">multiFilingServiceWsdlUrl</span><span
class="p">);</span>
-<span class="n">parameters</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="n">policyServiceWsdlUrl</span><span
class="p">);</span>
-<span class="n">parameters</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="n">aclServiceWsdlUrl</span><span class="p">);</span>
+<span class="n">parameters</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="n">repositoryServiceWsdlUrl</span><span
class="o">);</span>
+<span class="n">parameters</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="n">navigationServiceWsdlUrl</span><span
class="o">);</span>
+<span class="n">parameters</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="n">objectServiceWsdlUrl</span><span
class="o">);</span>
+<span class="n">parameters</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="n">versioningServiceWsdlUrl</span><span
class="o">);</span>
+<span class="n">parameters</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="n">discoveryServiceWsdlUrl</span><span
class="o">);</span>
+<span class="n">parameters</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="n">relationshipServiceWsdlUrl</span><span
class="o">);</span>
+<span class="n">parameters</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="n">multiFilingServiceWsdlUrl</span><span
class="o">);</span>
+<span class="n">parameters</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="n">policyServiceWsdlUrl</span><span
class="o">);</span>
+<span class="n">parameters</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="n">aclServiceWsdlUrl</span><span class="o">);</span>
 
-<span class="n">CmisBindingFactory</span> <span class="n">factory</span>
<span class="o">=</span> <span class="n">CmisBindingFactory</span><span
class="o">.</span><span class="n">newInstance</span><span class="p">();</span>
-<span class="n">CmisBinding</span> <span class="n">binding</span>
<span class="o">=</span> <span class="n">factory</span><span class="o">.</span><span
class="n">createCmisWebServicesBinding</span><span class="p">(</span><span
class="n">parameters</span><span class="p">);</span>
+<span class="n">CmisBindingFactory</span> <span class="n">factory</span>
<span class="o">=</span> <span class="n">CmisBindingFactory</span><span
class="o">.</span><span class="na">newInstance</span><span class="o">();</span>
+<span class="n">CmisBinding</span> <span class="n">binding</span>
<span class="o">=</span> <span class="n">factory</span><span class="o">.</span><span
class="na">createCmisWebServicesBinding</span><span class="o">(</span><span
class="n">parameters</span><span class="o">);</span>
 </pre></div>
 
 
@@ -247,15 +247,15 @@ enabled by default and a username and a 
 <h3 id="creating_a_local_binding_instance">Creating a Local binding instance</h3>
 <p>The Local binding connects to an OpenCMIS server in the same JVM. The
 server factory class name has to be supplied.</p>
-<div class="codehilite"><pre><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">parameters</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>
+<div class="codehilite"><pre><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">parameters</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="n">parameters</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="n">user</span><span class="p">);</span>
-<span class="n">parameters</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="n">password</span><span class="p">);</span>
+<span class="n">parameters</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="n">user</span><span class="o">);</span>
+<span class="n">parameters</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="n">password</span><span class="o">);</span>
 
-<span class="n">parameters</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">LOCAL_FACTORY</span><span class="p">,</span>
<span class="n">factoryClassName</span><span class="p">);</span>
+<span class="n">parameters</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">LOCAL_FACTORY</span><span class="o">,</span>
<span class="n">factoryClassName</span><span class="o">);</span>
 
-<span class="n">CmisBindingFactory</span> <span class="n">factory</span>
<span class="o">=</span> <span class="n">CmisBindingFactory</span><span
class="o">.</span><span class="n">newInstance</span><span class="p">();</span>
-<span class="n">CmisBinding</span> <span class="n">binding</span>
<span class="o">=</span> <span class="n">factory</span><span class="o">.</span><span
class="n">createCmisLocalBinding</span><span class="p">(</span><span
class="n">parameters</span><span class="p">);</span>
+<span class="n">CmisBindingFactory</span> <span class="n">factory</span>
<span class="o">=</span> <span class="n">CmisBindingFactory</span><span
class="o">.</span><span class="na">newInstance</span><span class="o">();</span>
+<span class="n">CmisBinding</span> <span class="n">binding</span>
<span class="o">=</span> <span class="n">factory</span><span class="o">.</span><span
class="na">createCmisLocalBinding</span><span class="o">(</span><span
class="n">parameters</span><span class="o">);</span>
 </pre></div>
 
 
@@ -265,12 +265,12 @@ server factory class name has to be supp
 specification.</p>
 <div class="codehilite"><pre><span class="n">CmisBinding</span> <span
class="n">binding</span> <span class="o">=</span> <span class="o">...</span>
 
-<span class="n">ObjectData</span> <span class="n">myObject</span>
<span class="o">=</span> <span class="n">binding</span><span class="o">.</span><span
class="n">getObjectService</span><span class="p">()</span><span class="o">.</span><span
class="n">getObject</span><span class="p">(</span><span class="s">&quot;myRepository&quot;</span><span
class="p">,</span> <span class="s">&quot;myObject&quot;</span><span
class="p">,</span>
-   <span class="s">&quot;*&quot;</span><span class="p">,</span>
<span class="n">true</span><span class="p">,</span> <span class="n">IncludeRelationships</span><span
class="o">.</span><span class="n">BOTH</span><span class="p">,</span>
<span class="s">&quot;cmis:none&quot;</span><span class="p">,</span>
<span class="n">true</span><span class="p">,</span> <span class="n">true</span><span
class="p">,</span> <span class="n">null</span><span class="p">);</span>
+<span class="n">ObjectData</span> <span class="n">myObject</span>
<span class="o">=</span> <span class="n">binding</span><span class="o">.</span><span
class="na">getObjectService</span><span class="o">().</span><span
class="na">getObject</span><span class="o">(</span><span class="s">&quot;myRepository&quot;</span><span
class="o">,</span> <span class="s">&quot;myObject&quot;</span><span
class="o">,</span>
+   <span class="s">&quot;*&quot;</span><span class="o">,</span>
<span class="kc">true</span><span class="o">,</span> <span class="n">IncludeRelationships</span><span
class="o">.</span><span class="na">BOTH</span><span class="o">,</span>
<span class="s">&quot;cmis:none&quot;</span><span class="o">,</span>
<span class="kc">true</span><span class="o">,</span> <span class="kc">true</span><span
class="o">,</span> <span class="kc">null</span><span class="o">);</span>
 
-<span class="n">PropertiesData</span> <span class="n">properties</span>
<span class="o">=</span> <span class="n">myObject</span><span class="o">.</span><span
class="n">getProperties</span><span class="p">();</span>
-<span class="n">PropertyData</span><span class="sr">&lt;String&gt;</span>
<span class="n">nameProperty</span> <span class="o">=</span> <span
class="n">properties</span><span class="o">.</span><span class="n">getProperties</span><span
class="p">()</span><span class="o">.</span><span class="n">get</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="n">String</span> <span class="n">name</span> <span
class="o">=</span> <span class="n">nameProperty</span><span class="o">.</span><span
class="n">getFirstValue</span><span class="p">();</span>
+<span class="n">PropertiesData</span> <span class="n">properties</span>
<span class="o">=</span> <span class="n">myObject</span><span class="o">.</span><span
class="na">getProperties</span><span class="o">();</span>
+<span class="n">PropertyData</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">&gt;</span> <span class="n">nameProperty</span>
<span class="o">=</span> <span class="n">properties</span><span
class="o">.</span><span class="na">getProperties</span><span class="o">().</span><span
class="na">get</span><span class="o">(</span><span class="n">PropertyIds</span><span
class="o">.</span><span class="na">NAME</span><span class="o">);</span>
+<span class="n">String</span> <span class="n">name</span> <span
class="o">=</span> <span class="n">nameProperty</span><span class="o">.</span><span
class="na">getFirstValue</span><span class="o">();</span>
 </pre></div>
 
 
@@ -287,16 +287,16 @@ JavaDoc for details.</p>
 <p>The session parameter <code>SessionParameter.AUTHENTICATION_PROVIDER_CLASS</code>
 must be set to the fully qualified class name in order to active the
 authentication provider before the session is created.</p>
-<div class="codehilite"><pre><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">parameters</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>
+<div class="codehilite"><pre><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">parameters</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="n">parameters</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">AUTHENTICATION_PROVIDER_CLASS</span><span
class="p">,</span> <span class="s">&quot;org.example.opencmis.MyAuthenticationProvider&quot;</span><span
class="p">);</span>
-<span class="n">parameters</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="s">&quot;org.example.opencmis.user&quot;</span><span
class="p">,</span> <span class="s">&quot;cmisuser&quot;</span><span
class="p">);</span> <span class="sr">//</span> <span class="n">MyAuthenticationProvider</span>
<span class="n">can</span> <span class="n">get</span> <span class="ow">and</span>
<span class="n">evaluate</span> <span class="n">this</span>
-<span class="n">parameters</span><span class="o">.</span><span
class="n">put</span><span class="p">(</span><span class="s">&quot;org.example.opencmis.secret&quot;</span><span
class="p">,</span> <span class="s">&quot;b3BlbmNtaXMgdXNlcg==&quot;</span><span
class="p">);</span>
+<span class="n">parameters</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">AUTHENTICATION_PROVIDER_CLASS</span><span
class="o">,</span> <span class="s">&quot;org.example.opencmis.MyAuthenticationProvider&quot;</span><span
class="o">);</span>
+<span class="n">parameters</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="s">&quot;org.example.opencmis.user&quot;</span><span
class="o">,</span> <span class="s">&quot;cmisuser&quot;</span><span
class="o">);</span> <span class="c1">// MyAuthenticationProvider can get and
evaluate this</span>
+<span class="n">parameters</span><span class="o">.</span><span
class="na">put</span><span class="o">(</span><span class="s">&quot;org.example.opencmis.secret&quot;</span><span
class="o">,</span> <span class="s">&quot;b3BlbmNtaXMgdXNlcg==&quot;</span><span
class="o">);</span>
 
-<span class="n">parameters</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="n">url</span><span class="p">);</span> <span class="sr">//</span>
<span class="n">service</span> <span class="n">document</span> <span
class="n">URL</span>
+<span class="n">parameters</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="n">url</span><span class="o">);</span> <span class="c1">//
service document URL</span>
 
-<span class="n">CmisBindingFactory</span> <span class="n">factory</span>
<span class="o">=</span> <span class="n">CmisBindingFactory</span><span
class="o">.</span><span class="n">newInstance</span><span class="p">();</span>
-<span class="n">CmisBinding</span> <span class="n">provider</span>
<span class="o">=</span> <span class="n">factory</span><span class="o">.</span><span
class="n">createCmisAtomPubBinding</span><span class="p">(</span><span
class="n">parameters</span><span class="p">);</span>
+<span class="n">CmisBindingFactory</span> <span class="n">factory</span>
<span class="o">=</span> <span class="n">CmisBindingFactory</span><span
class="o">.</span><span class="na">newInstance</span><span class="o">();</span>
+<span class="n">CmisBinding</span> <span class="n">provider</span>
<span class="o">=</span> <span class="n">factory</span><span class="o">.</span><span
class="na">createCmisAtomPubBinding</span><span class="o">(</span><span
class="n">parameters</span><span class="o">);</span>
 </pre></div></div>
              <!-- Content -->
            </td>



Mime
View raw message