chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r866588 [1/7] - in /websites/staging/chemistry/trunk/content: ./ dotnet/ internal/ java/0.6.0/maven/apidocs/ java/developing/ java/developing/repositories/ java/examples/ java/how-to/ php/
Date Thu, 20 Jun 2013 10:26:44 GMT
Author: buildbot
Date: Thu Jun 20 10:26:44 2013
New Revision: 866588

Log:
Staging update by buildbot for chemistry

Removed:
    websites/staging/chemistry/trunk/content/java/0.6.0/maven/apidocs/
Modified:
    websites/staging/chemistry/trunk/content/   (props changed)
    websites/staging/chemistry/trunk/content/dotnet/powershell-example.html
    websites/staging/chemistry/trunk/content/internal/documentation-lifecycle.html
    websites/staging/chemistry/trunk/content/java/developing/dev-client-cache.html
    websites/staging/chemistry/trunk/content/java/developing/dev-compare-client-api-binding.html
    websites/staging/chemistry/trunk/content/java/developing/dev-osgi.html
    websites/staging/chemistry/trunk/content/java/developing/dev-server.html
    websites/staging/chemistry/trunk/content/java/developing/dev-url.html
    websites/staging/chemistry/trunk/content/java/developing/guide.html
    websites/staging/chemistry/trunk/content/java/developing/repositories/dev-repositories-inmemory.html
    websites/staging/chemistry/trunk/content/java/examples/example-create-update.html
    websites/staging/chemistry/trunk/content/java/how-to/how-to-build.html
    websites/staging/chemistry/trunk/content/java/how-to/how-to-create-server.html
    websites/staging/chemistry/trunk/content/java/how-to/how-to-process-query.html
    websites/staging/chemistry/trunk/content/java/how-to/how-to-tune-perfomance.html
    websites/staging/chemistry/trunk/content/java/how-to/index.html
    websites/staging/chemistry/trunk/content/php/phpclient.html
    websites/staging/chemistry/trunk/content/sitemap.html

Propchange: websites/staging/chemistry/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Jun 20 10:26:44 2013
@@ -1 +1 @@
-1489810
+1494906

Modified: websites/staging/chemistry/trunk/content/dotnet/powershell-example.html
==============================================================================
--- websites/staging/chemistry/trunk/content/dotnet/powershell-example.html (original)
+++ websites/staging/chemistry/trunk/content/dotnet/powershell-example.html Thu Jun 20 10:26:44
2013
@@ -193,107 +193,117 @@ Apache Chemistry - PowerShell Examples
              <!-- Content -->
              <div class="wiki-content"><h1 id="powershell-example">PowerShell
Example</h1>
 <p>The DotCMIS DLL can be used in PowerShell scripts. Here is a simple example.</p>
-<div class="codehilite"><pre><span class="c1"># load DotCMIS DLL</span>
-<span class="p">[</span><span class="n">Reflection</span><span
class="o">.</span><span class="n">Assembly</span><span class="p">]</span><span
class="o">::</span><span class="n">LoadFile</span><span class="p">(</span><span
class="s">&quot;X:\path\to\DotCMIS.dll&quot;</span><span class="p">)</span>
+<div class="codehilite"><pre><span class="c"># load DotCMIS DLL</span>
+<span class="p">[</span><span class="n">Reflection</span><span
class="p">.</span><span class="n">Assembly</span><span class="p">]::</span><span
class="n">LoadFile</span><span class="p">(</span><span class="s">&quot;X:\path\to\DotCMIS.dll&quot;</span><span
class="p">)</span>
 
-<span class="c1"># -----------------------------------------------------------------</span>
 
-<span class="c1"># helper functions</span>
-<span class="n">function</span> <span class="n">New</span><span
class="o">-</span><span class="n">GenericDictionary</span><span class="p">([</span><span
class="n">type</span><span class="p">]</span> <span class="nv">$keyType</span><span
class="p">,</span> <span class="p">[</span><span class="n">type</span><span
class="p">]</span> <span class="nv">$valueType</span><span class="p">)</span>
<span class="p">{</span>  
-   <span class="nv">$base</span> <span class="o">=</span> <span
class="p">[</span><span class="n">System</span><span class="o">.</span><span
class="n">Collections</span><span class="o">.</span><span class="n">Generic</span><span
class="o">.</span><span class="n">Dictionary</span><span class="sb">``</span><span
class="mi">2</span><span class="p">]</span>  
-   <span class="nv">$ct</span> <span class="o">=</span> <span
class="nv">$base</span><span class="o">.</span><span class="n">MakeGenericType</span><span
class="p">((</span><span class="nv">$keyType</span><span class="p">,</span>
<span class="nv">$valueType</span><span class="p">))</span>  
-   <span class="n">New</span><span class="o">-</span><span class="n">Object</span>
<span class="nv">$ct</span>
+<span class="c"># -----------------------------------------------------------------</span>
+
+<span class="c"># helper functions</span>
+<span class="k">function</span><span class="w"> </span><span class="nf">New-GenericDictionary</span><span
class="p">(</span>[type] $keyType, [type] $valueType<span class="p">)</span><span
class="w"> </span><span class="p">{</span>  
+   $<span class="n">base</span> <span class="p">=</span> <span
class="p">[</span><span class="n">System</span><span class="p">.</span><span
class="n">Collections</span><span class="p">.</span><span class="n">Generic</span><span
class="p">.</span><span class="n">Dictionary</span>``2<span class="p">]</span>
 
+   $<span class="n">ct</span> <span class="p">=</span> $<span
class="n">base</span><span class="p">.</span><span class="n">MakeGenericType</span><span
class="p">((</span>$<span class="n">keyType</span><span class="p">,</span>
$<span class="n">valueType</span><span class="p">))</span>  
+   <span class="n">New</span><span class="o">-</span><span class="n">Object</span>
$<span class="n">ct</span>
 <span class="p">}</span>
 
-<span class="n">function</span> <span class="n">New</span><span
class="o">-</span><span class="n">ContentStream</span><span class="p">([</span><span
class="n">string</span><span class="p">]</span> <span class="nv">$file</span><span
class="p">,</span> <span class="p">[</span><span class="n">string</span><span
class="p">]</span> <span class="nv">$mimetype</span><span class="p">)</span>
<span class="p">{</span>
-   <span class="nv">$fileinfo</span> <span class="o">=</span> <span
class="p">([</span><span class="n">System</span><span class="o">.</span><span
class="n">IO</span><span class="o">.</span><span class="n">FileInfo</span><span
class="p">]</span><span class="nv">$file</span><span class="p">)</span>
+<span class="k">function</span><span class="w"> </span><span class="nf">New-ContentStream</span><span
class="p">(</span>[string] $file, [string] $mimetype<span class="p">)</span><span
class="w"> </span><span class="p">{</span>
+   $<span class="n">fileinfo</span> <span class="p">=</span> <span
class="p">([</span><span class="n">System</span><span class="p">.</span><span
class="n">IO</span><span class="p">.</span><span class="n">FileInfo</span><span
class="p">]</span>$<span class="n">file</span><span class="p">)</span>
 
-   <span class="nv">$contentStream</span> <span class="o">=</span>
<span class="n">New</span><span class="o">-</span><span class="n">Object</span>
<span class="s">&quot;DotCMIS.Data.Impl.ContentStream&quot;</span>
-   <span class="nv">$contentStream</span><span class="o">.</span><span
class="n">Filename</span> <span class="o">=</span> <span class="nv">$fileinfo</span><span
class="o">.</span><span class="n">Name</span>
-   <span class="nv">$contentStream</span><span class="o">.</span><span
class="n">Length</span> <span class="o">=</span> <span class="nv">$fileinfo</span><span
class="o">.</span><span class="n">Length</span>
-   <span class="nv">$contentStream</span><span class="o">.</span><span
class="n">MimeType</span> <span class="o">=</span> <span class="nv">$mimetype</span>
-   <span class="nv">$contentStream</span><span class="o">.</span><span
class="n">Stream</span> <span class="o">=</span> <span class="nv">$fileinfo</span><span
class="o">.</span><span class="n">OpenRead</span><span class="p">()</span>
+   $<span class="n">contentStream</span> <span class="p">=</span>
<span class="n">New</span><span class="o">-</span><span class="n">Object</span>
<span class="s">&quot;DotCMIS.Data.Impl.ContentStream&quot;</span>
+   $<span class="n">contentStream</span><span class="p">.</span><span
class="n">Filename</span> <span class="p">=</span> $<span class="n">fileinfo</span><span
class="p">.</span><span class="n">Name</span>
+   $<span class="n">contentStream</span><span class="p">.</span><span
class="n">Length</span> <span class="p">=</span> $<span class="n">fileinfo</span><span
class="p">.</span><span class="n">Length</span>
+   $<span class="n">contentStream</span><span class="p">.</span><span
class="n">MimeType</span> <span class="p">=</span> $<span class="n">mimetype</span>
+   $<span class="n">contentStream</span><span class="p">.</span><span
class="n">Stream</span> <span class="p">=</span> $<span class="n">fileinfo</span><span
class="p">.</span><span class="n">OpenRead</span><span class="p">()</span>
 
-   <span class="nv">$contentStream</span>
+   $<span class="n">contentStream</span>
 <span class="p">}</span>
 
-<span class="n">function</span> <span class="n">Download</span><span
class="o">-</span><span class="n">ContentStream</span><span class="p">([</span><span
class="n">DotCMIS</span><span class="o">.</span><span class="n">Client</span><span
class="o">.</span><span class="n">IDocument</span><span class="p">]</span>
<span class="nv">$document</span><span class="p">,</span> <span
class="p">[</span><span class="n">string</span><span class="p">]</span>
<span class="nv">$file</span><span class="p">)</span> <span class="p">{</span>
-   <span class="nv">$contentStream</span> <span class="o">=</span>
<span class="nv">$document</span><span class="o">.</span><span
class="n">GetContentStream</span><span class="p">()</span>   
-   <span class="nv">$fileStream</span> <span class="o">=</span> <span
class="p">[</span><span class="n">System</span><span class="o">.</span><span
class="n">IO</span><span class="o">.</span><span class="n">File</span><span
class="p">]</span><span class="o">::</span><span class="n">OpenWrite</span><span
class="p">(</span><span class="nv">$file</span><span class="p">)</span>
+<span class="k">function</span><span class="w"> </span><span class="nf">Download-ContentStream</span><span
class="p">(</span>[DotCMIS.Client.IDocument] $document, [string] $file<span class="p">)</span><span
class="w"> </span><span class="p">{</span>
+   $<span class="n">contentStream</span> <span class="p">=</span>
$<span class="n">document</span><span class="p">.</span><span class="n">GetContentStream</span><span
class="p">()</span>   
+   $<span class="n">fileStream</span> <span class="p">=</span> <span
class="p">[</span><span class="n">System</span><span class="p">.</span><span
class="n">IO</span><span class="p">.</span><span class="n">File</span><span
class="p">]::</span><span class="n">OpenWrite</span><span class="p">(</span>$<span
class="n">file</span><span class="p">)</span>
 
-   <span class="nv">$buffer</span> <span class="o">=</span> <span
class="n">New</span><span class="o">-</span><span class="n">Object</span>
<span class="n">byte</span><span class="o">[]</span> <span class="mi">4096</span>
 
+   $<span class="n">buffer</span> <span class="p">=</span> <span
class="n">New</span><span class="o">-</span><span class="n">Object</span>
<span class="n">byte</span><span class="p">[]</span> 4096  
    <span class="k">do</span> <span class="p">{</span>  
-      <span class="nv">$b</span> <span class="o">=</span> <span
class="nv">$contentStream</span><span class="o">.</span><span class="n">Stream</span><span
class="o">.</span><span class="n">Read</span><span class="p">(</span><span
class="nv">$buffer</span><span class="p">,</span> <span class="mi">0</span><span
class="p">,</span> <span class="mi">4096</span><span class="p">)</span>
 
-      <span class="nv">$fileStream</span><span class="o">.</span><span
class="n">Write</span><span class="p">(</span><span class="nv">$buffer</span><span
class="p">,</span> <span class="mi">0</span><span class="p">,</span>
<span class="nv">$b</span><span class="p">)</span>  
+      $<span class="n">b</span> <span class="p">=</span> $<span
class="n">contentStream</span><span class="p">.</span><span class="n">Stream</span><span
class="p">.</span><span class="n">Read</span><span class="p">(</span>$<span
class="n">buffer</span><span class="p">,</span> 0<span class="p">,</span>
4096<span class="p">)</span>  
+      $<span class="n">fileStream</span><span class="p">.</span><span
class="n">Write</span><span class="p">(</span>$<span class="n">buffer</span><span
class="p">,</span> 0<span class="p">,</span> $<span class="n">b</span><span
class="p">)</span>  
    <span class="p">}</span>  
-   <span class="k">while</span> <span class="p">(</span><span
class="nv">$b</span> <span class="o">-</span><span class="ow">ne</span>
<span class="mi">0</span><span class="p">)</span>
+   <span class="k">while</span> <span class="p">(</span>$<span
class="n">b</span> <span class="o">-</span><span class="nb">ne</span>
0<span class="p">)</span>
 
-   <span class="nv">$fileStream</span><span class="o">.</span><span
class="n">Close</span><span class="p">()</span>
-   <span class="nv">$contentStream</span><span class="o">.</span><span
class="n">Stream</span><span class="o">.</span><span class="n">Close</span><span
class="p">()</span>
+   $<span class="n">fileStream</span><span class="p">.</span><span
class="n">Close</span><span class="p">()</span>
+   $<span class="n">contentStream</span><span class="p">.</span><span
class="n">Stream</span><span class="p">.</span><span class="n">Close</span><span
class="p">()</span>
 <span class="p">}</span>
 
-<span class="c1"># -----------------------------------------------------------------</span>
 
-<span class="c1"># create session</span>
-<span class="nv">$sp</span> <span class="o">=</span> <span class="n">New</span><span
class="o">-</span><span class="n">GenericDictionary</span> <span class="n">string</span>
<span class="n">string</span>
-<span class="nv">$sp</span><span class="p">[</span><span class="s">&quot;org.apache.chemistry.dotcmis.binding.spi.type&quot;</span><span
class="p">]</span> <span class="o">=</span> <span class="s">&quot;atompub&quot;</span>
-<span class="nv">$sp</span><span class="p">[</span><span class="s">&quot;org.apache.chemistry.dotcmis.binding.atompub.url&quot;</span><span
class="p">]</span> <span class="o">=</span> <span class="s">&quot;http://localhost:8080/alfresco/service/cmis&quot;</span>
-<span class="nv">$sp</span><span class="p">[</span><span class="s">&quot;org.apache.chemistry.dotcmis.user&quot;</span><span
class="p">]</span> <span class="o">=</span> <span class="s">&quot;admin&quot;</span>
-<span class="nv">$sp</span><span class="p">[</span><span class="s">&quot;org.apache.chemistry.dotcmis.password&quot;</span><span
class="p">]</span> <span class="o">=</span> <span class="s">&quot;admin&quot;</span>
-
-<span class="nv">$factory</span> <span class="o">=</span> <span
class="p">[</span><span class="n">DotCMIS</span><span class="o">.</span><span
class="n">Client</span><span class="o">.</span><span class="n">Impl</span><span
class="o">.</span><span class="n">SessionFactory</span><span class="p">]</span><span
class="o">::</span><span class="n">NewInstance</span><span class="p">()</span>
-<span class="nv">$session</span> <span class="o">=</span> <span
class="nv">$factory</span><span class="o">.</span><span class="n">GetRepositories</span><span
class="p">(</span><span class="nv">$sp</span><span class="p">)[</span><span
class="mi">0</span><span class="p">]</span><span class="o">.</span><span
class="n">CreateSession</span><span class="p">()</span>
-
-<span class="c1"># print the repository infos</span>
-<span class="nv">$session</span><span class="o">.</span><span
class="n">RepositoryInfo</span><span class="o">.</span><span class="n">Id</span>
-<span class="nv">$session</span><span class="o">.</span><span
class="n">RepositoryInfo</span><span class="o">.</span><span class="n">Name</span>
-<span class="nv">$session</span><span class="o">.</span><span
class="n">RepositoryInfo</span><span class="o">.</span><span class="n">Vendor</span>
-<span class="nv">$session</span><span class="o">.</span><span
class="n">RepositoryInfo</span><span class="o">.</span><span class="n">ProductName</span>
-<span class="nv">$session</span><span class="o">.</span><span
class="n">RepositoryInfo</span><span class="o">.</span><span class="n">ProductVersion</span>
-
-<span class="c1"># get root folder</span>
-<span class="nv">$root</span> <span class="o">=</span> <span class="nv">$session</span><span
class="o">.</span><span class="n">GetRootFolder</span><span class="p">()</span>
-
-<span class="c1"># print root folder children</span>
-<span class="nv">$children</span> <span class="o">=</span> <span
class="nv">$root</span><span class="o">.</span><span class="n">GetChildren</span><span
class="p">()</span>
-<span class="k">foreach</span> <span class="p">(</span><span class="nv">$object</span>
<span class="n">in</span> <span class="nv">$children</span><span
class="p">)</span> <span class="p">{</span>
-   <span class="nv">$object</span><span class="o">.</span><span
class="n">Name</span> <span class="o">+</span> <span class="s">&quot;
    (&quot;</span> <span class="o">+</span> <span class="nv">$object</span><span
class="o">.</span><span class="n">ObjectType</span><span class="o">.</span><span
class="n">Id</span> <span class="o">+</span> <span class="s">&quot;)&quot;</span>

+<span class="c"># -----------------------------------------------------------------</span>
+
+<span class="c"># create session</span>
+$<span class="n">sp</span> <span class="p">=</span> <span class="n">New</span><span
class="o">-</span><span class="n">GenericDictionary</span> <span class="n">string</span>
<span class="n">string</span>
+$<span class="n">sp</span><span class="p">[</span><span class="s">&quot;org.apache.chemistry.dotcmis.binding.spi.type&quot;</span><span
class="p">]</span> <span class="p">=</span> <span class="s">&quot;atompub&quot;</span>
+$<span class="n">sp</span><span class="p">[</span><span class="s">&quot;org.apache.chemistry.dotcmis.binding.atompub.url&quot;</span><span
class="p">]</span> <span class="p">=</span> <span class="s">&quot;http://localhost:8080/alfresco/service/cmis&quot;</span>
+$<span class="n">sp</span><span class="p">[</span><span class="s">&quot;org.apache.chemistry.dotcmis.user&quot;</span><span
class="p">]</span> <span class="p">=</span> <span class="s">&quot;admin&quot;</span>
+$<span class="n">sp</span><span class="p">[</span><span class="s">&quot;org.apache.chemistry.dotcmis.password&quot;</span><span
class="p">]</span> <span class="p">=</span> <span class="s">&quot;admin&quot;</span>
+
+$<span class="n">factory</span> <span class="p">=</span> <span
class="p">[</span><span class="n">DotCMIS</span><span class="p">.</span><span
class="n">Client</span><span class="p">.</span><span class="n">Impl</span><span
class="p">.</span><span class="n">SessionFactory</span><span class="p">]::</span><span
class="n">NewInstance</span><span class="p">()</span>
+$<span class="n">session</span> <span class="p">=</span> $<span
class="n">factory</span><span class="p">.</span><span class="n">GetRepositories</span><span
class="p">(</span>$<span class="n">sp</span><span class="p">)[</span>0<span
class="p">].</span><span class="n">CreateSession</span><span class="p">()</span>
+
+
+<span class="c"># print the repository infos</span>
+$<span class="n">session</span><span class="p">.</span><span class="n">RepositoryInfo</span><span
class="p">.</span><span class="n">Id</span>
+$<span class="n">session</span><span class="p">.</span><span class="n">RepositoryInfo</span><span
class="p">.</span><span class="n">Name</span>
+$<span class="n">session</span><span class="p">.</span><span class="n">RepositoryInfo</span><span
class="p">.</span><span class="n">Vendor</span>
+$<span class="n">session</span><span class="p">.</span><span class="n">RepositoryInfo</span><span
class="p">.</span><span class="n">ProductName</span>
+$<span class="n">session</span><span class="p">.</span><span class="n">RepositoryInfo</span><span
class="p">.</span><span class="n">ProductVersion</span>
+
+
+<span class="c"># get root folder</span>
+$<span class="n">root</span> <span class="p">=</span> $<span class="n">session</span><span
class="p">.</span><span class="n">GetRootFolder</span><span class="p">()</span>
+
+
+<span class="c"># print root folder children</span>
+$<span class="n">children</span> <span class="p">=</span> $<span
class="n">root</span><span class="p">.</span><span class="n">GetChildren</span><span
class="p">()</span>
+<span class="n">foreach</span> <span class="p">(</span>$<span
class="n">object</span> <span class="n">in</span> $<span class="n">children</span><span
class="p">)</span> <span class="p">{</span>
+   $<span class="n">object</span><span class="p">.</span><span
class="n">Name</span> <span class="o">+</span> <span class="s">&quot;
    (&quot;</span> <span class="o">+</span> $<span class="n">object</span><span
class="p">.</span><span class="n">ObjectType</span><span class="p">.</span><span
class="n">Id</span> <span class="o">+</span> <span class="s">&quot;)&quot;</span>

 <span class="p">}</span>
 
-<span class="c1"># run a quick query</span>
-<span class="nv">$queryresult</span> <span class="o">=</span> <span
class="nv">$session</span><span class="o">.</span><span class="n">Query</span><span
class="p">(</span><span class="s">&quot;SELECT * FROM cmis:document&quot;</span><span
class="p">,</span> <span class="nv">$false</span><span class="p">)</span>
-<span class="k">foreach</span> <span class="p">(</span><span class="nv">$object</span>
<span class="n">in</span> <span class="nv">$queryresult</span><span
class="p">)</span> <span class="p">{</span>
-   <span class="k">foreach</span> <span class="p">(</span><span
class="nv">$item</span> <span class="n">in</span> <span class="nv">$object</span><span
class="o">.</span><span class="n">Properties</span><span class="p">)</span>
<span class="p">{</span>
-      <span class="nv">$item</span><span class="o">.</span><span
class="n">QueryName</span> <span class="o">+</span> <span class="s">&quot;:
&quot;</span> <span class="o">+</span> <span class="nv">$item</span><span
class="o">.</span><span class="n">FirstValue</span>
+
+<span class="c"># run a quick query</span>
+$<span class="n">queryresult</span> <span class="p">=</span> $<span
class="n">session</span><span class="p">.</span><span class="n">Query</span><span
class="p">(</span><span class="s">&quot;SELECT * FROM cmis:document&quot;</span><span
class="p">,</span> $<span class="nb">false</span><span class="p">)</span>
+<span class="n">foreach</span> <span class="p">(</span>$<span
class="n">object</span> <span class="n">in</span> $<span class="n">queryresult</span><span
class="p">)</span> <span class="p">{</span>
+   <span class="n">foreach</span> <span class="p">(</span>$<span
class="n">item</span> <span class="n">in</span> $<span class="n">object</span><span
class="p">.</span><span class="n">Properties</span><span class="p">)</span>
<span class="p">{</span>
+      $<span class="n">item</span><span class="p">.</span><span
class="n">QueryName</span> <span class="o">+</span> <span class="s">&quot;:
&quot;</span> <span class="o">+</span> $<span class="n">item</span><span
class="p">.</span><span class="n">FirstValue</span>
    <span class="p">}</span>
    <span class="s">&quot;----------------------------------&quot;</span>
 <span class="p">}</span>
 
-<span class="c1"># create a folder</span>
-<span class="nv">$folderProperties</span> <span class="o">=</span>
<span class="n">New</span><span class="o">-</span><span class="n">GenericDictionary</span>
<span class="n">string</span> <span class="n">object</span>
-<span class="nv">$folderProperties</span><span class="p">[</span><span
class="s">&quot;cmis:name&quot;</span><span class="p">]</span>
<span class="o">=</span> <span class="s">&quot;myNewFolder&quot;</span>
-<span class="nv">$folderProperties</span><span class="p">[</span><span
class="s">&quot;cmis:objectTypeId&quot;</span><span class="p">]</span>
<span class="o">=</span> <span class="s">&quot;cmis:folder&quot;</span>
-
-<span class="nv">$folder</span> <span class="o">=</span> <span
class="nv">$root</span><span class="o">.</span><span class="n">CreateFolder</span><span
class="p">(</span><span class="nv">$folderProperties</span><span class="p">)</span>
-
-<span class="c1"># create a document </span>
-<span class="nv">$documentProperties</span> <span class="o">=</span>
<span class="n">New</span><span class="o">-</span><span class="n">GenericDictionary</span>
<span class="n">string</span> <span class="n">object</span>
-<span class="nv">$documentProperties</span><span class="p">[</span><span
class="s">&quot;cmis:name&quot;</span><span class="p">]</span>
<span class="o">=</span> <span class="s">&quot;myNewDocument&quot;</span>
-<span class="nv">$documentProperties</span><span class="p">[</span><span
class="s">&quot;cmis:objectTypeId&quot;</span><span class="p">]</span>
<span class="o">=</span> <span class="s">&quot;cmis:document&quot;</span>
-
-<span class="nv">$source</span> <span class="o">=</span> <span
class="nv">$home</span> <span class="o">+</span> <span class="s">&quot;\source.txt&quot;</span>
-<span class="nv">$mimetype</span> <span class="o">=</span> <span
class="s">&quot;text/plain&quot;</span>
-<span class="nv">$contentStream</span> <span class="o">=</span> <span
class="n">New</span><span class="o">-</span><span class="n">ContentStream</span>
<span class="nv">$source</span> <span class="nv">$mimetype</span>
-
-<span class="nv">$doc</span> <span class="o">=</span> <span class="nv">$folder</span><span
class="o">.</span><span class="n">CreateDocument</span><span class="p">(</span><span
class="nv">$documentProperties</span><span class="p">,</span> <span
class="nv">$contentStream</span><span class="p">,</span> <span class="nv">$null</span><span
class="p">)</span>
-
-<span class="c1"># download a document</span>
-<span class="nv">$target</span> <span class="o">=</span> <span
class="nv">$home</span> <span class="o">+</span> <span class="s">&quot;\target.txt&quot;</span>
-<span class="n">Download</span><span class="o">-</span><span class="n">ContentStream</span>
<span class="nv">$doc</span> <span class="nv">$target</span>
-
-<span class="c1"># clean up</span>
-<span class="nv">$doc</span><span class="o">.</span><span class="n">Delete</span><span
class="p">(</span><span class="nv">$true</span><span class="p">)</span>
-<span class="nv">$folder</span><span class="o">.</span><span class="n">Delete</span><span
class="p">(</span><span class="nv">$true</span><span class="p">)</span>
+
+<span class="c"># create a folder</span>
+$<span class="n">folderProperties</span> <span class="p">=</span>
<span class="n">New</span><span class="o">-</span><span class="n">GenericDictionary</span>
<span class="n">string</span> <span class="n">object</span>
+$<span class="n">folderProperties</span><span class="p">[</span><span
class="s">&quot;cmis:name&quot;</span><span class="p">]</span>
<span class="p">=</span> <span class="s">&quot;myNewFolder&quot;</span>
+$<span class="n">folderProperties</span><span class="p">[</span><span
class="s">&quot;cmis:objectTypeId&quot;</span><span class="p">]</span>
<span class="p">=</span> <span class="s">&quot;cmis:folder&quot;</span>
+
+$<span class="n">folder</span> <span class="p">=</span> $<span
class="n">root</span><span class="p">.</span><span class="n">CreateFolder</span><span
class="p">(</span>$<span class="n">folderProperties</span><span class="p">)</span>
+
+
+<span class="c"># create a document </span>
+$<span class="n">documentProperties</span> <span class="p">=</span>
<span class="n">New</span><span class="o">-</span><span class="n">GenericDictionary</span>
<span class="n">string</span> <span class="n">object</span>
+$<span class="n">documentProperties</span><span class="p">[</span><span
class="s">&quot;cmis:name&quot;</span><span class="p">]</span>
<span class="p">=</span> <span class="s">&quot;myNewDocument&quot;</span>
+$<span class="n">documentProperties</span><span class="p">[</span><span
class="s">&quot;cmis:objectTypeId&quot;</span><span class="p">]</span>
<span class="p">=</span> <span class="s">&quot;cmis:document&quot;</span>
+
+$<span class="nb">source</span> <span class="p">=</span> $<span
class="nb">home</span> <span class="o">+</span> <span class="s">&quot;\source.txt&quot;</span>
+$<span class="n">mimetype</span> <span class="p">=</span> <span
class="s">&quot;text/plain&quot;</span>
+$<span class="n">contentStream</span> <span class="p">=</span> <span
class="n">New</span><span class="o">-</span><span class="n">ContentStream</span>
$<span class="nb">source</span> $<span class="n">mimetype</span>
+
+$<span class="n">doc</span> <span class="p">=</span> $<span class="n">folder</span><span
class="p">.</span><span class="n">CreateDocument</span><span class="p">(</span>$<span
class="n">documentProperties</span><span class="p">,</span> $<span
class="n">contentStream</span><span class="p">,</span> $<span class="nb">null</span><span
class="p">)</span>
+
+
+<span class="c"># download a document</span>
+$<span class="n">target</span> <span class="p">=</span> $<span
class="nb">home</span> <span class="o">+</span> <span class="s">&quot;\target.txt&quot;</span>
+<span class="n">Download</span><span class="o">-</span><span class="n">ContentStream</span>
$<span class="n">doc</span> $<span class="n">target</span>
+
+
+<span class="c"># clean up</span>
+$<span class="n">doc</span><span class="p">.</span><span class="n">Delete</span><span
class="p">(</span>$<span class="nb">true</span><span class="p">)</span>
+$<span class="n">folder</span><span class="p">.</span><span class="n">Delete</span><span
class="p">(</span>$<span class="nb">true</span><span class="p">)</span>
 </pre></div></div>
              <!-- Content -->
            </td>

Modified: websites/staging/chemistry/trunk/content/internal/documentation-lifecycle.html
==============================================================================
--- websites/staging/chemistry/trunk/content/internal/documentation-lifecycle.html (original)
+++ websites/staging/chemistry/trunk/content/internal/documentation-lifecycle.html Thu Jun
20 10:26:44 2013
@@ -195,8 +195,7 @@ Apache Chemistry - Documentation lifecyc
 <h2 id="documentation-deliverables-current">Documentation Deliverables (current)</h2>
 <p>At the moment (0.2.0-incubating --&gt; 0.3.0) we deliver the following documentation:</p>
 <ul>
-<li><a href="http://chemistry.apache.org/java">Apache CMS driven public website</a><br
/>
-</li>
+<li><a href="http://chemistry.apache.org/java">Apache CMS driven public website</a>
 </li>
 <li>chemistry-docs-<version>.zip containing Javadocs + latest snapshot of public
docs</li>
 <li><a href="http://incubator.apache.org/chemistry/maven-site/">Maven generated
reports</a> (tests reports + project info) per <version> </li>
 </ul>

Modified: websites/staging/chemistry/trunk/content/java/developing/dev-client-cache.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/developing/dev-client-cache.html (original)
+++ websites/staging/chemistry/trunk/content/java/developing/dev-client-cache.html Thu Jun
20 10:26:44 2013
@@ -195,8 +195,7 @@ Apache Chemistry - Understanding the cli
 <p>Client side caching is turned on by default. That is, <code>getObject()</code>
will
 first look into the session cache if the object already exists there. If
 this is the case, it returns the object without talking to the repository.
-So it might return stale objects.<br />
-</p>
+So it might return stale objects.  </p>
 <p>There are multiple ways to deal with that:</p>
 <ul>
 <li>Refresh the object data that is returned from <code>getObject()</code>.</li>



Mime
View raw message