|
Oracle Internet Directory API Reference 11g Release 1 (11.1.1) E10664-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ldap.util.LDAPEntry
oracle.ldap.util.OracleContext
public class OracleContext
This class represents an Oracle Context in the directory
Field Summary | |
---|---|
protected PropertySetCollection |
commonPsc |
protected java.lang.String |
fileSeparator |
protected static java.lang.String |
listFileExt File extention for the files that list .sbs LDIF files |
protected java.lang.String |
ohome |
static java.lang.String |
oracleContextCN the common name (CN) of an Oracle Context |
static java.lang.String |
oracleContextObjClass the ldap objectClass for the oracle context |
static java.lang.String |
oracleContextRDN the relative distinguished name (RDN) of an Oracle Context |
protected java.lang.String |
orclCtxFilePrefix |
protected java.lang.String |
orclCtxVersion |
protected PropertySetCollection |
productPsc |
protected java.io.PrintStream |
pStream |
protected java.lang.String[] |
resolveAttrs |
protected java.util.Vector |
subVector |
Fields inherited from class oracle.ldap.util.LDAPEntry |
---|
entryDN, entryIdType, entryPsc, inEntryId, resBundle, validated |
Constructor Summary | |
---|---|
OracleContext() |
|
OracleContext(javax.naming.directory.DirContext inCtx, java.util.logging.Logger lgr, java.lang.String inOrclCtxDN) Constructs an OracleContext specified by the input DN |
|
OracleContext(javax.naming.directory.DirContext inCtx, java.util.logging.Logger lgr, java.lang.String inOhome, java.lang.String inOrclCtxDN) Constructs an OracleContext specified by the input DN. |
|
OracleContext(javax.naming.directory.DirContext inCtx, java.util.logging.Logger lgr, java.lang.String inOhome, java.lang.String inOrclCtxDN, java.io.PrintStream pStream) Constructs an OracleContext specified by the input DN. |
|
OracleContext(javax.naming.directory.DirContext inCtx, java.lang.String inOrclCtxDN) |
|
OracleContext(javax.naming.directory.DirContext inCtx, java.lang.String inOhome, java.lang.String inOrclCtxDN) |
|
OracleContext(javax.naming.directory.DirContext inCtx, java.lang.String inOhome, java.lang.String inOrclCtxDN, java.io.PrintStream pStream) |
|
OracleContext(java.util.logging.Logger lgr) |
Method Summary | |
---|---|
void |
create(javax.naming.directory.DirContext ctx) Creates an OracleContext with the given DN |
void |
create(javax.naming.directory.DirContext ctx, java.lang.String product, java.lang.String schemaLoc) Create product specific oraclecontext entries |
boolean |
exists(javax.naming.directory.DirContext ctx) Returns true if the Oracle Context exists |
PropertySetCollection |
getCommonProperties(javax.naming.directory.DirContext ctx, java.lang.String[] attrList) Returns the common properties of the Oracle Context. |
java.lang.String |
getDBCompatibilityVersion(javax.naming.directory.DirContext ctx) Returns the oldest database Version that is compatible with this version of the Oracle Context |
static java.lang.String[] |
getOracleContext(javax.naming.directory.DirContext ctx) Returns a String[] of DNs of all the Oracle Contexts in the directory. |
static java.lang.String[] |
getOracleContext(javax.naming.directory.DirContext ctx, java.lang.String baseDN) Returns a String[] of DNs of all the Oracle Contexts in the directory under the specified base DN. |
protected java.io.PrintStream |
getPrintStream() |
protected void |
getSubstitutionVector(javax.naming.directory.DirContext ctx) Returns the substitution vector needed to create the oracle context The following variables are needed: %s_CurrentUserDN% %s_OracleContextParentDN% %s_OracleContextDN% |
java.lang.String |
getVersion(javax.naming.directory.DirContext ctx) /** Returns the version of this Oracle Context |
java.lang.String |
getVersion(javax.naming.directory.DirContext ctx, java.lang.String product) getVersion |
boolean |
isUpToDate(javax.naming.directory.DirContext ctx) Returns true if this Oracle Context is up to date with the current client version. |
boolean |
isUpToDate(javax.naming.directory.DirContext ctx, java.lang.String product, java.lang.String schemaLoc) Checks whether context entries are uptodate |
void |
refresh(javax.naming.directory.DirContext ctx) Refreshes cached elements in the OracleContext object. |
void |
resolve(javax.naming.directory.DirContext ctx) Resolves the OracleContext object by validating the DN. |
void |
resolve(javax.naming.directory.DirContext ctx, java.lang.String product) Resolve various property sets including product specific ones |
void |
upgrade(javax.naming.directory.DirContext ctx) Upgrade |
void |
upgrade(javax.naming.directory.DirContext ctx, java.lang.String product, java.lang.String schemaLoc) Upgrade |
Methods inherited from class oracle.ldap.util.LDAPEntry |
---|
getDN, getProperties, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String oracleContextCN
public static final java.lang.String oracleContextRDN
public static final java.lang.String oracleContextObjClass
protected static final java.lang.String listFileExt
protected java.lang.String ohome
protected java.lang.String orclCtxVersion
protected java.lang.String orclCtxFilePrefix
protected java.util.Vector subVector
protected PropertySetCollection commonPsc
protected PropertySetCollection productPsc
protected java.lang.String[] resolveAttrs
protected java.lang.String fileSeparator
protected transient java.io.PrintStream pStream
Constructor Detail |
---|
public OracleContext(java.util.logging.Logger lgr)
public OracleContext()
public OracleContext(javax.naming.directory.DirContext inCtx, java.util.logging.Logger lgr, java.lang.String inOhome, java.lang.String inOrclCtxDN)
inCtx
- a valid DirContextinOhome
- the absolute path of ORACLE_HOMEinOrclctxDN
- the DN of the OracleContextpublic OracleContext(javax.naming.directory.DirContext inCtx, java.lang.String inOhome, java.lang.String inOrclCtxDN)
public OracleContext(javax.naming.directory.DirContext inCtx, java.util.logging.Logger lgr, java.lang.String inOhome, java.lang.String inOrclCtxDN, java.io.PrintStream pStream)
inCtx
- a valid DirContextinOhome
- the absolute path of ORACLE_HOMEinOrclctxDN
- the DN of the OracleContextpublic OracleContext(javax.naming.directory.DirContext inCtx, java.lang.String inOhome, java.lang.String inOrclCtxDN, java.io.PrintStream pStream)
public OracleContext(javax.naming.directory.DirContext inCtx, java.util.logging.Logger lgr, java.lang.String inOrclCtxDN)
inCtx
- a valid DirContextinOrclCtxDN
- the DN of the OracleContextpublic OracleContext(javax.naming.directory.DirContext inCtx, java.lang.String inOrclCtxDN)
Method Detail |
---|
public boolean exists(javax.naming.directory.DirContext ctx)
public void refresh(javax.naming.directory.DirContext ctx) throws UtilException
ctx
- a valid DirContextUtilException
public void resolve(javax.naming.directory.DirContext ctx) throws UtilException
resolve
in class LDAPEntry
UtilException
public void resolve(javax.naming.directory.DirContext ctx, java.lang.String product) throws UtilException
UtilException
public void create(javax.naming.directory.DirContext ctx) throws UtilException
UtilException
public void create(javax.naming.directory.DirContext ctx, java.lang.String product, java.lang.String schemaLoc) throws UtilException
UtilException
public java.lang.String getVersion(javax.naming.directory.DirContext ctx) throws UtilException
ctx
- - Directory ContextUtilException
CommunicationErrorException
- - an error occurrs while contacting LDAP serverpublic java.lang.String getVersion(javax.naming.directory.DirContext ctx, java.lang.String product) throws UtilException
ctx
- - Directory Context product - Product for which version is being returnedUtilException
CommunicationErrorException
- - an error occurrs while contacting LDAP serverpublic java.lang.String getDBCompatibilityVersion(javax.naming.directory.DirContext ctx) throws UtilException
ctx
- - Directory ContextUtilException
CommunicationErrorException
- - an error occurrs while contacting LDAP serverpublic static java.lang.String[] getOracleContext(javax.naming.directory.DirContext ctx) throws UtilException
UtilException
CommunicationErrorException
- - an error occurrs while contacting LDAP serverpublic static java.lang.String[] getOracleContext(javax.naming.directory.DirContext ctx, java.lang.String baseDN) throws UtilException
ctx
- - Directory Context baseDN - DN where OracleContext is locatedUtilException
CommunicationErrorException
- - an error occurrs while contacting LDAP serverpublic void upgrade(javax.naming.directory.DirContext ctx) throws java.lang.Exception
java.lang.Exception
CommunicationErrorException
- for OID broken connectionUtilException
- for general LDAP Modification failure.public void upgrade(javax.naming.directory.DirContext ctx, java.lang.String product, java.lang.String schemaLoc) throws java.lang.Exception
ctx
- - Directory Context product - Product for which context is being upgraded schemaLoc - Location of schema filesjava.lang.Exception
protected void getSubstitutionVector(javax.naming.directory.DirContext ctx)
public PropertySetCollection getCommonProperties(javax.naming.directory.DirContext ctx, java.lang.String[] attrList) throws UtilException
ctx
- a valid DirContextattrList
- the list of attributes to be returnedUtilException
CommunicationErrorException
- - an error occurrs while contacting LDAP serverpublic boolean isUpToDate(javax.naming.directory.DirContext ctx) throws UtilException
UtilException
public boolean isUpToDate(javax.naming.directory.DirContext ctx, java.lang.String product, java.lang.String schemaLoc) throws UtilException
ctx
- - Directory Context product - Product for which context is being upgraded schemaLoc - Location of schema filesUtilException
protected java.io.PrintStream getPrintStream()
|
Oracle Internet Directory API Reference 11g Release 1 (11.1.1) E10664-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |