Testing Oracle Content Server Connections

11-52 Oracle Fusion Middleware Administrators Guide for Oracle WebCenter For information about how to install WLST scripts for Microsoft SharePoint, see Section 11.3.1.3, Installing WLST Command Scripts for Managing Microsoft SharePoint Connections.

11.13.1 createJCRSharePointConnection

Module: Oracle WebCenter Use with WLST: Online

11.13.1.1 Description

Creates a connection to a Microsoft SharePoint 2007 repository.

11.13.1.2 Syntax

createJCRSharePointConnectionappName, name, url, [likeLimit, extAppId, timeout, isPrimary, server, applicationVersion] Table 11–10 SharePoint Content Repository WLST Commands Use this command... To... Use with WLST... createJCRSharePointCon nection Create a Microsoft SharePoint 2007 repository connection. Online setJCRSharePointConnec tion Edit a Microsoft SharePoint 2007 repository connection. Online listJCRSharePointConne ctions List all Microsoft SharePoint 2007 connections that are configured for a WebCenter application. Online Note: For WebCenter Portal applications, the createJCRSharePointConnection command works only if the application was developed to support Microsoft SharePoint connections in the first place. If the original WebCenter Portal application deployment does not include a Microsoft SharePoint connection, then the application will not contain the code necessary to support any new Microsoft SharePoint connections that you may want to create using this command. See also, Section 11.3.2, Microsoft SharePoint - Configuration. Argument Definition appName Name of the WebCenter application in which to perform this operation. name Connection name. The name must be unique across all connection types within the WebCenter application. url 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. 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