Next revision | Previous revisionNext revisionBoth sides next revision |
74:cms_sharepoint [2019/09/25 13:43] – created tssr | 74:cms_sharepoint [2020/01/15 09:51] – tssr |
---|
<h3>Sharepoint</h3> | [[:74:cms_configuration|Back to Common CMS Configuration]] |
| |
<div class="level3"> </div> | ==== Sharepoint ==== |
| |
<h4>Example Configuration</h4> | === Example Configuration === |
| |
<div class="level4">\\ | <code xml> |
<pre class="code xml">\\ | <cms-type name="sharepoint"> |
< cms-type name="sharepoint">\\ | <!-- Global Properties --> |
< !-- Global Properties -->\\ | <cms-host ident="sharepoint.example.ident" name="https://sharepoint.example.net:1234" displayName="Sharepoint Example Server"> |
< cms-property name="stages.server.url" value="https://stages.mycompany:8080" />\\ | <!-- Host Properties --> |
< cms-property name="http.authentication.hostname" value="nonempty" />\\ | <cms-property name="version.date.format" value="dd.MM.yyyy HH:mm" /> |
< cms-property name="http.max.connections" value="100" />\\ | <cms-property name="user" value="sharepoint_username" /> |
< cms-property name="http.connection.timeout" value="10000" />\\ | <cms-property name="password" value="sharepoint_password" /> |
< cms-property name="http.socket.timeout" value="90000" />\\ | </cms-host> |
< cms-property name="http.connection.pool.max.idle" value="60000" />\\ | </cms-type> |
< cms-property name="http.ssl.allow.all" value="true" />\\ | |
\\ | |
< cms-host ident="sharepoint.example.ident" name="https://sharepoint.example.net:1234" displayName="Sharepoint Example Server">\\ | |
< !-- Host Properties -->\\ | |
< cms-property name="state.attribute.name" value="_Status" />\\ | |
< cms-property name="version.date.format" value="dd.MM.yyyy HH:mm" />\\ | |
< cms-property name="document.content.type.name" value="Document" />\\ | |
< cms-property name="link.content.type.name" value="Link to a document" />\\ | |
< cms-property name="user" value="sharepoint_username" />\\ | |
< cms-property name="password" value="sharepoint_username" />\\ | |
< /cms-host>\\ | |
< /cms-type> | |
| |
</pre> | </code> |
| |
<p> </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><cms-type></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 Value: N/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>\\ | > http.connection.pool.max.idle ** + ** |
</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). |
| > http.connection.timeout ** + ** |
| |
<ul>\\ | * __Default Value__: 10000 |
<li class="level1">Default Value: Copy service</li>\\ | * __Description__: The timeout in milliseconds until a connection to the server has to be established. |
<li class="level1">Description: Either CopyService or RPC. Defines 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>\\ | > http.connection.resource.check.interval ** + ** |
</ul> | |
| |
<p><b>initial.checkin.fix</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. |
| > http.socket.timeout ** + ** |
| |
<ul>\\ | * __Default Value__: 90000 |
<li class="level1">Default Value: true</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: 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>\\ | > http.ssl.allow.all ** + ** |
</ul> | |
| |
<p><b>http.ssl.allow.all</b></p> | * __Default Value__: false |
| * __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). |
| > http.max.connections ** + ** |
| |
<ul>\\ | * __Default Value__: 100 |
<li class="level1">Default Value: false</li>\\ | * __Description__: The maximum number of simultaneous HTTP connections between Stages and SharePoint. |
<li class="level1">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>\\ | > http.authentication.hostname |
</ul> | |
| |
<p><b>http.max.connections</b></p> | * __Description__: The host name of the server that runs Stages and is allowed to authenticate via ntlm against the SharePoint server. |
| > cms.browser.activated ** + ** |
| |
<ul>\\ | * __Default Value__: true |
<li class="level1">Default Value: 100</li>\\ | * __Description__: If set to false, it is not possible to browse through the files in the Stages web-application. |
<li class="level1">Description: The maximum number of simultaneous HTTP connections between Stages and SharePoint.</li>\\ | > upload.service ** + ** |
</ul> | |
| |
<p><b>http.connection.timeout</b></p> | * __Default Value__: CopyService |
| * __Description__: Either CopyService or RPC. Defines 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 |
| === Host Properties === |
| |
<ul>\\ | These configuration properties affect the behavior of one SharePoint Online server. |
<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> | *** ** ''Required'' Properties marked with ** * ** are required for the adapter to work. |
| |
<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: 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> | **+ ** ''Required but with default'' \\ Properties marked with ** + ** are required, but there is a default value. This values can be overridden by configuring it in the config.xml. |
| |
<ul>\\ | > user ** # ** |
<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's IIS site (default: 120s).</li>\\ | |
</ul> | |
| |
<p><b>http.connection.context.timeout</b></p> | * __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. |
| > password ** # ** |
| |
<ul>\\ | * __Description__: You may enter the SharePoint password for the Stages system account here instead of the corresponding field Password in the cms profile. If both values exist, the password from the cms profile is preferred. |
<li class="level1">Default Value: 60000</li>\\ | > domain ** # ** |
<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> | * __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. |
| > document.content.type.name ** + ** |
| |
<ul>\\ | * __Default Value__: Document |
<li class="level1">Default Value: 10000</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">Description: The interval (in milliseconds) between two consecutive resource monitor runs which check for idle or expired connections and obsolete authentication contexts.</li>\\ | > link.content.type.name ** + ** |
</ul>\\ | |
</div> | |
| |
<h4>Host Properties</h4> | * __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. |
| > state.attribute.name |
| |
<div class="level4">\\ | * Description: The optional SharePoint column to write the Stages state to. |
<p><b>version.date.format </b></p> | |
| |
<ul>\\ | > label.attribute.name |
<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> | * Description: The optional SharePoint column to read Stages labels from. |
| |
<ul>\\ | > label.attribute.delimiter ** + ** |
<li class="level1">Default Value: yyyy-MM-dd'T'HH:mm:ss'Z'</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> | * __Default Value__: '','' |
| * __Description__: A delimiting character or string that separates single labels. |
| > raw.version.date.format ** + ** |
| |
<ul>\\ | * __Default Value__: ''yyyy-MM-dd'T'HH:mm:ss'Z' '' |
<li class="level1">Default Value: Document</li>\\ | * __Description__: The date format that SharePoint is using internally. |
<li class="level1">Description: The configurable name of the content type "Document". The default value corresponds with the default name in english versions of SharePoint.</li>\\ | > version.date.format |
</ul> | |
| |
<p><b>link.content.type.name </b> (required if Sharepoint Content Types enabled)</p> | * __Description__: The localized date format that SharePoint is using. |
| > major.versions ** + ** |
| |
<ul>\\ | * __Default Value__: true |
<li class="level1">Default Value: Link to a document</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: 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>\\ | > page.size ** + ** |
</ul> | |
| |
<p><b>user</b></p> | * __Default Value__: 1000 |
| * __Description__: Item count of one page received from the Sharepoint server. |
| > page.url.override |
| |
<ul>\\ | * __Description__: N/A |
<li class="level1">Default Value: N/A</li>\\ | > use.system.account.for.download ** + ** |
<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 profile. If both values exist, the username from the CMS profile is preferred.</li>\\ | |
</ul> | |
| |
<p><b>password</b></p> | * __Default Value__: false |
| * __Description__: When set to true, files will be downloaded from stages using the system account. |
| === Currently not used === |
| |
<ul>\\ | > stages.server.url |
<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 profile. If both values exist, the password from the CMS profile is preferred.</li>\\ | |
</ul> | |
| |
<p><b>domain</b></p> | * __Description__: The url to this Stages server. |
| > initial.checkin.fix ** + ** |
| |
<ul>\\ | * __Default Value__: true |
<li class="level1">Default Value: N/A</li>\\ | * __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 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>\\ | > element.url.attribute.name |
</ul> | |
| |
<p><b>state.attribute.name</b> (required)</p> | * __Description__: The optional SharePoint column where external links to Stages may be stored as a back-reference |
| > validateFilename |
| |
<ul>\\ | * <nowiki>^[^~"#%&*:<>?/{|}]+$</nowiki> |
<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> | > validatePath |
| |
<ul>\\ | * <nowiki>^([^~"#%&*:<>?/{|}.]|[^~\"#%&*:<>?/\\\\{|}.][^~\"#%&*:<>?/\\\\{|}]*[^~\"#%&*:<>?/\\\\{|}.])?([\\\\/]([^~\"#%&*:<>?/\\\\{|}.]|[^~\"#%&*:<>?/\\\\{|}.][^~\"#%&*:<>?/\\\\{|}]*[^~\"#%&*:<>?/\\\\{|}.]))*[\\\\/]?$</nowiki> |
<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> | |
| |
<ul>\\ | |
<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> | |
| |
<ul>\\ | |
<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> | |
| |
<ul>\\ | |
<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>\\ | |
</ul>\\ | |
</div> | |
| |
| |