|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.6.0) E15995-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.webcenter.doclib.model.DocLibUtils
public final class DocLibUtils
Utility APIs for leveraging the Documents Service configuration in custom code
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 |
---|
public DocLibUtils()
Method Detail |
---|
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 IdcClient
public 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 IdcClient
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.6.0) E15995-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |