Testing Oracle Portal Connections

Managing Content Repositories 11-53

11.13.1.3 Example

The following example creates a connection to a Microsoft SharePoint site. wls:weblogicserverConfig createJCRSharePointConnectionappName=webcenter, name=MySPConnection, url=http:mysharepoint.mycompany.com, extAppId=myExtApp

11.13.2 setJCRSharePointConnection

Module: Oracle WebCenter Use with WLST: Online likeLimi t Optional. Number of characters the LIKE operator matches. The default is 64. The SharePoint query language can use a LIKE keyword to constrain URL queries document paths that match a search pattern. By default, the LIKE operator supports a pattern match on strings up to 64 characters. Use this argument to specify a different character limit any positive integer between 1 and 64 or enter likeLimit=0 to disable the LIKE limit, that is, always send the full query string to the Microsoft SharePoint server. As Oracle recommends the default value 64, there is no need to specify this argument when you create a connection using the WLST command createJCRSharePointConnection. Note: Only specify a value above 64 if your SharePoint instance supports LIKE queries on URLs greater than 64 characters. extAppId Optional. External application used to authenticate WebCenter users against the SharePoint repository. This value should match the name of an existing external application connection. See also listExtAppConnections. If extAppId is not set, the SharePoint repository connection will not work. extAppId can be set or changed at any time using the setJCRSharePointConnection command. timeout Optional. Length of time allowed to log in to the SharePoint repository in ms before issuing a connection timeout message. If no timeout is set, there is no time limit for the login operation. isPrimary Optional. Valid values are 1 true and 0 false. 1 specifies that this connection is the primary connection used by the Documents service. The argument defaults to 0. If this parameter is omitted, the primary connection used by the Documents service does not change. In WebCenter Spaces, the primary connection must be an Oracle Content Server connection. server Optional. Name of the managed server where the WebCenter application is deployed. For example, WC_Spaces. Required when applications with the same name are deployed to different servers and also when you have a cluster. applicationVersion Optional. Version number of the deployed application. Required if more than one version of the WebCenter application is deployed. Argument Definition 11-54 Oracle Fusion Middleware Administrators Guide for Oracle WebCenter

11.13.2.1 Description

Edits an existing Microsoft SharePoint 2007 repository connection. This command requires that you specify values for appName and name, plus at least one additional argument.

11.13.2.2 Syntax

setJCRSharePointConnectionappName, name, [url, likeLimit, extAppId, timeout, isPrimary, server, applicationVersion] Argument Definition appName Name of the WebCenter application in which to perform this operation. name Name of an existing SharePoint connection. url Optional. Web address of the SharePoint site to which you want to connect. For example, if the SharePoint site address is http:mysharepoint.mycompany.com, enter this value for the url argument. likeLimi t Optional. Number of characters the LIKE operator matches. The default is 64. The SharePoint query language can use a LIKE keyword to constrain URL queries document paths that match a search pattern. By default, the LIKE operator supports a pattern match on strings up to 64 characters. Use this argument to specify a different character limit any positive integer between 1 and 64 or enter likeLimit=0 to disable the LIKE limit, that is, always send the full query string to the Microsoft SharePoint server. Oracle recommends the default value 64. The default is suitable in most instances so, typically, there is no need to set a new value. To reset the default, specify likeLimit= or likeLimit=64. Note: Only specify a value above 64 if your SharePoint instance supports LIKE queries on URLs greater than 64 characters. extAppId Optional. External application used to authenticate WebCenter users against the SharePoint repository. This value should match the name of an existing external application connection. See also listExtAppConnections. If extAppId is not set, no change is made to the current external application ID. If no external application is set, the SharePoint connection will not work. timeout Optional. Length of time allowed to log in to the SharePoint repository in ms before issuing a connection timeout message. If no timeout is set, there is no time limit for the login operation. isPrimary Optional. Valid values are 1 true and 0 false. 1 specifies that this connection is the primary connection used by the Documents service. When set to 0, and the specified connection is the primary connection used by the Documents service, the primary connection is reset. If this parameter is not set, the primary connection used by the Documents service does not change. This argument has no default. In WebCenter Spaces, the primary connection must be an Oracle Content Server connection. server Optional. Name of the managed server where the WebCenter application is deployed. For example, WC_Spaces. Required when applications with the same name are deployed to different servers and also when you have a cluster. Managing Content Repositories 11-55

11.13.2.3 Example

The following example edits SharePoint repository connection details. wls:weblogicserverConfig setJCRSharePointConnectionappName=webcenter, name=MySPConnection, url=http:mysharepoint.mycompany.com, extAppId=myExtApp

11.13.3 listJCRSharePointConnections

Module: Oracle WebCenter Use with WLST: Online

11.13.3.1 Description

Without any arguments, this command lists all of the SharePoint connections that are configured for a named WebCenter application.

11.13.3.2 Syntax

listJCRSharePointConnectionsappName, [verbose, name, server, applicationVersion]

11.13.3.3 Example

The following example lists the names of all the SharePoint connections that are configured for an application named webcenter. wls:weblogicserverConfig listJCRSharePointConnectionsappName=webcenter The following example lists connection details for all of the SharePoint connections that are configured. applicationVersion Optional. Version number of the deployed application. Required if more than one version of the WebCenter application is deployed. Argument Definition appName Name of the WebCenter application in which to perform this operation. verbose Optional. Displays SharePoint connection details in verbose mode. Valid options are 1 true and 0 false. When set to 1, listJCRSharePointConnections lists all SharePoint connections that are configured for a WebCenter application, along with their details. When set to 0, only connection names are listed. This argument defaults to 0. name Optional. Name of an existing SharePoint connection. When specified you can view connection details for a specific SharePoint connection. If you supply a value for name, you must supply a value for verbose. server Optional. Name of the managed server where the WebCenter application is deployed. For example, WC_Spaces. Required when applications with the same name are deployed to different servers and also when you have a cluster. applicationVersion Optional. Version number of the deployed application. Required if more than one version of the WebCenter application is deployed. Argument Definition