Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
74:cms_sharepoint [2019/09/25 13:43] – created tssr74:cms_sharepoint [2019/10/16 14:04] – [Sharepoint] tssr
Line 1: Line 1:
-<h3>Sharepoint</h3>+[[:74:cms_configuration|Back to Common CMS Configuration]]
  
-<div class="level3">&nbsp;</div>+==== Sharepoint ====
  
-<h4>Example Configuration</h4>+=== Example Configuration ===
  
-<div class="level4">\\ +<code xml> 
-<pre class="code xml">\\ +<cms-type name="sharepoint"> 
-&lt; cms-type name=&quot;sharepoint&quot;&gt;\\ +    <!-- Global Properties --> 
-  &lt; !-- Global Properties --&gt;\\ +    <cms-property name="stages.server.urlvalue="https://stages.mycompany:8080/> 
-  &lt; cms-property name=&quot;stages.server.url&quot; value=&quot;https://stages.mycompany:8080&quot; /&gt;\\ +    <cms-property name="http.authentication.hostnamevalue="nonempty/> 
-  &lt; cms-property name=&quot;http.authentication.hostname&quot; value=&quot;nonempty&quot; /&gt;\\ +    <cms-property name="http.max.connectionsvalue="100/> 
-  &lt; cms-property name=&quot;http.max.connections&quot; value=&quot;100&quot; /&gt;\\ +    <cms-property name="http.connection.timeoutvalue="10000/> 
-  &lt; cms-property name=&quot;http.connection.timeout&quot; value=&quot;10000&quot; /&gt;\\ +    <cms-property name="http.socket.timeoutvalue="90000/> 
-  &lt; cms-property name=&quot;http.socket.timeout&quot; value=&quot;90000&quot; /&gt;\\ +    <cms-property name="http.connection.pool.max.idlevalue="60000/> 
-  &lt; cms-property name=&quot;http.connection.pool.max.idle&quot; value=&quot;60000&quot; /&gt;\\ +    <cms-property name="http.ssl.allow.allvalue="true/> 
-  &lt; cms-property name=&quot;http.ssl.allow.all&quot; value=&quot;true&quot; /&gt;\\ +    <cms-host ident="sharepoint.example.identname="https://sharepoint.example.net:1234displayName="Sharepoint Example Server"> 
-&nbsp;\\ +        <!-- Host Properties --> 
-  &lt; cms-host ident=&quot;sharepoint.example.ident&quot; name=&quot;https://sharepoint.example.net:1234&quot; displayName=&quot;Sharepoint Example Server&quot;&gt;\\ +        <cms-property name="state.attribute.namevalue="_Status/> 
-      &lt; !-- Host Properties --&gt;\\ +        <cms-property name="version.date.formatvalue="dd.MM.yyyy HH:mm/> 
-      &lt; cms-property name=&quot;state.attribute.name&quot; value=&quot;_Status&quot; /&gt;\\ +        <cms-property name="document.content.type.namevalue="Document/> 
-      &lt; cms-property name=&quot;version.date.format&quot; value=&quot;dd.MM.yyyy HH:mm&quot; /&gt;\\ +        <cms-property name="link.content.type.namevalue="Link to a document/> 
-      &lt; cms-property name=&quot;document.content.type.name&quot; value=&quot;Document&quot; /&gt;\\ +        <cms-property name="uservalue="sharepoint_username/> 
-      &lt; cms-property name=&quot;link.content.type.name&quot; value=&quot;Link to a document&quot; /&gt;\\ +        <cms-property name="passwordvalue="sharepoint_username/> 
-      &lt; cms-property name=&quot;user&quot; value=&quot;sharepoint_username&quot; /&gt;\\ +    </cms-host> 
-      &lt; cms-property name=&quot;password&quot; value=&quot;sharepoint_username&quot; /&gt;\\ +</cms-type
-  &lt; /cms-host&gt;\\ +</code>
-&lt; /cms-type&gt;+
  
-</pre>+=== Global Properties ===
  
-<p>&nbsp;</p>\\ +These configuration properties affect the behavior of every integrated SharePoint server.
-</div>+
  
-<h4>Global Properties</h4>+** * ** ''Required''\\ 
 +Properties marked with ** * ** are required for the adapter to work.
  
-<div class="level4">\\ +** # ** ''Required but can also be set in web-application''\\ 
-<p>These configuration properties affect the behavior of every integrated SharePoint server. The configuration of them needs to be done in the <b>&lt;cms-type&gt;</b> section of config.xml.</p>+Properties marked with ** # ** are required but can also be set in the //File Management// section in the Stages web-application as well. The value entered in the web-application overrides the one from the config.xml.
  
-<p><b>stages.server.url </b> (required)</p>+** + ** ''Required but with default''\\ 
 +Properties marked with ** + ** are required, but there is a default valueThis values can be overridden by configuring it in the config.xml.
  
-<ul>\\ +http.connection.context.timeout ** + **
- <li class="level1">Default Value: N/A</li>\\ +
- <li class="level1">Description: The URL under which Stages is accessible.</li>\\ +
-</ul>+
  
-<p><b>http.authentication.hostname </b> (required for NTLM authentication)</p>+  * __Default Value__: 60000 
 +  * __Description__: The maximum period of inactivity (in milliseconds) before an authentication context is considered obsolete and will be removed by the resource monitor.
  
-<ul>\\ +http.connection.pool.max.idle ** + **
- <li class="level1">Default Value: N/A</li>\\ +
- <li class="level1">Description: The host name of the server that runs Stages and is allowed to authenticate via NTLM against the SharePoint server.</li>\\ +
-</ul>+
  
-<p><b>upload.service</b></p>+  * __Default Value__: 60000 
 +  * __Description__: The maximum period of inactivity (in milliseconds) until a server connection will be closed automatically. For technical reasons the sum of http.connection.pool.max.idle and http.connection.resource.check.interval has to be lower than the keep-alive timeout of SharePoint's IIS site (default: 120s).
  
-<ul>\\ +http.connection.timeout ** + **
- <li class="level1">Default Value: Copy service</li>\\ +
- <li class="level1">Description: Either CopyService or RPCDefines the interface that is used for uploads to SharePointCopyService is the default setting, the only drawback is that it might create an additional version for the initial checkin depending of the SharePoint setting Checkout required</li>\\ +
-</ul>+
  
-<p><b>initial.checkin.fix</b></p>+  * __Default Value__: 10000 
 +  * __Description__: The timeout in milliseconds until a connection to the server has to be established.
  
-<ul>\\ +http.connection.resource.check.interval ** + **
- <li class="level1">Default Value: true</li>\\ +
- <li class="level1">Description: If CopyService is used for uploads, causes Stages to repeat the initial checkin in case the comment or version are not created correctly in SharePoint.</li>\\ +
-</ul>+
  
-<p><b>http.ssl.allow.all</b></p>+  * __Default Value__: 10000 
 +  * __Description__: The interval (in milliseconds) between two consecutive resource monitor runs which check for idle or expired connections and obsolete authentication contexts.
  
-<ul>\\ +http.socket.timeout ** + **
- <li class="level1">Default Value: false</li>\\ +
- <li class="level1">Description: When set to true, disables any verification checks for certificates in case of SSL-secured HTTPS connectionsIt is recommended to only use this in test environments where no valid certificates exist (e.g. self-signed certificates).</li>\\ +
-</ul>+
  
-<p><b>http.max.connections</b></p>+  * __Default Value__: 90000 
 +  * __Description__: The maximum time of inactivity (in milliseconds) until a server connection is considered dead and will be closed forcefully. This value should be higher than http.connection.pool.max.idle.
  
-<ul>\\ +http.ssl.allow.all ** + **
- <li class="level1">Default Value: 100</li>\\ +
- <li class="level1">Description: The maximum number of simultaneous HTTP connections between Stages and SharePoint.</li>\\ +
-</ul>+
  
-<p><b>http.connection.timeout</b></p>+  * __Default Value__: false 
 +  * __Description__: When set to true, disables any verification checks for certificates in case of SSL-secured HTTPS connectionsIt is recommended to only use this in test environments where no valid certificates exist (e.g. self-signed certificates).
  
-<ul>\\ +http.max.connections ** + **
- <li class="level1">Default Value: 10000</li>\\ +
- <li class="level1">Description: The timeout in milliseconds until a connection to the server has to be established.</li>\\ +
-</ul>+
  
-<p><b>http.socket.timeout</b></p>+  * __Default Value__: 100 
 +  * __Description__: The maximum number of simultaneous HTTP connections between Stages and SharePoint.
  
-<ul>\\ +> http.authentication.hostname
- <li class="level1">Default Value: 90000</li>\\ +
- <li class="level1">Description: The maximum time of inactivity (in milliseconds) until a server connection is considered dead and will be closed forcefully. This value should be higher than http.connection.pool.max.idle.</li>\\ +
-</ul>+
  
-<p><b>http.connection.pool.max.idle</b></p>+  * __Description__: The host name of the server that runs Stages and is allowed to authenticate via ntlm against the SharePoint server.
  
-<ul>\\ +cms.browser.activated ** + **
- <li class="level1">Default Value: 60000</li>\\ +
- <li class="level1">Description: The maximum period of inactivity (in milliseconds) until a server connection will be closed automaticallyFor technical reasons the sum of http.connection.pool.max.idle and http.connection.resource.check.interval has to be lower than the keep-alive timeout of SharePoint&#39;s IIS site (default: 120s).</li>\\ +
-</ul>+
  
-<p><b>http.connection.context.timeout</b></p>+  * __Default Value__: true 
 +  * __Description__: If set to false, it is  not possible to browse through the files in the Stages web-application.
  
-<ul>\\ +upload.service ** + **
- <li class="level1">Default Value: 60000</li>\\ +
- <li class="level1">Description: The maximum period of inactivity (in milliseconds) before an authentication context is considered obsolete and will be removed by the resource monitor.</li>\\ +
-</ul>+
  
-<p><b>http.connection.resource.check.interval</b></p>+  * __Default Value__: CopyService 
 +  * __Description__: Either CopyService or RPCDefines the interface that is used for uploads to SharePointCopyService is the default setting, the only drawback is that it might create an additional version for the initial checkin depending of the SharePoint setting Checkout required
  
-<ul>\\ +=== Host Properties === 
- <li class="level1">Default Value: 10000</li>\\ +These configuration properties affect the behavior of one SharePoint Online server.
- <li class="level1">Description: The interval (in milliseconds) between two consecutive resource monitor runs which check for idle or expired connections and obsolete authentication contexts.</li>\\ +
-</ul>\\ +
-</div>+
  
-<h4>Host Properties</h4>+** * ** ''Required''\\ 
 +Properties marked with ** * ** are required for the adapter to work.
  
-<div class="level4">\\ +** # ** ''Required but can also be set in web-application''\\ 
-<p><b>version.date.format </b></p>+Properties marked with ** # ** are required but can also be set in the //File Management// section in the Stages web-application as well. The value entered in the web-application overrides the one from the config.xml.
  
-<ul>\\ +** + ** ''Required but with default''\\ 
- <li class="level1">Default Value: N/A</li>\\ +Properties marked with ** + ** are required, but there is a default value. This values can be overridden by configuring it in the config.xml.
- <li class="level1">Description: The localized date format that SharePoint is using.</li>\\ +
-</ul>+
  
-<p><b>raw.version.date.format </b> (required)</p>+user ** # **
  
-<ul>\\ +  * __Description__You may enter the SharePoint username for the Stages system account here instead of the corresponding field Username in the cms profile. If both values exist, the username from the cms profile is preferred.
- <li class="level1">Default Valueyyyy-MM-dd&#39;T&#39;HH:mm:ss&#39;Z&#39;</li>\\ +
- <li class="level1">Description: The date format that SharePoint is using internally.</li>\\ +
-</ul>+
  
-<p><b>document.content.type.name </b> (required if Sharepoint Content Types are enabled)</p>+password ** # **
  
-<ul>\\ +  * __Description__You may enter the SharePoint password for the Stages system account here instead of the corresponding field Password in the cms profileIf both values exist, the password from the cms profile is preferred.
- <li class="level1">Default ValueDocument</li>\\ +
- <li class="level1">Description: The configurable name of the content type &quot;Document&quot;The default value corresponds with the default name in english versions of SharePoint.</li>\\ +
-</ul>+
  
-<p><b>link.content.type.name </b> (required if Sharepoint Content Types enabled)</p>+domain ** # **
  
-<ul>\\ +  * __Description__You may enter the SharePoint domain for the Stages system account here instead of the corresponding field Default domain in the cms profileIf both values exist, the domain from the cms profile is preferred.
- <li class="level1">Default ValueLink to a document</li>\\ +
- <li class="level1">Description: The configurable name of the content type &quot;Link to a document&quot;The default value corresponds with the default name in english versions of SharePoint.</li>\\ +
-</ul>+
  
-<p><b>user</b></p>+document.content.type.name ** + **
  
-<ul>\\ +  * __Default Value__Document 
- <li class="level1">Default ValueN/A</li>\\ +  * __Description__The configurable name of the content type ''Document''The default value corresponds with the default name in english versions of SharePoint.
- <li class="level1">DescriptionYou may enter the SharePoint username for the Stages system account here instead of the corresponding field Username in the CMS profileIf both values exist, the username from the CMS profile is preferred.</li>\\ +
-</ul>+
  
-<p><b>password</b></p>+link.content.type.name ** + **
  
-<ul>\\ +  * __Default Value__Link to a document 
- <li class="level1">Default ValueN/A</li>\\ +  * __Description__The configurable name of the content type ''Link to a document''The default value corresponds with the default name in english versions of SharePoint.
- <li class="level1">DescriptionYou may enter the SharePoint password for the Stages system account here instead of the corresponding field Password in the CMS profileIf both values exist, the password from the CMS profile is preferred.</li>\\ +
-</ul>+
  
-<p><b>domain</b></p>+state.attribute.name
  
-<ul>\\ +  * Description: The optional SharePoint column to write the Stages state to.
- <li class="level1">Default Value: N/A</li>\\ +
- <li class="level1">Description: You may enter the SharePoint default domain for the Stages system account here instead of the corresponding field Default domain in the CMS profile. If both values exist, the default domain from the CMS profile is preferred.</li>\\ +
-</ul>+
  
-<p><b>state.attribute.name</b> (required)</p>+label.attribute.name
  
-<ul>\\ +  * Description: The optional SharePoint column to read Stages labels from.
- <li class="level1">Default Value: N/A</li>\\ +
- <li class="level1">Description: The optional SharePoint column to write the Stages state to.</li>\\ +
-</ul>+
  
-<p><b>label.attribute.name</b></p>+> label.attribute.delimiter ** + **
  
-<ul>\\ +  * __Default Value__: '','' 
- <li class="level1">Default ValueN/A</li>\\ +  * __Description__: A delimiting character or string that separates single labels.
- <li class="level1">Description: The optional SharePoint column to read Stages labels from.</li>\\ +
-</ul>+
  
-<p><b>label.attribute.delimiter</b></p>+raw.version.date.format ** + **
  
-<ul>\\ +  * __Default Value__''yyyy-MM-dd'T'HH:mm:ss'Z' '' 
- <li class="level1">Default ValueN/A</li>\\ +  * __Description__The date format that SharePoint is using internally.
- <li class="level1">DescriptionA delimiting character or string that separates single labels.</li>\\ +
-</ul>+
  
-<p><b>element.url.attribute.name</b></p>+version.date.format
  
-<ul>\\ +  * __Description__: The localized date format that SharePoint is using.
- <li class="level1">Default Value: N/A</li>\\ +
- <li class="level1">Description: The optional SharePoint column where external links to Stages may be stored as a back-reference</li>\\ +
-</ul>+
  
-<p><b>major.versions</b></p>+> major.versions ** + **
  
-<ul>\\ +  * __Default Value__: true 
- <li class="level1">Default Value: true</li>\\ +  * __Description__: This optional property can be used to specify whether major versions (e.g 2.0) or minor versions (e.g. 0.2) are to be created on checkin. By default major versions are created (major.versions=true). Set major.versions=false if minor versions shall be created instead. A more fine-grained configuration which version type is created on which state change can be defined for document lifecycles in the metamodel.
- <li class="level1">Description: This optional property can be used to specify whether major versions (e.g 2.0) or minor versions (e.g. 0.2) are to be created on checkin. By default major versions are created (major.versions=true). Set major.versions=false if minor versions shall be created instead. A more fine-grained configuration which version type is created on which state change can be defined for document lifecycles in the metamodel.</li>\\ +
-</ul>\\ +
-</div>+
  
 +> page.size ** + **
  
 +  * __Default Value__: 1000
 +  * __Description__: Item count of one page received from the Sharepoint server.
 +
 +> page.url.override
 +
 +  * __Description__: N/A
 +
 +> use.system.account.for.download ** + **
 +
 +  * __Default Value__: false
 +  * __Description__: When set to true, files will be downloaded from stages using the system account.
 +
 +
 +=== Currently not used ===
 +> stages.server.url
 +
 +  * __Description__: The url to this Stages server.
 +
 +> initial.checkin.fix ** + **
 +
 +  * __Default Value__: true
 +  * __Description__: If CopyService is used for uploads, causes Stages to repeat the initial checkin in case the comment or version are not created correctly in SharePoint.
 +
 +> element.url.attribute.name
 +
 +  * __Description__: The optional SharePoint column where external links to Stages may be stored as a back-reference
 +
 +> validateFilename
 +
 +  * <nowiki>^[^~\"#%&*:<>?/\\\\{|}]+$</nowiki>
 +
 +> validatePath
 +
 +  * <nowiki>^([^~\"#%&*:<>?/\\\\{|}.]|[^~\"#%&*:<>?/\\\\{|}.][^~\"#%&*:<>?/\\\\{|}]*[^~\"#%&*:<>?/\\\\{|}.])?([\\\\/]([^~\"#%&*:<>?/\\\\{|}.]|[^~\"#%&*:<>?/\\\\{|}.][^~\"#%&*:<>?/\\\\{|}]*[^~\"#%&*:<>?/\\\\{|}.]))*[\\\\/]?$</nowiki>