Skip Headers
Oracle® Fusion Middleware Content Management Guide for Oracle WebLogic Portal
10g Release 3 (10.3.2)

Part Number E14230-01
Go to Documentation Home
Home
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

8 Connecting to a Third-Party Repository

The Virtual Content Repository allows you to connect to non-WLP repositories. When third-party repositories are connected to the Virtual Content Repository, their content can be accessed by portal tools such as content placeholders, content selectors, and so on.

Some third-party content management vendors have built integrations (Content Service Provider Implementations or SPIs) that allow you to connect third-party repositories to the Virtual Content Repository. Contact your third-party repository vendor to find out the details about their implementation.

If the third-party repository you are using is JSR 170 compliant, you can connect to it using WLP's JSR 170 Connector> See Section 8.3, "Working with a JSR 170-Compatible Repository." For more information about JSR170, see the JSR 170 web site at http://www.jcp.org/en/jsr/detail?id=170.

Note:

You cannot use WLP's library services with third-party repositories.

If your third-party repository does not have a written an implementation for the Virtual Content Repository, you can write your own using WLP's Service Provider Interface (SPI). For more information, see the Oracle Fusion Middleware Content Management SPI Development Guide for Oracle WebLogic Portal.

This chapter includes the following sections:

8.1 Working with Third-Party Repositories

Configuring a third-party repository to use with WebLogic Portal involves the following three steps:

  1. Create or obtain an SPI implementation for accessing the third-party repository you want to use that integrates the functionality of your third-party repository with WebLogic Portal, as described in the Oracle Fusion Middleware Content Management SPI Development Guide for Oracle WebLogic Portal. If you are connecting to a JSR 170-compatible repository, you do not need to write an SPI implementation.

  2. Add the repository SPI JARs to your application class path to ensure your portal can communicate with the repository. For more information about adding a class to your class path, see "Adding startup and shutdown classes to the classpath" in the Oracle Fusion Middleware Oracle WebLogic Server Administration Console Online Help.

  3. Connect the third-party repository to the Virtual Content Repository using the WebLogic Portal Administration Console or by editing the application's META-INF/content-config.xml file. Depending on your implementation, to connect with the Virtual Content Repository, you may need to set various repository properties for your repository. These repository properties are SPI-specific and should be described in the SPI documentation.

    Note:

    You cannot use WLP's library services with third-party repositories.

8.2 Connecting to a Third-Party Repository

After creating an SPI implementation, you can connect your third-party repository to the Virtual Content Repository using WebLogic Portal Administration Console.

Note:

If you want to test your repository connection, you can use the IVirtualRepositoryManager API.

Once you have connected a third-party repository to the Virtual Content Repository, you can use that repository's content within your portal. If the third-party repository implementation includes write capabilities, you can also use the WebLogic Portal Administration Console to modify content within the repository.

An SPI can be deployed multiple times with different configuration parameters. From the application's perspective, this appears as multiple repositories.

Note:

Library services cannot be used in conjunction with SPI implementations.

When you connect to a third-party repository, you may need to configure additional properties that match your third-party repository's configuration. Consult your third-party documentation to verify the properties that you need to configure and the connection class you should use.

To connect a repository to the Virtual Content Repository (using the WebLogic Portal Administration Console):

  1. From the main menu of the WebLogic Portal Administration Console, select Content > Content Management.

  2. Select Manage | Repositories.

  3. In the resources tree, select the Virtual Content Repository.

  4. On the Browse tab, click Add Repository Connection. See Figure 8-1.

    Figure 8-1 Browse Tab within the Manage Repositories Window

    Description of Figure 8-1 follows
    Description of "Figure 8-1 Browse Tab within the Manage Repositories Window"

  5. In the Add Repository Connection dialog, provide the following information:

    Table 8-1 Repository Connection Information

    Field Description

    Name

    The name you give your new repository. For example: MyNewRepository

    Connection Class

    Use the SPI connection class you have created or that has been provided by your third-party vendor. The connection class is the fully qualified name of the class which implements com.bea.content.spi.flexspi.Repository. Be sure you have added this class to your application class path.

    Datasource JNDI Name

    Not used for third-party repositories.

    Username

    If using global credentials, the repository user name with which all WLP users in the application connect to the repository. When configuring a WLP repository, you can leave this blank.

    Password

    If using global credentials, the repository password with which all WLP users in the application connect to the repository. When configuring a WLP repository, you can leave this blank.

    Note: For information about configuring a password for a third-party repository, see Section 15.2, "Setting User Credentials for an External Repository in content-config.xml."

    Retype Password

    If you entered a global password, re-enter it here.

    Enable Library Services

    Not used for third-party repositories.


  6. Click Save.

  7. Within the Repositories section, click the repository you just created to verify that it has been created and view its Repository Summary.

8.2.1 Logging Into a Third-Party Repository

The VCR supports global and mapped user identity options. In the case of global user identity, all users in the application use the same credentials to connect to the third-party repository instance. If the third-party repository supports the RepositoryMultipleUsers capability (also called "multiple user authentication"), it is also supported for individual WLP application users to log in to the third-party repository with individual (as opposed to global) credentials. This is referred to as "mapped credentials."

Tip:

For detailed information on the security options that are available through the SPI, see "Configuring Security" in the Oracle Fusion Middleware Content Management SPI Development Guide for Oracle WebLogic Portal.

If the third-party repository connected to WLP's Virtual Content Repository supports multiple user authentication, you can restrict users to specific content. Multiple user authentication lets users log in with global credentials or with unique user credentials. User credentials can control the content individual WebLogic Portal users can view. For example, content contributors could view only the content that they add or edit.

For repositories like UCM that support the RepositoryMultipleUsers capability type, the Portal Administration Console will display the Login Options button. Multiple user authentication is available for content repositories that support the RepositoryMultipleUsers capability type, defined by the RepositoryFeatureCapability.RepositoryMultipleUsers (which is determined by the ICapabilityManager.checkRepositoryCapability() method).

The Login Options button appears automatically in the WebLogic Portal Administration Console if you connect the third-party repository to WLP's Virtual Content Repository.

Caution:

Currently only the UCM repository supports multiple user authentication.

Perform the following steps to set up global credentials and log into the repository:

  1. After you connect to a third-party repository that supports multiple user authentication, start the WebLogic Portal Administration Console.

  2. From the main menu of the WebLogic Portal Administration Console, select Content > Content Management.

  3. To set up global credentials, perform the following steps:

    1. Click Manage | Repositories.

    2. In the resources tree, select the repository.

    3. In the Summary tab, click Change Password.

    4. Enter a global user name, password, password confirmation, and then click Save.

  4. To select credentials for the current user, click the Manage | Content tab and select the third-party repository. After you select the repository, the Login Options button appears, as shown in Figure 8-2.

    Figure 8-2 The Login Options Button

    Description of Figure 8-2 follows
    Description of "Figure 8-2 The Login Options Button"

  5. Click Login Options, select one of the following:

    • Click Login with Global Credentials to log in with the global credentials that you set up earlier. The third-party repository content accessible by the global credentials will be exposed to WLP. For more information on global identity, see "Configuring Security" in the Oracle Fusion Middleware Content Management SPI Development Guide for Oracle WebLogic Portal.

    • Click Login with my saved credentials for user xyz to log in to see the content this user is authorized to view. This option is only available if the third-party repository supports mapped identities (multiple user authentication). For more information, see "Configuring Security" in the Oracle Fusion Middleware Content Management SPI Development Guide for Oracle WebLogic Portal.

    • Click Update my credentials and login to enter a new user name and password for a mapped identity. You must have logged in at least once to select this option.

  6. Click Login. See Figure 8-3.

Figure 8-3 Select Global or User Credentials to Log into the Third-Party Repository

Description of Figure 8-3 follows
Description of "Figure 8-3 Select Global or User Credentials to Log into the Third-Party Repository"

User authentication persists across multiple portal sessions until you change it.

8.3 Working with a JSR 170-Compatible Repository

WebLogic Portal provides a connector to repositories that implement the JSR 170 specification such as Day Software's CRX. If you want to access a repository using its JSR 170 interface, you do not need to write a custom SPI implementation.

This section assumes you have already installed and configured a JSR 170 repository. For additional documentation about installing and using Day Software's CRX JSR 170 repository, see the Oracle Fusion Middleware JSR 170 Developer Guide for Oracle WebLogic Portal and the Oracle Fusion Middleware JSR 170 Supported Configurations Guide for Oracle WebLogic Portal.

8.3.1 Searching within a JSR 170 Repository

When a repository is connected to the Virtual Content Repository, both content contributors and developers can search for content within the repository. However not all metadata provided by the Virtual Content Repository, such as system properties and MIME types, are supported by the JSR 170 specification; subsequently some searches may be invalid.

The following system properties cannot be used when searching JSR 170 repositories:

  • cm_binaryName

  • cm_nodeName

  • cm_createdBy

  • cm_modifiedBy

  • cm_createdDate

  • cm_modifiedDate

  • cm_contentType

  • cm_binarySize

The following search operators cannot be used:

  • containsall

  • likeignorecase

8.3.2 Connecting to a JSR 170 Repository

To connect to a JSR 170 repository, do the following:

  1. From the main menu of the WebLogic Portal Administration Console, select Content > Content Management.

  2. Select Manage | Repositories.

  3. In the Repositories tree, click the Virtual Content Repository.

  4. In the Browse tab, click Add Repository Connection. See Figure 8-4.

Figure 8-4 Browse Tab within the Virtual Content Repositories Window

Description of Figure 8-4 follows
Description of "Figure 8-4 Browse Tab within the Virtual Content Repositories Window"

  1. In the Add Repository Connection dialog, provide the information shown in Table 8-2:

    Table 8-2 Add Repository Connection

    Field Description

    Name

    The name you give your new repository.

    Connection Class

    The name of the connector class which connects the repository to WebLogic Portal.

    If connecting to the Day Software CRX repository, use the following connection class: com.day.content.spi.jsr170.JNDIRepository

    Datasource JNDI Name

    Used only for WLP repositories.

    Username

    Enter the user name required to connect to your third-party repository.

    Password

    Enter the password required to connect to your third-party repository.

    Note: For information about configuring a cleartext password for a third-party repository, see Section 15.2, "Setting User Credentials for an External Repository in content-config.xml."

    Retype Password

    Re-enter the password required to connect to your third-party repository.

    Enable Library Services

    Used only for WLP repositories. Deselect this check box to ensure library services are disabled.

    Note: Library services are not supported for third-party repositories.


  2. Click Save.

  3. Click the repository you just created to verify that it has been created and view its Repository Summary.

  4. In the Properties section, click Add Property and add the properties in Table 8-3 to your repository.

Table 8-3 JSR170 Connector Properties

Repository Property Required Value What it does
jsr170.hide.builtin

true

Prevents repository-specific types and properties from interfering with the Virtual Content Repository.

jsr170.uid.mapping

uuid

Maps the IDs generated by your repository to the internal IDs needed by the Virtual Content Repository.


  1. In the Properties section, verify that the property has been created.