Differences

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

Link to this comparison view

Next revision
Previous revision
74:cms_sharepoint [2019/09/25 13:43] – created tssr74:cms_sharepoint [2024/02/15 00:00] (current) – external edit 127.0.0.1
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-host ident="sharepoint.example.identname="https://sharepoint.example.net:1234displayName="Sharepoint Example Server"> 
-  &lt; cms-property name=&quot;stages.server.url&quot; value=&quot;https://stages.mycompany:8080&quot; /&gt;\\ +        <!-- Host Properties --> 
-  &lt; cms-property name=&quot;http.authentication.hostname&quot; value=&quot;nonempty&quot; /&gt;\\ +        <cms-property name="version.date.formatvalue="dd.MM.yyyy HH:mm/> 
-  &lt; cms-property name=&quot;http.max.connections&quot; value=&quot;100&quot; /&gt;\\ +        <cms-property name="uservalue="sharepoint_username/> 
-  &lt; cms-property name=&quot;http.connection.timeout&quot; value=&quot;10000&quot; /&gt;\\ +        <cms-property name="passwordvalue="sharepoint_password" /> 
-  &lt; cms-property name=&quot;http.socket.timeout&quot; value=&quot;90000&quot; /&gt;\\ +    </cms-host> 
-  &lt; cms-property name=&quot;http.connection.pool.max.idle&quot; value=&quot;60000&quot; /&gt;\\ +</cms-type>
-  &lt; cms-property name=&quot;http.ssl.allow.all&quot; value=&quot;true&quot; /&gt;\\ +
-&nbsp;\\ +
-  &lt; cms-host ident=&quot;sharepoint.example.ident&quot; name=&quot;https://sharepoint.example.net:1234&quot; displayName=&quot;Sharepoint Example Server&quot;&gt;\\ +
-      &lt; !-- Host Properties --&gt;\\ +
-      &lt; cms-property name=&quot;state.attribute.name&quot; value=&quot;_Status&quot; /&gt;\\ +
-      &lt; cms-property name=&quot;version.date.format&quot; value=&quot;dd.MM.yyyy HH:mm&quot; /&gt;\\ +
-      &lt; cms-property name=&quot;document.content.type.name&quot; value=&quot;Document&quot; /&gt;\\ +
-      &lt; cms-property name=&quot;link.content.type.name&quot; value=&quot;Link to a document&quot; /&gt;\\ +
-      &lt; cms-property name=&quot;user&quot; value=&quot;sharepoint_username&quot; /&gt;\\ +
-      &lt; cms-property name=&quot;password&quot; value=&quot;sharepoint_username&quot; /&gt;\\ +
-  &lt; /cms-host&gt;\\ +
-&lt; /cms-type&gt;+
  
-</pre>+</code>
  
-<p>&nbsp;</p>\\ +=== Global Properties ===
-</div>+
  
-<h4>Global Properties</h4>+These configuration properties affect the behavior of every integrated SharePoint server.
  
-<div class="level4">\\ +*** ** ''Required'' \\ 
-<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 for the adapter to work.
  
-<p><b>stages.server.url </b> (required)</p>+**# ** ''Required but can also be set in web-application'' \\ 
 +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 URL under which Stages is accessible.</li>\\ +
-</ul>+
  
-<p><b>http.authentication.hostname </b> (required for NTLM authentication)</p>+> http.connection.context.timeout ** + **
  
-<ul>\\ +   * __Default Value__60000 
- <li class="level1">Default ValueN/A</li>\\ +  * __Description__: The maximum period of inactivity (in milliseconds) before an authentication context is considered obsolete and will be removed by the resource monitor.
- <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>+http.connection.pool.max.idle ** + **
  
-<ul>\\ +  * __Default Value__60000 
- <li class="level1">Default ValueCopy service</li>\\ +  * __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's IIS site (default: 120s).
- <li class="level1">DescriptionEither 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>+http.connection.timeout ** + **
  
-<ul>\\ +  * __Default Value__10000 
- <li class="level1">Default Valuetrue</li>\\ +  * __Description__The timeout in milliseconds until a connection to the server has to be established.
- <li class="level1">DescriptionIf 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>+> http.connection.resource.check.interval ** + **
  
-<ul>\\ +  * __Default Value__10000 
- <li class="level1">Default Valuefalse</li>\\ +  * __Description__The interval (in milliseconds) between two consecutive resource monitor runs which check for idle or expired connections and obsolete authentication contexts.
- <li class="level1">DescriptionWhen set to true, disables any verification checks for certificates in case of SSL-secured HTTPS connections. It 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>+> http.socket.timeout ** + **
  
-<ul>\\ +  * __Default Value__90000 
- <li class="level1">Default Value100</li>\\ +  * __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 class="level1">Description: The maximum number of simultaneous HTTP connections between Stages and SharePoint.</li>\\ +
-</ul>+
  
-<p><b>http.connection.timeout</b></p>+> http.ssl.allow.all ** + **
  
-<ul>\\ +  * __Default Value__false 
- <li class="level1">Default Value10000</li>\\ +  * __Description__When set to true, disables any verification checks for certificates in case of SSL-secured HTTPS connections. It is recommended to only use this in test environments where no valid certificates exist (e.g. self-signed certificates).
- <li class="level1">DescriptionThe timeout in milliseconds until a connection to the server has to be established.</li>\\ +
-</ul>+
  
-<p><b>http.socket.timeout</b></p>+> http.max.connections ** + **
  
-<ul>\\ +  * __Default Value__100 
- <li class="level1">Default Value90000</li>\\ +  * __Description__: The maximum number of simultaneous HTTP connections between Stages and SharePoint.
- <li class="level1">Description: The maximum time of inactivity (in milliseconds) until a server connection is considered dead and will be closed forcefullyThis value should be higher than http.connection.pool.max.idle.</li>\\ +
-</ul>+
  
-<p><b>http.connection.pool.max.idle</b></p>+> http.authentication.hostname
  
-<ul>\\ +  * __Description__: The host name of the server that runs Stages and is allowed to authenticate via ntlm against the SharePoint server.
- <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 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&#39;s IIS site (default: 120s).</li>\\ +
-</ul>+
  
-<p><b>http.connection.context.timeout</b></p>+cms.browser.activated ** + **
  
-<ul>\\ +  * __Default Value__true 
- <li class="level1">Default Value60000</li>\\ +  * __Description__If set to false, it is not possible to browse through the files in the Stages web-application.
- <li class="level1">DescriptionThe 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>+upload.service ** + **
  
-<ul>\\ +  * __Default Value__CopyService 
- <li class="level1">Default Value10000</li>\\ +  * __Description__Either CopyService or RPCDefines the interface that is used for uploads to SharePoint. CopyService 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 class="level1">DescriptionThe interval (in milliseconds) between two consecutive resource monitor runs which check for idle or expired connections and obsolete authentication contexts.</li>\\ +=== Host Properties ===
-</ul>\\ +
-</div>+
  
-<h4>Host Properties</h4>+These configuration properties affect the behavior of one SharePoint Online server.
  
-<div class="level4">\\ +*** **  ''Required''  Properties marked with ** * **  are required for the adapter to work.
-<p><b>version.date.format </b></p>+
  
-<ul>\\ +**# **  ''Required but can also be set in web-application''  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.
- <li class="level1">Default Value: N/A</li>\\ +
- <li class="level1">Description: The localized date format that SharePoint is using.</li>\\ +
-</ul>+
  
-<p><b>raw.version.date.format </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>\\ +user ** **
- <li class="level1">Default Value: yyyy-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>+  * __Description__: You 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.
  
-<ul>\\ +password ** # **
- <li class="level1">Default Value: Document</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>+  * __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.
  
-<ul>\\ +domain ** # **
- <li class="level1">Default Value: Link 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>+  * __Description__: You may enter the SharePoint domain for the Stages system account here instead of the corresponding field Default domain in the cms profile. If both values exist, the domain from the cms profile is preferred.
  
-<ul>\\ +document.content.type.name ** + **
- <li class="level1">Default Value: N/A</li>\\ +
- <li class="level1">Description: You 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>+  * __Default Value__: Document 
 +  * __Description__: The configurable name of the content type ''Document''. The default value corresponds with the default name in english versions of SharePoint.
  
-<ul>\\ +link.content.type.name ** + **
- <li class="level1">Default Value: N/A</li>\\ +
- <li class="level1">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>\\ +
-</ul>+
  
-<p><b>domain</b></p>+  * __Default Value__: Link to a Document 
 +  * __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.
  
-<ul>\\ +state.attribute.name
- <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 profileIf both values exist, the default domain from the CMS profile is preferred.</li>\\ +
-</ul>+
  
-<p><b>state.attribute.name</b> (required)</p>+  * Description: The optional SharePoint column to write the Stages state to.
  
-<ul>\\ +label.attribute.name
- <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>+  * Description: The optional SharePoint column to read Stages labels from.
  
-<ul>\\ +label.attribute.delimiter ** + **
- <li class="level1">Default Value: N/A</li>\\ +
- <li class="level1">Description: The optional SharePoint column to read Stages labels from.</li>\\ +
-</ul>+
  
-<p><b>label.attribute.delimiter</b></p>+  * __Default Value__: '','' 
 +  * __Description__: A delimiting character or string that separates single labels.
  
-<ul>\\ +raw.version.date.format ** + **
- <li class="level1">Default Value: N/A</li>\\ +
- <li class="level1">Description: A delimiting character or string that separates single labels.</li>\\ +
-</ul>+
  
-<p><b>element.url.attribute.name</b></p>+  * __Default Value__: ''yyyy-MM-dd'T'HH:mm:ss'Z' '' 
 +  * __Description__: The date format that SharePoint is using internally.
  
-<ul>\\ +version.date.format
- <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>+  * __Description__: The localized date format that SharePoint is using.
  
-<ul>\\ +major.versions ** + ** 
- <li class="level1">Default Value: true</li>\\ + 
- <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>\\ +  * __Default Value__: true 
-</ul>\\ +  * __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. 
-</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. 
 + 
 +=== Repository Configuration === 
 +Access to SharePoint projects can be configured in Stages processes via “Management > File Management > Repositories”. 
 +{{ :cms:sp-repository.png? |}} 
 + 
 +> Name: 
 +The name of this SharePoint configuration. This name will be used by Stages to refer to this repository configuration (e.g. in repository plan) 
 + 
 +> Host: 
 +This selection field contains an entry for each cms-host section in the Stages configuration file (config.xml). You can select the host for this repository configuration. 
 + 
 +> Default Domain: 
 +Define a domain for this repository configuration, which will be used when Stages is logging in to the SharePoint server. This overwrites the property **domain** from the configuration file (config.xml). 
 + 
 +> Site: 
 +Define a site parameter for this repository configuration. The site is the path to the location, where your document libraries are located on the SharePoint server. The site is one piece for the complete connection string to the SharePoint server. The connection string is build like that: // | host.url | : | port | | **/site/** | | documentLibrary | //. 
 + 
 +This overwrites the **path** from the URL entered in the configuration file (config.xml). 
 + 
 +Example: 
 + 
 +  * **config.xml**: //<nowiki><cms-host name="http://mySharePoint.de:123/myPath/to/mySite" /></nowiki>// 
 +  * Value in **Site**: //myPath/to/another/Repository// 
 +  * Resulting **URL**: //<nowiki>http://mySharePoint.de:123/myPath/to/another/Repository</nowiki>// 
 +  * The path from the config.xml gets overwritten by the value from Repository Path. 
 + 
 +> Document Library: 
 +Defines the name of the document library. The document library is one piece for the complete connection string to the SharePoint server. The connection string is build like that: // | host.url | : | port | | /site/ | | **documentLibrary** | //. 
 + 
 +> Root Folder: 
 +Defines a root folder **inside** the given document library. Every file linked or uploaded to a repository, which defines a root folder in the configuration, will be **inside** this root folder. 
 + 
 +> Username: 
 +Define a username for this repository configuration. This overwrites the property **username** from the configuration file (config.xml). 
 + 
 +> Password 
 +Define a username for this repository configuration. This overwrites the property **password** from the configuration file (config.xml). 
 + 
 +> Default Lifecycle 
 +Select a lifecycle from the process metamodel as default for files from this repository. 
 + 
 + 
 + 
 +=== Host-Properties which are not in use since Stages v7.+ === 
 + 
 +> 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>