You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by bu...@apache.org on 2016/12/02 20:05:11 UTC
svn commit: r1002058 [1/2] - in /websites/staging/chemistry/trunk/content:
./ docs/cmis-samples/ docs/cmis-samples/about/ docs/cmis-samples/mkdocs/
docs/cmis-samples/mkdocs/js/ docs/cmis-samples/samples/access-control/
docs/cmis-samples/samples/allowab...
Author: buildbot
Date: Fri Dec 2 20:05:10 2016
New Revision: 1002058
Log:
Staging update by buildbot for chemistry
Added:
websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/js/lunr.min.js
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/query-examples/
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/query-examples/index.html
Removed:
websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/js/lunr-0.5.7.min.js
Modified:
websites/staging/chemistry/trunk/content/ (props changed)
websites/staging/chemistry/trunk/content/docs/cmis-samples/404.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/about/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/js/search.js
websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/search_index.json
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/access-control/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/allowable-actions/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/capabilities/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/changelog/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/content/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/create-objects/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/create-session/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/delete-objects/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/exceptions/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/extensions/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/lists/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/move-objects/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/operation-context/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/properties/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/queries/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/retention/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/retrieve-objects/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/types/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/update-objects/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/versions/index.html
websites/staging/chemistry/trunk/content/docs/cmis-samples/sitemap.xml
websites/staging/chemistry/trunk/content/sitemap.html
Propchange: websites/staging/chemistry/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Dec 2 20:05:10 2016
@@ -1 +1 @@
-1759961
+1772401
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/404.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/404.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/404.html Fri Dec 2 20:05:10 2016
@@ -23,19 +23,19 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
- <link rel="shortcut icon" href="./img/favicon.ico">
+ <meta name="author" content="Apache Chemistry">
+ <link rel="shortcut icon" href="/img/favicon.ico">
<title>Apache Chemistry Samples</title>
- <link href="./css/bootstrap-custom.min.css" rel="stylesheet">
+ <link href="/css/bootstrap-custom.min.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
- <link href="./css/base.css" rel="stylesheet">
- <link href="./css/cinder.css" rel="stylesheet">
- <link rel="stylesheet" href="./css/highlight.css">
+ <link href="/css/base.css" rel="stylesheet">
+ <link href="/css/cinder.css" rel="stylesheet">
+ <link rel="stylesheet" href="/css/highlight.css">
- <link href="./css/chemistry.css" rel="stylesheet">
+ <link href="/css/chemistry.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
@@ -64,7 +64,7 @@
<!-- Main title -->
- <a class="navbar-brand" href="index.html">Apache Chemistry Samples</a>
+ <a class="navbar-brand" href="/index.html">Apache Chemistry Samples</a>
</div>
<!-- Expanded navigation -->
@@ -75,7 +75,7 @@
<li >
- <a href="index.html">Home</a>
+ <a href="/index.html">Home</a>
</li>
@@ -86,25 +86,25 @@
<li >
- <a href="samples/create-session/index.html">Creating a Session</a>
+ <a href="/samples/create-session/index.html">Creating a Session</a>
</li>
<li >
- <a href="samples/capabilities/index.html">Getting Repository Capabilities</a>
+ <a href="/samples/capabilities/index.html">Getting Repository Capabilities</a>
</li>
<li >
- <a href="samples/types/index.html">Working with Types</a>
+ <a href="/samples/types/index.html">Working with Types</a>
</li>
<li >
- <a href="samples/exceptions/index.html">CMIS Exceptions</a>
+ <a href="/samples/exceptions/index.html">CMIS Exceptions</a>
</li>
@@ -119,67 +119,67 @@
<li >
- <a href="samples/retrieve-objects/index.html">Retrieving Objects</a>
+ <a href="/samples/retrieve-objects/index.html">Retrieving Objects</a>
</li>
<li >
- <a href="samples/create-objects/index.html">Creating Objects</a>
+ <a href="/samples/create-objects/index.html">Creating Objects</a>
</li>
<li >
- <a href="samples/update-objects/index.html">Updating Objects</a>
+ <a href="/samples/update-objects/index.html">Updating Objects</a>
</li>
<li >
- <a href="samples/move-objects/index.html">Moving Object</a>
+ <a href="/samples/move-objects/index.html">Moving Object</a>
</li>
<li >
- <a href="samples/delete-objects/index.html">Deleting Objects</a>
+ <a href="/samples/delete-objects/index.html">Deleting Objects</a>
</li>
<li >
- <a href="samples/content/index.html">Working with Content</a>
+ <a href="/samples/content/index.html">Working with Content</a>
</li>
<li >
- <a href="samples/versions/index.html">Working with Versions</a>
+ <a href="/samples/versions/index.html">Working with Versions</a>
</li>
<li >
- <a href="samples/properties/index.html">Working with Properties and Secondary Types</a>
+ <a href="/samples/properties/index.html">Working with Properties and Secondary Types</a>
</li>
<li >
- <a href="samples/operation-context/index.html">Understanding the Operation Context</a>
+ <a href="/samples/operation-context/index.html">Understanding the Operation Context</a>
</li>
<li >
- <a href="samples/lists/index.html">Working with Lists, Paging and Skipping</a>
+ <a href="/samples/lists/index.html">Working with Lists, Paging and Skipping</a>
</li>
<li >
- <a href="samples/extensions/index.html">Getting Extensions</a>
+ <a href="/samples/extensions/index.html">Getting Extensions</a>
</li>
@@ -194,13 +194,19 @@
<li >
- <a href="samples/queries/index.html">Executing Queries</a>
+ <a href="/samples/queries/index.html">Executing Queries</a>
</li>
<li >
- <a href="samples/changelog/index.html">Retrieving the Change Log</a>
+ <a href="/samples/query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
+ <a href="/samples/changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -215,19 +221,19 @@
<li >
- <a href="samples/allowable-actions/index.html">Checking Allowable Actions</a>
+ <a href="/samples/allowable-actions/index.html">Checking Allowable Actions</a>
</li>
<li >
- <a href="samples/access-control/index.html">Managing Access Control</a>
+ <a href="/samples/access-control/index.html">Managing Access Control</a>
</li>
<li >
- <a href="samples/retention/index.html">Retention and Holds</a>
+ <a href="/samples/retention/index.html">Retention and Holds</a>
</li>
@@ -237,7 +243,7 @@
<li >
- <a href="about/index.html">About</a>
+ <a href="/about/index.html">About</a>
</li>
@@ -251,20 +257,9 @@
</a>
</li>
- <li class="disabled">
- <a rel="next" >
- <i class="fa fa-arrow-left" aria-hidden="true"></i> Previous
- </a>
- </li>
- <li class="disabled">
- <a rel="prev" >
- Next <i class="fa fa-arrow-right" aria-hidden="true"></i>
- </a>
- </li>
-
<li>
<a href="https://www.apache.org" style="padding: 2px;">
- <img src="./img/feather.png">
+ <img src="/img/feather.png">
</a>
</li>
</ul>
@@ -279,7 +274,7 @@
<div id="main-content" class="span12">
<h1 id="404-page-not-found" style="text-align: center">404</h1>
<p style="text-align: center"><strong>Page not found</strong></p>
- <p style="text-align: center"><a href=".">Home</a></p>
+ <p style="text-align: center"><a href="">Home</a></p>
</div>
</div>
@@ -291,15 +286,15 @@
<p>
</footer>
- <script src="./js/jquery-1.10.2.min.js"></script>
- <script src="./js/bootstrap-3.0.3.min.js"></script>
- <script src="./js/highlight.pack.js"></script>
+ <script src="/js/jquery-1.10.2.min.js"></script>
+ <script src="/js/bootstrap-3.0.3.min.js"></script>
+ <script src="/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>
- var base_url = '.';
+ var base_url = '';
</script>
- <script data-main="./mkdocs/js/search.js" src="./mkdocs/js/require.js"></script>
- <script src="./js/base.js"></script>
+ <script data-main="/mkdocs/js/search.js" src="/mkdocs/js/require.js"></script>
+ <script src="/js/base.js"></script>
<div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="Search Modal" aria-hidden="true">
<div class="modal-dialog">
@@ -328,8 +323,8 @@
</div>
</div>
- <script type="text/javascript" src="./js/retina.min.js"></script>
+ <script type="text/javascript" src="/js/retina.min.js"></script>
</body>
</html>
-<!-- last update: 2016-08-05 12:35:10.583795 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:41 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/about/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/about/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/about/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../img/favicon.ico">
<title>About - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../samples/query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../samples/changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -342,4 +348,4 @@ Content Management Interoperability Serv
</body>
</html>
-<!-- last update: 2016-08-05 12:35:11.221993 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:56 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/index.html Fri Dec 2 20:05:10 2016
@@ -23,10 +23,10 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="./img/favicon.ico">
- <title>Apache Chemistry Samples</title>
+ <title>Home - Apache Chemistry Samples</title>
<link href="./css/bootstrap-custom.min.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
@@ -200,6 +200,12 @@
<li >
+ <a href="samples/query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="samples/changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -329,7 +335,7 @@ Also some code samples lack a meaningful
<p>The code samples in this documentation cover the OpenCMIS client API. If you want to build a CMIS server with OpenCMIS, refer to the <a href="https://github.com/cmisdocs/ServerDevelopmentGuideV2/blob/master/docs/OpenCMIS%20Server%20Development%20Guide%20-%202nd%20Edition.pdf?raw=true">OpenCMIS Server Development Guide</a>.</p>
<p>To get started with OpenCMIS, download the <a href="https://chemistry.apache.org/java/download.html">OpenCMIS client libraries</a> or use Maven or Gradle to get the client libraries.</p>
<h4 id="maven">Maven</h4>
-<p>Replace <code>[OpenCMIS version]</code> with the latest version number, e.g. <code>0.14.0</code>.</p>
+<p>Replace <code>[OpenCMIS version]</code> with the latest version number, e.g. <code>1.0.0</code>.</p>
<pre><code class="xml"><dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-impl</artifactId>
@@ -346,7 +352,7 @@ Also some code samples lack a meaningful
</code></pre>
<h4 id="gradle">Gradle</h4>
-<p>Replace <code>[OpenCMIS version]</code> with the latest version number, e.g. <code>0.14.0</code>.</p>
+<p>Replace <code>[OpenCMIS version]</code> with the latest version number, e.g. <code>1.0.0</code>.</p>
<pre><code>compile group: 'org.apache.chemistry.opencmis', name: 'chemistry-opencmis-client-impl', version: '[OpenCMIS version]'
</code></pre>
@@ -414,4 +420,4 @@ For new projects it is recommend to use
</body>
</html>
-<!-- last update: 2016-08-05 12:35:10.676945 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:41 -->
\ No newline at end of file
Added: websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/js/lunr.min.js
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/js/lunr.min.js (added)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/js/lunr.min.js Fri Dec 2 20:05:10 2016
@@ -0,0 +1,7 @@
+/**
+ * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 0.7.0
+ * Copyright (C) 2016 Oliver Nightingale
+ * MIT Licensed
+ * @license
+ */
+!function(){var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.7.0",t.utils={},t.utils.warn=function(t){return function(e){t.console&&console.warn&&console.warn(e)}}(this),t.utils.asString=function(t){return void 0===t||null===t?"":t.toString()},t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var t=Array.prototype.slice.call(arguments),e=t.pop(),n=t;if("function"!=typeof e)throw new TypeError("last argument must be a function");n.forEach(function(t){this.hasHandler(t)||(this.events[t]=[]),this.events[t].push(e)},this)},t.EventEmitter.prototype.removeListener=function(t,e){if(this.hasHandler(t)){var n=this.events[t].indexOf(e);this.events[t].splice(n,1),this.events[t].length||delete this.events[t]}},t.EventEmitter.prototype.emit=function(t){if(this.hasHandler(t)){var e=Array.prototype.slice.call(arguments,1);this.events[t].forEach(function(t){t.apply(void 0,e)})}},t.E
ventEmitter.prototype.hasHandler=function(t){return t in this.events},t.tokenizer=function(e){return arguments.length&&null!=e&&void 0!=e?Array.isArray(e)?e.map(function(e){return t.utils.asString(e).toLowerCase()}):e.toString().trim().toLowerCase().split(t.tokenizer.seperator):[]},t.tokenizer.seperator=/[\s\-]+/,t.tokenizer.load=function(t){var e=this.registeredFunctions[t];if(!e)throw new Error("Cannot load un-registered function: "+t);return e},t.tokenizer.label="default",t.tokenizer.registeredFunctions={"default":t.tokenizer},t.tokenizer.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing tokenizer: "+n),e.label=n,this.registeredFunctions[n]=e},t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions={},t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegister
ed=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(e){var i=t.Pipeline.registeredFunctions[e];if(!i)throw new Error("Cannot load un-registered function: "+e);n.add(i)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){t.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._stack.indexOf(e);if(-1==i)throw new Error("Cannot find existingFn");i+=1,this._stack.splice(i,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._stack.indexOf(e);if(-1==i)throw new Error("Cannot find existingFn");this._stack.splice(i,0,n)},t.Pipeline.prototype.remove=function(t){var e=this._stack.i
ndexOf(t);-1!=e&&this._stack.splice(e,1)},t.Pipeline.prototype.run=function(t){for(var e=[],n=t.length,i=this._stack.length,r=0;n>r;r++){for(var o=t[r],s=0;i>s&&(o=this._stack[s](o,r,t),void 0!==o&&""!==o);s++);void 0!==o&&""!==o&&e.push(o)}return e},t.Pipeline.prototype.reset=function(){this._stack=[]},t.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},t.Vector.Node=function(t,e,n){this.idx=t,this.val=e,this.next=n},t.Vector.prototype.insert=function(e,n){this._magnitude=void 0;var i=this.list;if(!i)return this.list=new t.Vector.Node(e,n,i),this.length++;if(e<i.idx)return this.list=new t.Vector.Node(e,n,i),this.length++;for(var r=i,o=i.next;void 0!=o;){if(e<o.idx)return r.next=new t.Vector.Node(e,n,o),this.length++;r=o,o=o.next}return r.next=new t.Vector.Node(e,n,o),this.length++},t.Vector.prototype.magnitude=function(){if(this.
_magnitude)return this._magnitude;for(var t,e=this.list,n=0;e;)t=e.val,n+=t*t,e=e.next;return this._magnitude=Math.sqrt(n)},t.Vector.prototype.dot=function(t){for(var e=this.list,n=t.list,i=0;e&&n;)e.idx<n.idx?e=e.next:e.idx>n.idx?n=n.next:(i+=e.val*n.val,e=e.next,n=n.next);return i},t.Vector.prototype.similarity=function(t){return this.dot(t)/(this.magnitude()*t.magnitude())},t.SortedSet=function(){this.length=0,this.elements=[]},t.SortedSet.load=function(t){var e=new this;return e.elements=t,e.length=t.length,e},t.SortedSet.prototype.add=function(){var t,e;for(t=0;t<arguments.length;t++)e=arguments[t],~this.indexOf(e)||this.elements.splice(this.locationFor(e),0,e);this.length=this.elements.length},t.SortedSet.prototype.toArray=function(){return this.elements.slice()},t.SortedSet.prototype.map=function(t,e){return this.elements.map(t,e)},t.SortedSet.prototype.forEach=function(t,e){return this.elements.forEach(t,e)},t.SortedSet.prototype.indexOf=function(t){for(var e=0,n=this.elemen
ts.length,i=n-e,r=e+Math.floor(i/2),o=this.elements[r];i>1;){if(o===t)return r;t>o&&(e=r),o>t&&(n=r),i=n-e,r=e+Math.floor(i/2),o=this.elements[r]}return o===t?r:-1},t.SortedSet.prototype.locationFor=function(t){for(var e=0,n=this.elements.length,i=n-e,r=e+Math.floor(i/2),o=this.elements[r];i>1;)t>o&&(e=r),o>t&&(n=r),i=n-e,r=e+Math.floor(i/2),o=this.elements[r];return o>t?r:t>o?r+1:void 0},t.SortedSet.prototype.intersect=function(e){for(var n=new t.SortedSet,i=0,r=0,o=this.length,s=e.length,a=this.elements,h=e.elements;;){if(i>o-1||r>s-1)break;a[i]!==h[r]?a[i]<h[r]?i++:a[i]>h[r]&&r++:(n.add(a[i]),i++,r++)}return n},t.SortedSet.prototype.clone=function(){var e=new t.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},t.SortedSet.prototype.union=function(t){var e,n,i;this.length>=t.length?(e=this,n=t):(e=t,n=this),i=e.clone();for(var r=0,o=n.toArray();r<o.length;r++)i.add(o[r]);return i},t.SortedSet.prototype.toJSON=function(){return this.toArray()},t.Index=functio
n(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.Store,this.tokenStore=new t.TokenStore,this.corpusTokens=new t.SortedSet,this.eventEmitter=new t.EventEmitter,this.tokenizerFn=t.tokenizer,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var t=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,t)},t.Index.prototype.off=function(t,e){return this.eventEmitter.removeListener(t,e)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;return n._fields=e.fields,n._ref=e.ref,n.tokenizer=t.tokenizer.load(e.tokenizer),n.documentStore=t.Store.load(e.documentStore),n.tokenStore=t.TokenStore.load(e.tokenStore),n.corpusTokens=t.SortedSet.load(e.corpusTokens),n.pipeline=t.Pipeline.load(e.pipeline),n},t.Index.prototype.field=function(t,e){var e=e||{},n
={name:t,boost:e.boost||1};return this._fields.push(n),this},t.Index.prototype.ref=function(t){return this._ref=t,this},t.Index.prototype.tokenizer=function(e){var n=e.label&&e.label in t.tokenizer.registeredFunctions;return n||t.utils.warn("Function is not a registered tokenizer. This may cause problems when serialising the index"),this.tokenizerFn=e,this},t.Index.prototype.add=function(e,n){var i={},r=new t.SortedSet,o=e[this._ref],n=void 0===n?!0:n;this._fields.forEach(function(t){var n=this.pipeline.run(this.tokenizerFn(e[t.name]));i[t.name]=n;for(var o=0;o<n.length;o++){var s=n[o];r.add(s),this.corpusTokens.add(s)}},this),this.documentStore.set(o,r);for(var s=0;s<r.length;s++){for(var a=r.elements[s],h=0,u=0;u<this._fields.length;u++){var l=this._fields[u],c=i[l.name],f=c.length;if(f){for(var d=0,p=0;f>p;p++)c[p]===a&&d++;h+=d/f*l.boost}}this.tokenStore.add(a,{ref:o,tf:h})}n&&this.eventEmitter.emit("add",e,this)},t.Index.prototype.remove=function(t,e){var n=t[this._ref],e=void
0===e?!0:e;if(this.documentStore.has(n)){var i=this.documentStore.get(n);this.documentStore.remove(n),i.forEach(function(t){this.tokenStore.remove(t,n)},this),e&&this.eventEmitter.emit("remove",t,this)}},t.Index.prototype.update=function(t,e){var e=void 0===e?!0:e;this.remove(t,!1),this.add(t,!1),e&&this.eventEmitter.emit("update",t,this)},t.Index.prototype.idf=function(t){var e="@"+t;if(Object.prototype.hasOwnProperty.call(this._idfCache,e))return this._idfCache[e];var n=this.tokenStore.count(t),i=1;return n>0&&(i=1+Math.log(this.documentStore.length/n)),this._idfCache[e]=i},t.Index.prototype.search=function(e){var n=this.pipeline.run(this.tokenizerFn(e)),i=new t.Vector,r=[],o=this._fields.reduce(function(t,e){return t+e.boost},0),s=n.some(function(t){return this.tokenStore.has(t)},this);if(!s)return[];n.forEach(function(e,n,s){var a=1/s.length*this._fields.length*o,h=this,u=this.tokenStore.expand(e).reduce(function(n,r){var o=h.corpusTokens.indexOf(r),s=h.idf(r),u=1,l=new t.Sorted
Set;if(r!==e){var c=Math.max(3,r.length-e.length);u=1/Math.log(c)}o>-1&&i.insert(o,a*s*u);for(var f=h.tokenStore.get(r),d=Object.keys(f),p=d.length,v=0;p>v;v++)l.add(f[d[v]].ref);return n.union(l)},new t.SortedSet);r.push(u)},this);var a=r.reduce(function(t,e){return t.intersect(e)});return a.map(function(t){return{ref:t,score:i.similarity(this.documentVector(t))}},this).sort(function(t,e){return e.score-t.score})},t.Index.prototype.documentVector=function(e){for(var n=this.documentStore.get(e),i=n.length,r=new t.Vector,o=0;i>o;o++){var s=n.elements[o],a=this.tokenStore.get(s)[e].tf,h=this.idf(s);r.insert(this.corpusTokens.indexOf(s),a*h)}return r},t.Index.prototype.toJSON=function(){return{version:t.version,fields:this._fields,ref:this._ref,tokenizer:this.tokenizerFn.label,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},t.Index.prototype.use=function(t){var e=Array.prototype.slic
e.call(arguments,1);e.unshift(this),t.apply(this,e)},t.Store=function(){this.store={},this.length=0},t.Store.load=function(e){var n=new this;return n.length=e.length,n.store=Object.keys(e.store).reduce(function(n,i){return n[i]=t.SortedSet.load(e.store[i]),n},{}),n},t.Store.prototype.set=function(t,e){this.has(t)||this.length++,this.store[t]=e},t.Store.prototype.get=function(t){return this.store[t]},t.Store.prototype.has=function(t){return t in this.store},t.Store.prototype.remove=function(t){this.has(t)&&(delete this.store[t],this.length--)},t.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},t.stemmer=function(){var t={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},e={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[^aeiou]",i=
"[aeiouy]",r=n+"[^aeiouy]*",o=i+"[aeiou]*",s="^("+r+")?"+o+r,a="^("+r+")?"+o+r+"("+o+")?$",h="^("+r+")?"+o+r+o+r,u="^("+r+")?"+i,l=new RegExp(s),c=new RegExp(h),f=new RegExp(a),d=new RegExp(u),p=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,g=/^(.+?)eed$/,m=/^(.+?)(ed|ing)$/,y=/.$/,S=/(at|bl|iz)$/,w=new RegExp("([^aeiouylsz])\\1$"),k=new RegExp("^"+r+i+"[^aeiouwxy]$"),x=/^(.+?[^aeiou])y$/,b=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,F=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,_=/^(.+?)(s|t)(ion)$/,z=/^(.+?)e$/,O=/ll$/,P=new RegExp("^"+r+i+"[^aeiouwxy]$"),T=function(n){var i,r,o,s,a,h,u;if(n.length<3)return n;if(o=n.substr(0,1),"y"==o&&(n=o.toUpperCase()+n.substr(1)),s=p,a=v,s.test(n)?n=n.replace(s,"$1$2"):a.test(n)&&(n=n.replace(a,"$1$2")),s=g,a=m,s.test(n)){var T=s.exec(n);s=l,s.test(T[1])&&(s=y,n=n.rep
lace(s,""))}else if(a.test(n)){var T=a.exec(n);i=T[1],a=d,a.test(i)&&(n=i,a=S,h=w,u=k,a.test(n)?n+="e":h.test(n)?(s=y,n=n.replace(s,"")):u.test(n)&&(n+="e"))}if(s=x,s.test(n)){var T=s.exec(n);i=T[1],n=i+"i"}if(s=b,s.test(n)){var T=s.exec(n);i=T[1],r=T[2],s=l,s.test(i)&&(n=i+t[r])}if(s=E,s.test(n)){var T=s.exec(n);i=T[1],r=T[2],s=l,s.test(i)&&(n=i+e[r])}if(s=F,a=_,s.test(n)){var T=s.exec(n);i=T[1],s=c,s.test(i)&&(n=i)}else if(a.test(n)){var T=a.exec(n);i=T[1]+T[2],a=c,a.test(i)&&(n=i)}if(s=z,s.test(n)){var T=s.exec(n);i=T[1],s=c,a=f,h=P,(s.test(i)||a.test(i)&&!h.test(i))&&(n=i)}return s=O,a=c,s.test(n)&&a.test(n)&&(s=y,n=n.replace(s,"")),"y"==o&&(n=o.toLowerCase()+n.substr(1)),n};return T}(),t.Pipeline.registerFunction(t.stemmer,"stemmer"),t.generateStopWordFilter=function(t){var e=t.reduce(function(t,e){return t[e]=e,t},{});return function(t){return t&&e[t]!==t?t:void 0}},t.stopWordFilter=t.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among
","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),t.Pipeline.registerFunction(t.stopWordFilter,"stopWordFilter"),t.trimmer=function(t){return t.replace(/^\W+/,"").replace(/\W+$/,"")},t.Pipeline.registerFunction(t.trimmer,"trimmer"),t.TokenStore=function(){this.root={docs:{}},this.length=0},t.TokenStore.load=function(t){var
e=new this;return e.root=t.root,e.length=t.length,e},t.TokenStore.prototype.add=function(t,e,n){var n=n||this.root,i=t.charAt(0),r=t.slice(1);return i in n||(n[i]={docs:{}}),0===r.length?(n[i].docs[e.ref]=e,void(this.length+=1)):this.add(r,e,n[i])},t.TokenStore.prototype.has=function(t){if(!t)return!1;for(var e=this.root,n=0;n<t.length;n++){if(!e[t.charAt(n)])return!1;e=e[t.charAt(n)]}return!0},t.TokenStore.prototype.getNode=function(t){if(!t)return{};for(var e=this.root,n=0;n<t.length;n++){if(!e[t.charAt(n)])return{};e=e[t.charAt(n)]}return e},t.TokenStore.prototype.get=function(t,e){return this.getNode(t,e).docs||{}},t.TokenStore.prototype.count=function(t,e){return Object.keys(this.get(t,e)).length},t.TokenStore.prototype.remove=function(t,e){if(t){for(var n=this.root,i=0;i<t.length;i++){if(!(t.charAt(i)in n))return;n=n[t.charAt(i)]}delete n.docs[e]}},t.TokenStore.prototype.expand=function(t,e){var n=this.getNode(t),i=n.docs||{},e=e||[];return Object.keys(i).length&&e.push(t),Ob
ject.keys(n).forEach(function(n){"docs"!==n&&e.concat(this.expand(t+n,e))},this),e},t.TokenStore.prototype.toJSON=function(){return{root:this.root,length:this.length}},function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.lunr=e()}(this,function(){return t})}();
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/js/search.js
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/js/search.js (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/js/search.js Fri Dec 2 20:05:10 2016
@@ -1,6 +1,6 @@
require([
base_url + '/mkdocs/js/mustache.min.js',
- base_url + '/mkdocs/js/lunr-0.5.7.min.js',
+ base_url + '/mkdocs/js/lunr.min.js',
'text!search-results-template.mustache',
'text!../search_index.json',
], function (Mustache, lunr, results_template, data) {
@@ -70,7 +70,7 @@ require([
*/
jQuery('#mkdocs_search_modal a').click(function(){
jQuery('#mkdocs_search_modal').modal('hide');
- })
+ });
}
};
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/search_index.json
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/search_index.json (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/mkdocs/search_index.json Fri Dec 2 20:05:10 2016
@@ -2,7 +2,7 @@
"docs": [
{
"location": "/index.html",
- "text": "Apache Chemistry CMIS Code Samples\n\n\n\n\n\n\nCMIS (Content Management Interoperability Services)\n is an OASIS standard enabling information sharing between different Content Management Systems.\n\n\n\n\n\n\n\nThis is a collection of code samples for \n\n\n\n\n\n\nApache Chemistry OpenCMIS\n - a CMIS library for Java\n\n\nApache Chemistry PortCMIS\n - a CMIS library for .Net\n\n\n\n\nWe assume that you have a rough understanding of CMIS. This is not a CMIS introduction course.\n\n\nMany code samples are marked with \nCMIS 1.0\n or \nCMIS 1.1\n. Those tags indicate the CMIS specification version that the server has to support to use the feature.\n\n\nThroughout the code samples you will find references to sections in the \nCMIS 1.1 specification\n; tags like \nSpec 1.5\n. We recommend that you have the specification document ready to hand. \n\n\n\n\nUnder Development\n\n\nThis sample collection is under development. Some areas are only sparely covered or not c
overed at all, yet.\nAlso some code samples lack a meaningful description. If you want help, please see the \nabout page\n.\n\n\n\n\n\n\nApache Chemistry\n\n\nApache Chemistry\n provides open source client and server implementations of \nCMIS 1.0\n and \nCMIS 1.1\n for multiple programming languages (Java, .Net, Python, PHP, Objective-C, JavaScript, \n). \n\n\n\n\nDo you want to know more about CMIS and Apache Chemistry?\n\n\n\n\nThe book \nCMIS and Apache Chemistry in Action\n is a comprehensive guide to the CMIS standard and related ECM concepts. In it, you\nll tackle hands-on examples for building applications on CMIS repositories from both the client and the server sides. You\nll find working examples using the Apache Chemistry APIs for Java, Python, C#, Objective-C, and PHP, but you can use the techniques you\nll learn in this book to work with CMIS repositories using any language that can speak HTTP - including JavaScript.\n\n\n\n\n\n\n\nOpenCMIS\n\n\nOpenCMIS\n is a CMIS cli
ent library and a CMIS server framework for Java. It also provides developer tools such as the \nCMIS Workbench\n and the \nInMemory Repository\n. OpenCMIS runs on servers, desktops, and Android.\n\n\nThe code samples in this documentation cover the OpenCMIS client API. If you want to build a CMIS server with OpenCMIS, refer to the \nOpenCMIS Server Development Guide\n.\n\n\nTo get started with OpenCMIS, download the \nOpenCMIS client libraries\n or use Maven or Gradle to get the client libraries.\n\n\nMaven\n\n\nReplace \n[OpenCMIS version]\n with the latest version number, e.g. \n0.14.0\n.\n\n\ndependency\n\n \ngroupId\norg.apache.chemistry.opencmis\n/groupId\n\n \nartifactId\nchemistry-opencmis-client-impl\n/artifactId\n\n \nversion\n[OpenCMIS version]\n/version\n\n\n/dependency\n\n\n\n\n\nFor Android:\n\n\ndependency\n\n \ngroupId\norg.apache.chemistry.opencmis\n/groupId\n\n \nartifactId\nchemistry-opencmis-android-client\n/artifactId\n\n \nversion\n[OpenCMIS v
ersion]\n/version\n\n\n/dependency\n\n\n\n\n\nGradle\n\n\nReplace \n[OpenCMIS version]\n with the latest version number, e.g. \n0.14.0\n.\n\n\ncompile group: 'org.apache.chemistry.opencmis', name: 'chemistry-opencmis-client-impl', version: '[OpenCMIS version]'\n\n\n\n\nFor Android:\n\n\ncompile group: 'org.apache.chemistry.opencmis', name: 'chemistry-opencmis-android-client', version: '[OpenCMIS version]'\n\n\n\n\nPortCMIS\n\n\nPortCMIS\n is a CMIS client library for .Net. It is a Portable Class Library that runs on servers, desktops, and Windows Mobile.\n\n\nTo get started with PortCMIS, download the \nPortCMIS client binaries\n. You have the choice of either plain DLLs or NUPGK packages. It is also availabe on \nnuget\n:\n\n\nPM\n Install-Package PortCMIS \n\n\n\n\nDotCMIS\n\n\nDotCMIS\n is the predecessor of \nPortCMIS\n.\nThe APIs are very similar and most of the PortCMIS samples should also work with DotCMIS.\n\n\nThe high-level differences between DotCMIS and PortCMIS are desc
ribed on \nthis page\n.\nFor new projects it is recommend to use PortCMIS.",
+ "text": "Apache Chemistry CMIS Code Samples\n\n\n\n\n\n\nCMIS (Content Management Interoperability Services)\n is an OASIS standard enabling information sharing between different Content Management Systems.\n\n\n\n\n\n\n\nThis is a collection of code samples for \n\n\n\n\n\n\nApache Chemistry OpenCMIS\n - a CMIS library for Java\n\n\nApache Chemistry PortCMIS\n - a CMIS library for .Net\n\n\n\n\nWe assume that you have a rough understanding of CMIS. This is not a CMIS introduction course.\n\n\nMany code samples are marked with \nCMIS 1.0\n or \nCMIS 1.1\n. Those tags indicate the CMIS specification version that the server has to support to use the feature.\n\n\nThroughout the code samples you will find references to sections in the \nCMIS 1.1 specification\n; tags like \nSpec 1.5\n. We recommend that you have the specification document ready to hand. \n\n\n\n\nUnder Development\n\n\nThis sample collection is under development. Some areas are only sparely covered or not c
overed at all, yet.\nAlso some code samples lack a meaningful description. If you want help, please see the \nabout page\n.\n\n\n\n\n\n\nApache Chemistry\n\n\nApache Chemistry\n provides open source client and server implementations of \nCMIS 1.0\n and \nCMIS 1.1\n for multiple programming languages (Java, .Net, Python, PHP, Objective-C, JavaScript, \n). \n\n\n\n\nDo you want to know more about CMIS and Apache Chemistry?\n\n\n\n\nThe book \nCMIS and Apache Chemistry in Action\n is a comprehensive guide to the CMIS standard and related ECM concepts. In it, you\nll tackle hands-on examples for building applications on CMIS repositories from both the client and the server sides. You\nll find working examples using the Apache Chemistry APIs for Java, Python, C#, Objective-C, and PHP, but you can use the techniques you\nll learn in this book to work with CMIS repositories using any language that can speak HTTP - including JavaScript.\n\n\n\n\n\n\n\nOpenCMIS\n\n\nOpenCMIS\n is a CMIS cli
ent library and a CMIS server framework for Java. It also provides developer tools such as the \nCMIS Workbench\n and the \nInMemory Repository\n. OpenCMIS runs on servers, desktops, and Android.\n\n\nThe code samples in this documentation cover the OpenCMIS client API. If you want to build a CMIS server with OpenCMIS, refer to the \nOpenCMIS Server Development Guide\n.\n\n\nTo get started with OpenCMIS, download the \nOpenCMIS client libraries\n or use Maven or Gradle to get the client libraries.\n\n\nMaven\n\n\nReplace \n[OpenCMIS version]\n with the latest version number, e.g. \n1.0.0\n.\n\n\ndependency\n\n \ngroupId\norg.apache.chemistry.opencmis\n/groupId\n\n \nartifactId\nchemistry-opencmis-client-impl\n/artifactId\n\n \nversion\n[OpenCMIS version]\n/version\n\n\n/dependency\n\n\n\n\n\nFor Android:\n\n\ndependency\n\n \ngroupId\norg.apache.chemistry.opencmis\n/groupId\n\n \nartifactId\nchemistry-opencmis-android-client\n/artifactId\n\n \nversion\n[OpenCMIS ve
rsion]\n/version\n\n\n/dependency\n\n\n\n\n\nGradle\n\n\nReplace \n[OpenCMIS version]\n with the latest version number, e.g. \n1.0.0\n.\n\n\ncompile group: 'org.apache.chemistry.opencmis', name: 'chemistry-opencmis-client-impl', version: '[OpenCMIS version]'\n\n\n\n\nFor Android:\n\n\ncompile group: 'org.apache.chemistry.opencmis', name: 'chemistry-opencmis-android-client', version: '[OpenCMIS version]'\n\n\n\n\nPortCMIS\n\n\nPortCMIS\n is a CMIS client library for .Net. It is a Portable Class Library that runs on servers, desktops, and Windows Mobile.\n\n\nTo get started with PortCMIS, download the \nPortCMIS client binaries\n. You have the choice of either plain DLLs or NUPGK packages. It is also availabe on \nnuget\n:\n\n\nPM\n Install-Package PortCMIS \n\n\n\n\nDotCMIS\n\n\nDotCMIS\n is the predecessor of \nPortCMIS\n.\nThe APIs are very similar and most of the PortCMIS samples should also work with DotCMIS.\n\n\nThe high-level differences between DotCMIS and PortCMIS are descri
bed on \nthis page\n.\nFor new projects it is recommend to use PortCMIS.",
"title": "Home"
},
{
@@ -22,12 +22,12 @@
},
{
"location": "/index.html#maven",
- "text": "Replace [OpenCMIS version] with the latest version number, e.g. 0.14.0 . dependency \n groupId org.apache.chemistry.opencmis /groupId \n artifactId chemistry-opencmis-client-impl /artifactId \n version [OpenCMIS version] /version /dependency For Android: dependency \n groupId org.apache.chemistry.opencmis /groupId \n artifactId chemistry-opencmis-android-client /artifactId \n version [OpenCMIS version] /version /dependency",
+ "text": "Replace [OpenCMIS version] with the latest version number, e.g. 1.0.0 . dependency \n groupId org.apache.chemistry.opencmis /groupId \n artifactId chemistry-opencmis-client-impl /artifactId \n version [OpenCMIS version] /version /dependency For Android: dependency \n groupId org.apache.chemistry.opencmis /groupId \n artifactId chemistry-opencmis-android-client /artifactId \n version [OpenCMIS version] /version /dependency",
"title": "Maven"
},
{
"location": "/index.html#gradle",
- "text": "Replace [OpenCMIS version] with the latest version number, e.g. 0.14.0 . compile group: 'org.apache.chemistry.opencmis', name: 'chemistry-opencmis-client-impl', version: '[OpenCMIS version]' For Android: compile group: 'org.apache.chemistry.opencmis', name: 'chemistry-opencmis-android-client', version: '[OpenCMIS version]'",
+ "text": "Replace [OpenCMIS version] with the latest version number, e.g. 1.0.0 . compile group: 'org.apache.chemistry.opencmis', name: 'chemistry-opencmis-client-impl', version: '[OpenCMIS version]' For Android: compile group: 'org.apache.chemistry.opencmis', name: 'chemistry-opencmis-android-client', version: '[OpenCMIS version]'",
"title": "Gradle"
},
{
@@ -42,12 +42,12 @@
},
{
"location": "/samples/create-session/index.html",
- "text": "Creating a Session\n\n\nA session is the entry point to the content repository. Creating a session is the first thing an application has to do to interact with the repository.\n\n\nA few details such as the URL of the repository endpoint, the user name and the user\ns credentials are necessary to establish a session.\nBeyond that more details might be required, depending on the repository and the environment. Those details are controlled by session parameters.\n\n\nA complete list of all session parameters for OpenCMIS can be found in the JavaDoc. For PortCMIS, please refer to the help file that is contained in the binary packages.\n\n\n\n\nWhich binding should I use?\n\n\nThe \nBrowser Binding\n is the fastest binding and is recommended for \nCMIS 1.1\n repositories.\n\nChoose the \nAtomPub Binding\n for \nCMIS 1.0\n repositories.\n\nThe Web Services Binding is the last resort and should be avoided. It is the slowest binding and is the most complex to set up.\n
\n\n\n\nAtomPub Binding\n\n\nCMIS 1.0\n\n\nCMIS 1.1\n\n\nOpenCMIS (Java)\n\n\n// default factory implementation\nSessionFactory factory = SessionFactoryImpl.newInstance();\nMap\nString, String\n parameters = new HashMap\nString, String\n();\n\n// user credentials\nparameters.put(SessionParameter.USER, \nOtto\n);\nparameters.put(SessionParameter.PASSWORD, \n****\n);\n\n// connection settings\nparameters.put(SessionParameter.ATOMPUB_URL, \nhttp://\nhost\n:\nport\n/cmis/atom\n);\nparameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());\nparameters.put(SessionParameter.REPOSITORY_ID, \nmyRepository\n);\n\n// create session\nSession session = factory.createSession(parameters);\n\n\n\n\nPortCMIS (C#)\n\n\n// default factory implementation\nSessionFactory factory = SessionFactory.NewInstance();\nDictionary\nstring, string\n parameters = new Dictionary\nstring, string\n();\n\n// user credentials\nparameters[SessionParameter.User] = \nOtto\n;\nparameters[SessionParameter.P
assword] = \n****\n;\n\n// connection settings\nparameters[SessionParameter.AtomPubUrl] = \nhttp://\nhost\n:\nport\n/cmis/atom\n;\nparameters[SessionParameter.BindingType] = BindingType.AtomPub;\nparameters[SessionParameter.RepositoryId] = \nmyRepository\n;\n\n// create session\nISession session = factory.CreateSession(parameters);\n\n\n\n\nBrowser Binding\n\n\nCMIS 1.1\n\n\nOpenCMIS (Java)\n\n\n// default factory implementation\nSessionFactory factory = SessionFactoryImpl.newInstance();\nMap\nString, String\n parameters = new HashMap\nString, String\n();\n\n// user credentials\nparameters.put(SessionParameter.USER, \nOtto\n);\nparameters.put(SessionParameter.PASSWORD, \n****\n);\n\n// connection settings\nparameters.put(SessionParameter.BROWSER_URL, \nhttp://\nhost\n:\nport\n/cmis/browser\n);\nparameters.put(SessionParameter.BINDING_TYPE, BindingType.BROWSER.value());\nparameters.put(SessionParameter.REPOSITORY_ID, \nmyRepository\n);\n\n// create session\nSession session = factory.
createSession(parameters);\n\n\n\n\nPortCMIS (C#)\n\n\n// default factory implementation\nSessionFactory factory = SessionFactory.NewInstance();\nDictionary\nstring, string\n parameters = new Dictionary\nstring, string\n();\n\n// user credentials\nparameters[SessionParameter.User] = \nOtto\n;\nparameters[SessionParameter.Password] = \n****\n;\n\n// connection settings\nparameters[SessionParameter.BrowserUrl] = \nhttp://\nhost\n:\nport\n/cmis/browser\n;\nparameters[SessionParameter.BindingType] = BindingType.Browser;\nparameters[SessionParameter.RepositoryId] = \nmyRepository\n;\n\n// create session\nISession session = factory.CreateSession(parameters);\n\n\n\n\nWeb Services Binding\n\n\nCMIS 1.0\n\n\nCMIS 1.1\n\n\nPortCMIS does not support the Web Service binding.\n\n\nOpenCMIS (Java)\n\n\n// default factory implementation\nSessionFactory factory = SessionFactoryImpl.newInstance();\nMap\nString, String\n parameters = new HashMap\nString, String\n();\n\n// user credentials\nparameter
s.put(SessionParameter.USER, \nOtto\n);\nparameters.put(SessionParameter.PASSWORD, \n****\n);\n\n// connection settings\nparameters.put(SessionParameter.BINDING_TYPE, BindingType.WEBSERVICES.value());\nparameters.put(SessionParameter.WEBSERVICES_ACL_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/ACLService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_DISCOVERY_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/DiscoveryService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_MULTIFILING_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/MultiFilingService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_NAVIGATION_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/NavigationService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_OBJECT_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/ObjectService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_POLICY_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/PolicyService?wsdl\n);\nparameters.put(SessionParam
eter.WEBSERVICES_RELATIONSHIP_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/RelationshipService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_REPOSITORY_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/RepositoryService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_VERSIONING_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/VersioningService?wsdl\n);\nparameters.put(SessionParameter.REPOSITORY_ID, \nmyRepository\n);\n\n// create session\nSession session = factory.createSession(parameters);\n\n\n\n\nLocal Binding\n\n\nCMIS 1.0\n\n\nCMIS 1.1\n\n\nThe local binding is specific to OpenCMIS. It lets an OpenCMIS client connect to an OpenCMIS server in the same JVM.\nThere is no PortCMIS equivalent.\n\n\nOpenCMIS (Java)\n\n\n// default factory implementation\nSessionFactory factory = SessionFactoryImpl.newInstance();\nMap\nString, String\n parameters = new HashMap\nString, String\n();\n\n// user credentials\nparameters.put(SessionParameter.USER, \nOtto\n);\nparameters
.put(SessionParameter.PASSWORD, \n****\n);\n\n// connection settings\nparameters.put(SessionParameter.BINDING_TYPE, BindingType.LOCAL.value());\nparameters.put(SessionParameter.LOCAL_FACTORY, \nmy.local.factory\n);\nparameters.put(SessionParameter.REPOSITORY_ID, \nmyRepository\n);\n\n// create session\nSession session = factory.createSession(parameters);\n\n\n\n\nConnecting to the First Repository\n\n\nSome CMIS endpoints only provide one repository. In this case it is not necessary to provide its repository ID.\nThe following code snippet gets the list of all available repositories and connects to the first one.\n\n\nOpenCMIS (Java)\n\n\nSessionFactory factory = SessionFactoryImpl.newInstance();\nList\nRepository\n repositories = factory.getRepositories(parameters);\nSession session = repositories.get(0).createSession();\n\n\n\n\nPortCMIS (C#)\n\n\nSessionFactory factory = SessionFactory.NewInstance();\nISession session = factory.GetRepositories(parameters)[0].CreateSession();",
+ "text": "Creating a Session\n\n\nA session is the entry point to the content repository. Creating a session is the first thing an application has to do to interact with the repository.\n\n\nA few details such as the URL of the repository endpoint, the user name and the user\ns credentials are necessary to establish a session.\nBeyond that more details might be required, depending on the repository and the environment. Those details are controlled by \nsession parameters\n.\n\n\nA complete list of all session parameters for OpenCMIS can be found in the \nJavaDoc\n. For PortCMIS, please refer to the help file that is contained in the binary packages.\n\n\nSession objects can be expensive to create and should be kept as long as possible. Most OpenCMIS and PortCMIS objects, including session objects, are \nthread safe\n. They can and should be reused across threads to reduce the number of calls to the repository.\n\n\nA session object manages a \nset of caches\n that keeps o
bject metadata (properties values, Allowable Actions, ACL, etc.), paths information, and type metadata in memory. There is no content cache.\n\n\nThere is \nno fixed lifetime\n of a session object. It can be used for a long time. Only if the repository requires cookies that expire it may have to be recreated from time to time.\nThere is \nno need to close a session\n or clean its caches if you don\nt need it anymore. Just let the GC deal with it.\n\n\n\n\nWhich binding should I use?\n\n\nThe \nBrowser Binding\n is the fastest binding and is recommended for \nCMIS 1.1\n repositories.\n\nChoose the \nAtomPub Binding\n for \nCMIS 1.0\n repositories.\n\nThe Web Services Binding is the last resort and should be avoided. It is the slowest binding and is the most complex to set up.\n\n\n\n\nAtomPub Binding\n\n\nCMIS 1.0\n\n\nCMIS 1.1\n\n\nOpenCMIS (Java)\n\n\n// default factory implementation\nSessionFactory factory = SessionFactoryImpl.newInstance();\nMap\nString, String\n parameters = ne
w HashMap\nString, String\n();\n\n// user credentials\nparameters.put(SessionParameter.USER, \nOtto\n);\nparameters.put(SessionParameter.PASSWORD, \n****\n);\n\n// connection settings\nparameters.put(SessionParameter.ATOMPUB_URL, \nhttp://\nhost\n:\nport\n/cmis/atom\n);\nparameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());\nparameters.put(SessionParameter.REPOSITORY_ID, \nmyRepository\n);\n\n// create session\nSession session = factory.createSession(parameters);\n\n\n\n\nPortCMIS (C#)\n\n\n// default factory implementation\nSessionFactory factory = SessionFactory.NewInstance();\nDictionary\nstring, string\n parameters = new Dictionary\nstring, string\n();\n\n// user credentials\nparameters[SessionParameter.User] = \nOtto\n;\nparameters[SessionParameter.Password] = \n****\n;\n\n// connection settings\nparameters[SessionParameter.AtomPubUrl] = \nhttp://\nhost\n:\nport\n/cmis/atom\n;\nparameters[SessionParameter.BindingType] = BindingType.AtomPub;\nparameters[Ses
sionParameter.RepositoryId] = \nmyRepository\n;\n\n// create session\nISession session = factory.CreateSession(parameters);\n\n\n\n\nBrowser Binding\n\n\nCMIS 1.1\n\n\nOpenCMIS (Java)\n\n\n// default factory implementation\nSessionFactory factory = SessionFactoryImpl.newInstance();\nMap\nString, String\n parameters = new HashMap\nString, String\n();\n\n// user credentials\nparameters.put(SessionParameter.USER, \nOtto\n);\nparameters.put(SessionParameter.PASSWORD, \n****\n);\n\n// connection settings\nparameters.put(SessionParameter.BROWSER_URL, \nhttp://\nhost\n:\nport\n/cmis/browser\n);\nparameters.put(SessionParameter.BINDING_TYPE, BindingType.BROWSER.value());\nparameters.put(SessionParameter.REPOSITORY_ID, \nmyRepository\n);\n\n// create session\nSession session = factory.createSession(parameters);\n\n\n\n\nPortCMIS (C#)\n\n\n// default factory implementation\nSessionFactory factory = SessionFactory.NewInstance();\nDictionary\nstring, string\n parameters = new Dictionary\nstring
, string\n();\n\n// user credentials\nparameters[SessionParameter.User] = \nOtto\n;\nparameters[SessionParameter.Password] = \n****\n;\n\n// connection settings\nparameters[SessionParameter.BrowserUrl] = \nhttp://\nhost\n:\nport\n/cmis/browser\n;\nparameters[SessionParameter.BindingType] = BindingType.Browser;\nparameters[SessionParameter.RepositoryId] = \nmyRepository\n;\n\n// create session\nISession session = factory.CreateSession(parameters);\n\n\n\n\nWeb Services Binding\n\n\nCMIS 1.0\n\n\nCMIS 1.1\n\n\nPortCMIS does not support the Web Service binding.\n\n\nOpenCMIS (Java)\n\n\n// default factory implementation\nSessionFactory factory = SessionFactoryImpl.newInstance();\nMap\nString, String\n parameters = new HashMap\nString, String\n();\n\n// user credentials\nparameters.put(SessionParameter.USER, \nOtto\n);\nparameters.put(SessionParameter.PASSWORD, \n****\n);\n\n// connection settings\nparameters.put(SessionParameter.BINDING_TYPE, BindingType.WEBSERVICES.value());\nparamete
rs.put(SessionParameter.WEBSERVICES_ACL_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/ACLService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_DISCOVERY_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/DiscoveryService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_MULTIFILING_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/MultiFilingService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_NAVIGATION_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/NavigationService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_OBJECT_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/ObjectService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_POLICY_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/PolicyService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_RELATIONSHIP_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/RelationshipService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_REPOSITORY_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/serv
ices/RepositoryService?wsdl\n);\nparameters.put(SessionParameter.WEBSERVICES_VERSIONING_SERVICE, \nhttp://\nhost\n:\nport\n/cmis/services/VersioningService?wsdl\n);\nparameters.put(SessionParameter.REPOSITORY_ID, \nmyRepository\n);\n\n// create session\nSession session = factory.createSession(parameters);\n\n\n\n\nLocal Binding\n\n\nCMIS 1.0\n\n\nCMIS 1.1\n\n\nThe local binding is specific to OpenCMIS. It lets an OpenCMIS client connect to an OpenCMIS server in the same JVM.\nThere is no PortCMIS equivalent.\n\n\nOpenCMIS (Java)\n\n\n// default factory implementation\nSessionFactory factory = SessionFactoryImpl.newInstance();\nMap\nString, String\n parameters = new HashMap\nString, String\n();\n\n// user credentials\nparameters.put(SessionParameter.USER, \nOtto\n);\nparameters.put(SessionParameter.PASSWORD, \n****\n);\n\n// connection settings\nparameters.put(SessionParameter.BINDING_TYPE, BindingType.LOCAL.value());\nparameters.put(SessionParameter.LOCAL_FACTORY, \nmy.local.factory
\n);\nparameters.put(SessionParameter.REPOSITORY_ID, \nmyRepository\n);\n\n// create session\nSession session = factory.createSession(parameters);\n\n\n\n\nConnecting to the First Repository\n\n\nSome CMIS endpoints only provide one repository. In this case it is not necessary to provide its repository ID.\nThe following code snippet gets the list of all available repositories and connects to the first one.\n\n\nOpenCMIS (Java)\n\n\nSessionFactory factory = SessionFactoryImpl.newInstance();\nList\nRepository\n repositories = factory.getRepositories(parameters);\nSession session = repositories.get(0).createSession();\n\n\n\n\nPortCMIS (C#)\n\n\nSessionFactory factory = SessionFactory.NewInstance();\nISession session = factory.GetRepositories(parameters)[0].CreateSession();",
"title": "Creating a Session"
},
{
"location": "/samples/create-session/index.html#creating-a-session",
- "text": "A session is the entry point to the content repository. Creating a session is the first thing an application has to do to interact with the repository. A few details such as the URL of the repository endpoint, the user name and the user s credentials are necessary to establish a session.\nBeyond that more details might be required, depending on the repository and the environment. Those details are controlled by session parameters. A complete list of all session parameters for OpenCMIS can be found in the JavaDoc. For PortCMIS, please refer to the help file that is contained in the binary packages. Which binding should I use? The Browser Binding is the fastest binding and is recommended for CMIS 1.1 repositories. \nChoose the AtomPub Binding for CMIS 1.0 repositories. \nThe Web Services Binding is the last resort and should be avoided. It is the slowest binding and is the most complex to set up.",
+ "text": "A session is the entry point to the content repository. Creating a session is the first thing an application has to do to interact with the repository. A few details such as the URL of the repository endpoint, the user name and the user s credentials are necessary to establish a session.\nBeyond that more details might be required, depending on the repository and the environment. Those details are controlled by session parameters . A complete list of all session parameters for OpenCMIS can be found in the JavaDoc . For PortCMIS, please refer to the help file that is contained in the binary packages. Session objects can be expensive to create and should be kept as long as possible. Most OpenCMIS and PortCMIS objects, including session objects, are thread safe . They can and should be reused across threads to reduce the number of calls to the repository. A session object manages a set of caches that keeps object metadata (properties values, Allowable Acti
ons, ACL, etc.), paths information, and type metadata in memory. There is no content cache. There is no fixed lifetime of a session object. It can be used for a long time. Only if the repository requires cookies that expire it may have to be recreated from time to time.\nThere is no need to close a session or clean its caches if you don t need it anymore. Just let the GC deal with it. Which binding should I use? The Browser Binding is the fastest binding and is recommended for CMIS 1.1 repositories. \nChoose the AtomPub Binding for CMIS 1.0 repositories. \nThe Web Services Binding is the last resort and should be avoided. It is the slowest binding and is the most complex to set up.",
"title": "Creating a Session"
},
{
@@ -736,6 +736,41 @@
"title": "Using a Query Statement"
},
{
+ "location": "/samples/query-examples/index.html",
+ "text": "Common Query Examples\n\n\nCMIS 1.0\n\n\nCMIS 1.1\n\n\nA collection of typical query use cases.\n\n\nSimple Query\n\n\nFind all documents in the repository that are named \nhello world\n.\n\n\nSELECT * \nFROM cmis:document\nWHERE cmis:name = 'hello world'\n\n\n\n\nComplex query with JOINS\n\n\nJoin types \nPOLICY\n with \nCLAIM\n on property \nPOLICY_NUM\n and \nRISK\n with \nPOLICY\n on \ncmis:objectId\n.\n\n\n(Note: Not all repositories support JOIN)\n\n\nSELECT Y.CLAIM_NUM, X.PROPERTY_ADDRESS, Y.DAMAGE_ESTIMATES, Z.BAND\nFROM (POLICY AS X JOIN CLAIMS AS Y ON X.POLICY_NUM = Y.POLICY_NUM)\n JOIN RISK AS Z ON X.cmis:objectId = Z.cmis:objectId\nWHERE (100000 = ANY Y.DAMAGE_ESTIMATES) AND Z.BAND \n 3\n\n\n\n\nText search query\n\n\nFind all documents that have at least one of the words \npresident\n, \nchancellor\n or \ndirectory\n in the content. Depending on the repository and the repository configuration, also property values are included.\n\n\nSELE
CT cmis:objectId, cmis:name, SCORE() AS score\nFROM cmis:document\nWHERE CONTAINS('president chancellor directory')\n\n\n\n\nQuery for multi-value property\n\n\nFind all objects of type \nmy:cars\n that have a radio or airbag as feature (\nmy:features\n is a multi-value property).\n\n\nSELECT cmis:objectId, cmis:name, my:features\nFROM my:cars\nWHERE ANY my:features IN ('radio', 'airbag')\n\n\n\n\nQuery for secondary types\n\n\nCMIS 1.1\n\n\nFind all documents that have a destruction date of 2015-12-31 (midnight UTC) in the secondary type \ncmis:rm_destructionRetention\n.\n\n\n(Note: Repository does not have to support JOIN)\n\n\nSELECT cmis:objectId, cmis:name\nFROM cmis:document JOIN cmis:rm_destructionRetention\n ON cmis:objectId = cmis:rm_destructionRetention:objectId\nWHERE cmis:rm_destructionDate = TIMESTAMP '2015-12-31T00:00:00.000Z'",
+ "title": "Query Examples"
+ },
+ {
+ "location": "/samples/query-examples/index.html#common-query-examples",
+ "text": "CMIS 1.0 CMIS 1.1 A collection of typical query use cases.",
+ "title": "Common Query Examples"
+ },
+ {
+ "location": "/samples/query-examples/index.html#simple-query",
+ "text": "Find all documents in the repository that are named hello world . SELECT * \nFROM cmis:document\nWHERE cmis:name = 'hello world'",
+ "title": "Simple Query"
+ },
+ {
+ "location": "/samples/query-examples/index.html#complex-query-with-joins",
+ "text": "Join types POLICY with CLAIM on property POLICY_NUM and RISK with POLICY on cmis:objectId . (Note: Not all repositories support JOIN) SELECT Y.CLAIM_NUM, X.PROPERTY_ADDRESS, Y.DAMAGE_ESTIMATES, Z.BAND\nFROM (POLICY AS X JOIN CLAIMS AS Y ON X.POLICY_NUM = Y.POLICY_NUM)\n JOIN RISK AS Z ON X.cmis:objectId = Z.cmis:objectId\nWHERE (100000 = ANY Y.DAMAGE_ESTIMATES) AND Z.BAND 3",
+ "title": "Complex query with JOINS"
+ },
+ {
+ "location": "/samples/query-examples/index.html#text-search-query",
+ "text": "Find all documents that have at least one of the words president , chancellor or directory in the content. Depending on the repository and the repository configuration, also property values are included. SELECT cmis:objectId, cmis:name, SCORE() AS score\nFROM cmis:document\nWHERE CONTAINS('president chancellor directory')",
+ "title": "Text search query"
+ },
+ {
+ "location": "/samples/query-examples/index.html#query-for-multi-value-property",
+ "text": "Find all objects of type my:cars that have a radio or airbag as feature ( my:features is a multi-value property). SELECT cmis:objectId, cmis:name, my:features\nFROM my:cars\nWHERE ANY my:features IN ('radio', 'airbag')",
+ "title": "Query for multi-value property"
+ },
+ {
+ "location": "/samples/query-examples/index.html#query-for-secondary-types",
+ "text": "CMIS 1.1 Find all documents that have a destruction date of 2015-12-31 (midnight UTC) in the secondary type cmis:rm_destructionRetention . (Note: Repository does not have to support JOIN) SELECT cmis:objectId, cmis:name\nFROM cmis:document JOIN cmis:rm_destructionRetention\n ON cmis:objectId = cmis:rm_destructionRetention:objectId\nWHERE cmis:rm_destructionDate = TIMESTAMP '2015-12-31T00:00:00.000Z'",
+ "title": "Query for secondary types"
+ },
+ {
"location": "/samples/changelog/index.html",
"text": "Retrieving the Change Log\n\n\nCMIS 1.0\n\n\nCMIS 1.1\n\n\nSpec 2.1.15\n\n\nOpenCMIS (Java)\n\n\n// get the first 1000 change events\nChangeEvents events = session.getContentChanges(null, true, 1000);\n\nif (events != null \n events.getChangeEvents() != null) {\n for (ChangeEvent event : events.getChangeEvents()) {\n String objectId = event.getObjectId();\n if (event.getChangeType() == ChangeType.DELETED) {\n // handle delete\n } else {\n // get object and handle create, update, and security events\n }\n }\n}",
"title": "Retrieving the Change Log"
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/access-control/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/access-control/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/access-control/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Managing Access Control - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -346,4 +352,4 @@
</body>
</html>
-<!-- last update: 2016-08-05 12:35:11.187503 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:55 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/allowable-actions/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/allowable-actions/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/allowable-actions/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Checking Allowable Actions - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -356,4 +362,4 @@ if (cmisObject.HasAllowableAction(PortCM
</body>
</html>
-<!-- last update: 2016-08-05 12:35:11.173607 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:54 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/capabilities/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/capabilities/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/capabilities/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Getting Repository Capabilities - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -383,4 +389,4 @@ boolean supportsUnfiling = Boolean.TRUE.
</body>
</html>
-<!-- last update: 2016-08-05 12:35:10.740466 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:43 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/changelog/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/changelog/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/changelog/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Retrieving the Change Log - Apache Chemistry Samples</title>
@@ -199,6 +199,12 @@
+<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
<li class="active">
<a href="index.html">Retrieving the Change Log</a>
</li>
@@ -252,7 +258,7 @@
</li>
<li >
- <a rel="next" href="../queries/index.html">
+ <a rel="next" href="../query-examples/index.html">
<i class="fa fa-arrow-left" aria-hidden="true"></i> Previous
</a>
</li>
@@ -352,4 +358,4 @@ if (events != null && events.get
</body>
</html>
-<!-- last update: 2016-08-05 12:35:11.157522 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:53 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/content/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/content/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/content/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Working with Content - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -581,4 +587,4 @@ IContentStream cs2 = rendition.GetConten
</body>
</html>
-<!-- last update: 2016-08-05 12:35:10.970377 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:48 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/create-objects/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/create-objects/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/create-objects/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Creating Objects - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -566,4 +572,4 @@ ObjectId newFolderId = session.createFol
</body>
</html>
-<!-- last update: 2016-08-05 12:35:10.862163 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:45 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/create-session/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/create-session/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/create-session/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Creating a Session - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -302,8 +308,12 @@
<h1 id="creating-a-session">Creating a Session</h1>
<p>A session is the entry point to the content repository. Creating a session is the first thing an application has to do to interact with the repository.</p>
<p>A few details such as the URL of the repository endpoint, the user name and the user’s credentials are necessary to establish a session.
-Beyond that more details might be required, depending on the repository and the environment. Those details are controlled by session parameters.</p>
-<p>A complete list of all session parameters for OpenCMIS can be found in the JavaDoc. For PortCMIS, please refer to the help file that is contained in the binary packages.</p>
+Beyond that more details might be required, depending on the repository and the environment. Those details are controlled by <strong>session parameters</strong>.</p>
+<p>A complete list of all session parameters for OpenCMIS can be found in the <a href="https://chemistry.apache.org/java/javadoc/org/apache/chemistry/opencmis/commons/SessionParameter.html">JavaDoc</a>. For PortCMIS, please refer to the help file that is contained in the binary packages.</p>
+<p>Session objects can be expensive to create and should be kept as long as possible. Most OpenCMIS and PortCMIS objects, including session objects, are <strong>thread safe</strong>. They can and should be reused across threads to reduce the number of calls to the repository.</p>
+<p>A session object manages a <strong>set of caches</strong> that keeps object metadata (properties values, Allowable Actions, ACL, etc.), paths information, and type metadata in memory. There is no content cache.</p>
+<p>There is <strong>no fixed lifetime</strong> of a session object. It can be used for a long time. Only if the repository requires cookies that expire it may have to be recreated from time to time.
+There is <strong>no need to close a session</strong> or clean its caches if you don’t need it anymore. Just let the GC deal with it.</p>
<div class="admonition note">
<p class="admonition-title">Which binding should I use?</p>
<p>The <strong>Browser Binding</strong> is the fastest binding and is recommended for <strong>CMIS 1.1</strong> repositories.<br />
@@ -502,4 +512,4 @@ ISession session = factory.GetRepositori
</body>
</html>
-<!-- last update: 2016-08-05 12:35:10.719226 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:42 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/delete-objects/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/delete-objects/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/delete-objects/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Deleting Objects - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -403,4 +409,4 @@ folder.DeleteTree(true, UnfileObject.Del
</body>
</html>
-<!-- last update: 2016-08-05 12:35:10.929551 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:47 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/exceptions/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/exceptions/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/exceptions/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>CMIS Exceptions - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -429,4 +435,4 @@ is not allowed for documents of that typ
</body>
</html>
-<!-- last update: 2016-08-05 12:35:10.791938 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:44 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/extensions/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/extensions/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/extensions/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Getting Extensions - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -372,4 +378,4 @@ if (extensions != null) {
</body>
</html>
-<!-- last update: 2016-08-05 12:35:11.125794 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:51 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/lists/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/lists/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/lists/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Working with Lists, Paging and Skipping - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -383,4 +389,4 @@ IItemEnumerable<Something> skipAnd
</body>
</html>
-<!-- last update: 2016-08-05 12:35:11.110707 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:51 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/move-objects/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/move-objects/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/move-objects/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Moving Object - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -393,4 +399,4 @@ doc.RemoveFromFolder(folder);
</body>
</html>
-<!-- last update: 2016-08-05 12:35:10.907502 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:47 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/operation-context/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/operation-context/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/operation-context/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Understanding the Operation Context - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -530,4 +536,4 @@ IList<IDocument> versions = doc.Ge
</body>
</html>
-<!-- last update: 2016-08-05 12:35:11.090368 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:50 -->
\ No newline at end of file
Modified: websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/properties/index.html
==============================================================================
--- websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/properties/index.html (original)
+++ websites/staging/chemistry/trunk/content/docs/cmis-samples/samples/properties/index.html Fri Dec 2 20:05:10 2016
@@ -23,7 +23,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="author" content="Apache Chemistry">
+ <meta name="author" content="Apache Chemistry">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Working with Properties and Secondary Types - Apache Chemistry Samples</title>
@@ -200,6 +200,12 @@
<li >
+ <a href="../query-examples/index.html">Query Examples</a>
+</li>
+
+
+
+<li >
<a href="../changelog/index.html">Retrieving the Change Log</a>
</li>
@@ -671,4 +677,4 @@ cmisObject.UpdateProperties(properties);
</body>
</html>
-<!-- last update: 2016-08-05 12:35:11.047021 -->
\ No newline at end of file
+<!-- last update: 2016-12-02 19:20:49 -->
\ No newline at end of file