Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-04


oracle.webcenter.doclib.model
Class DocLibUtils

java.lang.Object
  extended by oracle.webcenter.doclib.model.DocLibUtils


public final class DocLibUtils
extends java.lang.Object

Utility APIs for leveraging the Documents Service configuration in custom code

Since:
11.1.1.6.0

Constructor Summary
DocLibUtils()
           

 

Method Summary
 java.lang.String getDefaultConnectionName()
          Gets the name of the default content repository connection (see the setJCRContentServerConnection WLST command and other similar commands).
 IdcContext getDefaultIdcContext(java.lang.String connectionName)
          Reads the configuration for the Content Server connection identified by connectionName and return an IdcContext object that can be used to make calls to the Content Server.
 <any> getIdcClient(java.lang.String connectionName)
          Reads the configuration for the Content Server connection identified by connectionName and return an IdcClient object that can be used to make calls to the Content Server.
 boolean isConfiguredForSpaces()
          Checks if the Documents Service integration with WebCenter Portal: Spaces has been configured.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DocLibUtils

public DocLibUtils()

Method Detail

isConfiguredForSpaces

public boolean isConfiguredForSpaces()
Checks if the Documents Service integration with WebCenter Portal: Spaces has been configured. This checks all the prerequisite for the personal and space folders to be enabled:
Returns:
true If the documents service spaces features are configured

getDefaultConnectionName

public java.lang.String getDefaultConnectionName()
Gets the name of the default content repository connection (see the setJCRContentServerConnection WLST command and other similar commands).
Returns:
The default content repository connection name, or null if none is configured.

getIdcClient

public <any> getIdcClient(java.lang.String connectionName)
                   throws javax.naming.NameNotFoundException,
                          javax.naming.NamingException,
                          IdcClientException
Reads the configuration for the Content Server connection identified by connectionName and return an IdcClient object that can be used to make calls to the Content Server.
Parameters:
connectionName - The Content Server connection name
Returns:
The IdcClient that can be used to make calls to the Content Server. See the Remote Intradoc Client documentation for information on how to make calls to the Content Server.
Throws:
javax.naming.NameNotFoundException - If no Content Server connection can be found for that name
javax.naming.NamingException - If an error occurs reading the connection information
IdcClientException - If an error occurs while creating the IdcClient

getDefaultIdcContext

public IdcContext getDefaultIdcContext(java.lang.String connectionName)
                                throws javax.naming.NamingException,
                                       IdcClientException
Reads the configuration for the Content Server connection identified by connectionName and return an IdcContext object that can be used to make calls to the Content Server. This context object will carry the user's identity as specified in the configuration (using either identity propagation or credentials defined in an external application definition).
Parameters:
connectionName - The Content Server connection name
Returns:
The IdcContext that can be used to make calls to the Content Server using the same credentials that would be used in the documents service task-flows.
Throws:
javax.naming.NameNotFoundException - If no Content Server connection can be found for that name
javax.naming.NamingException - If an error occurs reading the connection information
IdcClientException - If an error occurs while creating the IdcClient

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-04


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.