|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.Database.JNDIConfig
Class declaration
| Constructor Summary | |
JNDIConfig()
|
|
| Method Summary | |
static java.lang.String |
escapeDistinguishedName(java.lang.String dn)
Given a Distinguished Name, check for any '/' characters and escape them |
static java.util.Vector |
getContainers(java.lang.Object obj)
Given a class object, get its containers |
static java.lang.String |
getDistinguishedName(java.lang.Object obj)
Given a class object, get its JNDI Distinguished Name |
static java.lang.String |
getDistinguishedName(java.lang.Object obj,
java.lang.String attribute_name,
java.lang.String ClassInstanceName)
Given a class object template, attribute name, and a class instance name, get the JNDI Distinguished Name Return null if it does not have enough information or if the attribute name is not the distinguished name attribute |
static java.lang.String |
getDNAttributeName(java.lang.Object obj)
Given a class object, get the attribute name for the Distinguished Name attribute. |
static java.lang.String |
getJNDIClassObjectClassName(java.lang.Object obj)
Given a class object, get its Database Objectclass name |
static java.lang.String |
getJNDIName(java.lang.Object obj)
Given a class object, get its JNDI name |
static java.lang.String |
getJNDINameSuffix()
Get the name suffix for this database |
static java.lang.String |
getJNDIObjectClassName()
Get the name objectclass name for this database |
static java.lang.String |
getJNDIObjectTypeAttributeName()
Get the name object type attribute name for this database |
static java.lang.String |
getJNDIUtilityObjectClassName()
Get the name of the PIDS Utility Object Class |
static java.lang.Object |
getObjectAttribute(java.lang.Object obj,
java.lang.String attribute_name)
Given a class object and an attribute name for that object, get the attribute value from the object. |
static ObjectFactory |
getObjectFactory()
Get the ObjectFactory for this database |
static java.lang.String |
getUtilityEntryDN()
Get the utility entry for this database |
static void |
readConfigFile(java.lang.String ConfigFilename,
int debug_level)
Read the config file and store its information |
static void |
setObjectAttribute(java.lang.Object obj,
java.lang.String attribute_name,
java.lang.Object new_value)
Given a class object and an attribute name for that object, set the attribute of the object |
static java.lang.String |
translateAttributeName(java.lang.String object_classname,
java.lang.String attribute_name)
Translate a class attribute name to an JNDI name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JNDIConfig()
| Method Detail |
public static void readConfigFile(java.lang.String ConfigFilename,
int debug_level)
throws java.io.IOException
ConfigFilename - a string containing the name of the config file
java.io.IOExceptionpublic static java.lang.String getJNDINameSuffix()
public static java.lang.String getJNDIObjectClassName()
public static java.lang.String getJNDIObjectTypeAttributeName()
public static java.lang.String getUtilityEntryDN()
public static java.lang.String getJNDIUtilityObjectClassName()
public static ObjectFactory getObjectFactory()
public static java.lang.String getJNDIName(java.lang.Object obj)
obj - The object to be named
public static java.lang.String getJNDIClassObjectClassName(java.lang.Object obj)
obj - The object to be named
public static java.lang.String getDNAttributeName(java.lang.Object obj)
obj - The object to be named
public static java.lang.String getDistinguishedName(java.lang.Object obj,
java.lang.String attribute_name,
java.lang.String ClassInstanceName)
obj - The object class template or objectattribute_name - The name of the attribute containing the nameClassInstanceName - The name of the instance of this attribute
public static java.lang.String getDistinguishedName(java.lang.Object obj)
obj - The object to be named
public static java.util.Vector getContainers(java.lang.Object obj)
obj - The object holding the containers
public static java.lang.Object getObjectAttribute(java.lang.Object obj,
java.lang.String attribute_name)
obj - The object containing the attributeattribute_name - The name of the attribute to be read
public static void setObjectAttribute(java.lang.Object obj,
java.lang.String attribute_name,
java.lang.Object new_value)
obj - The object containing the attributeattribute_name - The name of the attribute to be set
public static java.lang.String translateAttributeName(java.lang.String object_classname,
java.lang.String attribute_name)
object_classname - The name of the class containing this attributeattribute_name - The name of the attribute that is to be translated
public static java.lang.String escapeDistinguishedName(java.lang.String dn)
dn - The Distinguished Name that is to be checked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||