Configuring Connections Using WLST

19-12 Oracle Fusion Middleware Administrators Guide for Oracle WebCenter

19.4.3 Configuring the Activity Graph Provider

If you are working outside of the Integrated WLS domain i.e., in the WC_Spaces domain, before you can use scenarios that rely on the Activity Graph provider, you must configure connection information for your local environment. Connection settings for Activity Graph are maintained in wcps-connections.xml in the wc_domain conductor extensions directory domain scoped. Although it is not recommended that you edit this file directly, there are several other ways in which you can modify connection settings. Use one of the methods described in Section 19.4.1, Creating or Modifying Provider Connection Settings. to configure the connection settings for the Activity Graph provider. Connection Element and Property Descriptions connection-name - unique name for this connection. Connections can be retrieved by name. namespace - generally, this must match the namespace the accessing scenario is deployed within. The namespace is how the Conductor determines how to locate the appropriate connection for a given scenario. Using a wildcard , you can make this connection element available in all namespaces. nameisDefaultname - marks this connection as the default connection if multiple connections are defined nameschemename - protocol to access the CMIS REST service HTTP or HTTPS for SSL. Defaults to HTTP if not explicitly specified. namehostname - machine name hosting the Activity Graph REST service. This is the machine name of the WC_Spaces managed server. nameportname - machine port number hosting the Activity Graph REST service. This is the machine port number of the WC_Spaces managed server. namerewriteUrlsname - can be set to None, Consumer, or Producer. See the REST Proxy page for details. If you want the direct URLs from the CMIS server for document links, set this to None. Default is no rewrite None. nameusername - Optional the username to use when connecting to the Activity Graph REST service. namepasswordname - Optional the password to use when connecting to the Activity Graph REST service. Used in conjunction with username, can be used to force a connection to a fixed usernamepassword. Not recommended for use outside of development environment since password access is not secured. namerestResourceIndexname - the URI suffix to append to the hostport for the REST resource index for example: restapiresourceIndex

19.4.4 Configuring the Oracle People Connections Locator

If you are working outside of the Integrated WLS domain i.e., in the WC_Spaces domain, before you can use scenarios that rely on the People Connections locator, you must configure connection information for your local environment. The Property Service uses an IPropertyLocator the People Connections ILocator to interface with the WebCenter People Connections service. The Property Provider that interfaces with the WebCenter People Connections service uses this ILocator to make PC REST calls for a given user or self and return the Person object represented by that REST service call. The Person attributes represent values for that WebCenter profile. Managing WebCenter Personalization 19-13 Connection settings for the People Connections ILocator are maintained in wcps-connections.xml in the wc_domain conductor extensions directory domain scoped. Although it is not recommended that you edit this file directly, there are several other ways in which you can modify connection settings. Use one of the methods described in Section 19.4.1, Creating or Modifying Provider Connection Settings. to configure the connection settings for the People Connections ILocator. Connection Element and Property Descriptions connection-name - unique name for this connection. Connections can be retrieved by name. namespace - generally, this must match the namespace the accessing scenario is deployed within. The namespace is how the Conductor determines how to locate the appropriate connection for a given scenario. Use a wildcard to make this connection element available in all namespaces. nameisDefaultname - marks this connection as the default connection if multiple are defined nameschemename - protocol to access the CMIS REST service HTTP or HTTPS for SSL. Defaults to HTTP if not explicitly specified. namehostname - machine name hosting the PC REST service. This is the machine name of the WC_Spaces managed server. nameportname - machine port number hosting the PC REST service. This is the machine port number of the WC_Spaces managed server. nameusername - Optional the username to use when connecting to the People Connection REST service. Can be used to force a connection to a fixed username. namepasswordname - Optional the password to use when connecting to the People Connections REST service. Used in conjunction with username, can be used to force a connection to a fixed usernamepassword. Not recommended for use outside of development environment since password access is not secured. namerestResourceIndexname - appended to the PC REST service hostport, pointing to the location of the resourceIndex available REST services page for example: restapiresourceIndex Bootstrapping the Person class to the Properties Provider In order for the Property Service to know about and use the results of the People Connections REST calls, it needs to know about a Person. This means creating a Person property set definition, along with its individual attributes set as property definitions, before a Person can be instantiated and its properties set. The People Connection ILocator code does this by bootstrapping that process in a servlet listener, configured in its web.xml file as shown in the example below: ?xml version=1.0 encoding=UTF-8 ? web-app xmlns=http:java.sun.comxmlnsj2ee xmlns:xsi=http:www.w3.org2001XMLSchema-instance xsi:schemaLocation=http:java.sun.comxmlnsj2ee http:java.sun.comxmlnsj2eeweb-app_2_4.xsd version=2.4 -- Allows connection config classes to be loaded from the connections.xml file -- listener