Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


oracle.stellent.ridc.convenience.adf.connection
Class RidcConnection

java.lang.Object
  extended by oracle.stellent.ridc.convenience.adf.connection.RidcConnection

All Implemented Interfaces:
javax.naming.Referenceable

public class RidcConnection
extends java.lang.Object
implements javax.naming.Referenceable

Field Summary
static java.lang.String CONNECTION_URL_KEY
           
static java.lang.String IDC_CONNECTION_KEY_PREFIX
           

 

Constructor Summary
RidcConnection()
          Default Constructor.
RidcConnection(javax.naming.Reference ref)
          Constructor that takes in a jndi reference.
RidcConnection(java.lang.String connectionName, javax.naming.Reference reference)
           

 

Method Summary
static RidcConnection create(javax.naming.Reference ref, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable<?,?> environment)
          Create an an IdcConnection from the given reference using the given name, context and environment properties.
 boolean equals(java.lang.Object o)
           
 java.lang.String getAppid(java.lang.String credentialsLabel, CredentialsType credentialsType)
           
 java.util.Map<java.lang.String,java.lang.String> getConfigProperties()
          Get the configuration properties of the IDC Connection.
 java.lang.String getConnectionName()
           
 java.lang.String getConnectionUrl()
           
static java.lang.String getFieldNameForAppid(java.lang.String credentialsLabel, CredentialsType credentialsType)
           
static java.lang.String getFieldNameForPassword(java.lang.String credentialsLabel, CredentialsType credentialsType)
           
static java.lang.String getFieldNameForUserName(java.lang.String credentialsLabel, CredentialsType credentialsType)
           
 java.lang.String getPassword(java.lang.String credentialsLabel, CredentialsType credentialsType)
           
 java.lang.String getProperty(java.lang.String name)
          Retrieve a property value by name
 javax.naming.Reference getReference()
          
 int getSocketTimeout()
           
 java.lang.String getUserName(java.lang.String credentialsLabel, CredentialsType credentialsType)
           
 int hashCode()
           
 boolean isNewConnection()
          Is this a new connection or an already existing one?
 void setAppid(java.lang.String credentialsLabel, CredentialsType credentialsType, java.lang.String appid)
           
 void setConfigParameters(java.util.Map<java.lang.String,java.lang.String> configParams)
          Set the configuration parameters of the IDC Connection.
 void setConnectionName(java.lang.String connectionName)
           
 void setConnectionUrl(java.lang.String connectionUrl)
           
 void setPassword(java.lang.String credentialsLabel, CredentialsType credentialsType, java.lang.String password)
           
 void setProperty(java.lang.String name, java.lang.String value)
          Set a property name and value
 void setSocketTimeout(int timeout)
           
 void setUserName(java.lang.String credentialsLabel, CredentialsType credentialsType, java.lang.String name)
           
 java.lang.String toString()
          

 

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

 

Field Detail

IDC_CONNECTION_KEY_PREFIX

public static final java.lang.String IDC_CONNECTION_KEY_PREFIX
See Also:
Constant Field Values

CONNECTION_URL_KEY

public static final java.lang.String CONNECTION_URL_KEY
See Also:
Constant Field Values

Constructor Detail

RidcConnection

public RidcConnection()
Default Constructor.

RidcConnection

public RidcConnection(java.lang.String connectionName,
                      javax.naming.Reference reference)

RidcConnection

public RidcConnection(javax.naming.Reference ref)
Constructor that takes in a jndi reference. The reference us used to initialize this object's properties.
Parameters:
ref - jndi reference the IdcConnection object will be created from.

Method Detail

create

public static RidcConnection create(javax.naming.Reference ref,
                                    javax.naming.Name name,
                                    javax.naming.Context nameCtx,
                                    java.util.Hashtable<?,?> environment)
Create an an IdcConnection from the given reference using the given name, context and environment properties.
Parameters:
ref - a jndi reference object.
name - jndi name.
nameCtx - jndi name context.
environment - environment property hashtable.
Returns:
an IdcConnection representation of the parameters.

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Specified by:
getReference in interface javax.naming.Referenceable
Returns:
Throws:
javax.naming.NamingException

getConnectionName

public java.lang.String getConnectionName()

setConnectionName

public void setConnectionName(java.lang.String connectionName)

isNewConnection

public boolean isNewConnection()
Is this a new connection or an already existing one?
Returns:
true if the connection already exists, false otherwise.

setConfigParameters

public void setConfigParameters(java.util.Map<java.lang.String,java.lang.String> configParams)
Set the configuration parameters of the IDC Connection.
Parameters:
configParams - a map containing configuration properties.

getConfigProperties

public java.util.Map<java.lang.String,java.lang.String> getConfigProperties()
Get the configuration properties of the IDC Connection.
Returns:
a map containing configuration properties as name value pair.

getProperty

public java.lang.String getProperty(java.lang.String name)
Retrieve a property value by name
Parameters:
name - the property name
Returns:
the value

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Set a property name and value
Parameters:
name - the property name
value - the property value

getConnectionUrl

public java.lang.String getConnectionUrl()

setConnectionUrl

public void setConnectionUrl(java.lang.String connectionUrl)

getSocketTimeout

public int getSocketTimeout()

setSocketTimeout

public void setSocketTimeout(int timeout)

setUserName

public void setUserName(java.lang.String credentialsLabel,
                        CredentialsType credentialsType,
                        java.lang.String name)

getUserName

public java.lang.String getUserName(java.lang.String credentialsLabel,
                                    CredentialsType credentialsType)

setPassword

public void setPassword(java.lang.String credentialsLabel,
                        CredentialsType credentialsType,
                        java.lang.String password)

getPassword

public java.lang.String getPassword(java.lang.String credentialsLabel,
                                    CredentialsType credentialsType)

setAppid

public void setAppid(java.lang.String credentialsLabel,
                     CredentialsType credentialsType,
                     java.lang.String appid)

getAppid

public java.lang.String getAppid(java.lang.String credentialsLabel,
                                 CredentialsType credentialsType)

getFieldNameForUserName

public static java.lang.String getFieldNameForUserName(java.lang.String credentialsLabel,
                                                       CredentialsType credentialsType)

getFieldNameForPassword

public static java.lang.String getFieldNameForPassword(java.lang.String credentialsLabel,
                                                       CredentialsType credentialsType)

getFieldNameForAppid

public static java.lang.String getFieldNameForAppid(java.lang.String credentialsLabel,
                                                    CredentialsType credentialsType)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


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