public final class DocLibUtils
extends java.lang.Object
| Constructor and Description |
|---|
DocLibUtils() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
static boolean |
isConfiguredForWCCRUI()
Checks if the portal is configured for WCC RUI to function.
|
static boolean |
provisionService(java.lang.String serviceId,
oracle.webcenter.framework.service.Scope scope)
Provisions the service if it is enabled.
|
public boolean isConfiguredForSpaces()
createJCRContentServerConnection WLST command;setDocumentsSpacesProperties WLST
command).true If the documents service spaces features are
configuredpublic java.lang.String getDefaultConnectionName()
setJCRContentServerConnection WLST command and other similar
commands).null if
none is configured.public <any> getIdcClient(java.lang.String connectionName)
throws javax.naming.NameNotFoundException,
javax.naming.NamingException,
IdcClientException
connectionName and return an IdcClient object that can be
used to make calls to the Content Server.connectionName - The Content Server connection nameIdcClient 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.javax.naming.NameNotFoundException - If no Content Server connection can be found for that namejavax.naming.NamingException - If an error occurs reading the connection informationIdcClientException - If an error occurs while creating the IdcClientpublic IdcContext getDefaultIdcContext(java.lang.String connectionName)
throws javax.naming.NamingException,
IdcClientException
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).connectionName - The Content Server connection nameIdcContext 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.javax.naming.NameNotFoundException - If no Content Server connection can be found for that namejavax.naming.NamingException - If an error occurs reading the connection informationIdcClientException - If an error occurs while creating the IdcClientpublic static boolean provisionService(java.lang.String serviceId,
oracle.webcenter.framework.service.Scope scope)
throws SpacesException
SpacesExceptionpublic static boolean isConfiguredForWCCRUI()