public final class RootOracleContext extends OracleContext
This class represents the Root Oracle Context in the directory.
It allows for the creation of additional realms and retrieval of
Subscriber
objects representing a particular realm in
the directory.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
rootOracleContextDN
The default distinguished name (DN) of the Root Oracle Context
|
oracleContextCN, oracleContextObjClass, oracleContextRDN
Constructor and Description |
---|
RootOracleContext(javax.naming.directory.DirContext inCtx) |
RootOracleContext(javax.naming.directory.DirContext inCtx,
java.util.logging.Logger lgr)
Construct an instance of
RootOracleContext . |
RootOracleContext(javax.naming.directory.DirContext inCtx,
java.util.logging.Logger lgr,
java.lang.String inOhome)
Constructs an instance of RootOracleContext.
|
RootOracleContext(javax.naming.directory.DirContext inCtx,
java.util.logging.Logger lgr,
java.lang.String inOhome,
java.io.PrintStream pStream)
Constructs an instance of RootOracleContext.
|
RootOracleContext(javax.naming.directory.DirContext inCtx,
java.lang.String inOhome) |
RootOracleContext(javax.naming.directory.DirContext inCtx,
java.lang.String inOhome,
java.io.PrintStream pStream) |
Modifier and Type | Method and Description |
---|---|
Subscriber |
createSubscriber(javax.naming.directory.DirContext ctx,
java.lang.String simpleName,
boolean withAux)
Creates a new subscriber using the specified simpleName under the
subscriber search base.
|
Subscriber[] |
getAllSubscribers(javax.naming.directory.DirContext ctx,
java.lang.String[] attrList)
Returns an array of all the
Subscriber (s)
under the subscriber search base along with the attribute
values specified in attrList. |
Subscriber[] |
getAllSubscribers(javax.naming.directory.DirContext ctx,
java.lang.String filter,
java.lang.String[] attrList)
Returns an array of
Subscriber objects under
the subscriber search base. |
Subscriber |
getSubscriber(javax.naming.directory.DirContext ctx,
int inSubIdType,
java.lang.String inSubIdName,
java.lang.String[] attrList)
Returns the Subscriber with the specified information.
|
create, exists, getCommonProperties, getDBCompatibilityVersion, getOracleContext, getOracleContext, getVersion, getVersion, refresh, resolve, resolve, upgrade
getDN, getProperties, setProperties
public static final java.lang.String rootOracleContextDN
public RootOracleContext(javax.naming.directory.DirContext inCtx, java.util.logging.Logger lgr, java.lang.String inOhome)
inCtx
- a valid DirContextinOhome
- the absolute path of ORACLE_HOMEpublic RootOracleContext(javax.naming.directory.DirContext inCtx, java.lang.String inOhome)
public RootOracleContext(javax.naming.directory.DirContext inCtx, java.util.logging.Logger lgr, java.lang.String inOhome, java.io.PrintStream pStream)
Constructs an instance of RootOracleContext. The
PrintStream
redirects the standard output
and can be used for logging purpose
inCtx
- a valid DirContextinOhome
- the absolute path of ORACLE_HOMEpStream
- the PrintStream
where the output
is pushed topublic RootOracleContext(javax.naming.directory.DirContext inCtx, java.lang.String inOhome, java.io.PrintStream pStream)
public RootOracleContext(javax.naming.directory.DirContext inCtx, java.util.logging.Logger lgr)
Construct an instance of RootOracleContext
. If this
RootOracleContext
is to be used for realm creation,
the constructor with the $ORACLE_HOME parameter should be used
inCtx
- a valid DirContextpublic RootOracleContext(javax.naming.directory.DirContext inCtx)
public Subscriber[] getAllSubscribers(javax.naming.directory.DirContext ctx, java.lang.String filter, java.lang.String[] attrList) throws UtilException
Subscriber
objects under
the subscriber search base.filter
- a valid LDAP search filter to refine the
search criteria. For example, "acme*".
If null, then no filter is used.attrList
- the list of attributes to be returned for each
subscriberUtilException
public Subscriber[] getAllSubscribers(javax.naming.directory.DirContext ctx, java.lang.String[] attrList) throws UtilException
Returns an array of all the Subscriber
(s)
under the subscriber search base along with the attribute
values specified in attrList.
ctx
- a valid DirContextattrList
- the list of attributes to be returned for each
subscriberUtilException
public Subscriber createSubscriber(javax.naming.directory.DirContext ctx, java.lang.String simpleName, boolean withAux) throws UtilException
Creates a new subscriber using the specified simpleName under the subscriber search base.
User and group containers are auxiliary items. By default, they are created immediately under the subscriber DN.
For example, if the subscriber is "dc=acme,dc=com", then "cn=Users,dc=acme,dc=com" will be the User container and set as the user search base for this subscriber.
Similarly, the group container will be "cn=groups,dc=acme,dc=com" and is set the group search base for this subscriber.
If you do not wish to create these auxiliary containers, set withAux to false.
simpleName
- a valid simple name for the subscriber.withAux
- set to true if you wish to create the
auxiliary user and group container.Subscriber
corresponding to the
newly created subscriber.UtilException
public Subscriber getSubscriber(javax.naming.directory.DirContext ctx, int inSubIdType, java.lang.String inSubIdName, java.lang.String[] attrList) throws UtilException
Subscriber
.ctx
- a valid DirContextinSubIdType
- The type of subscriber id being used -
Use Util.IDTYPE_DN if the DN value is used; use
Util.IDTYPE_SIMPLE if a simple name is used;
use UTIL.IDTYPE_GUID if the GUID is used; use
Util.IDTYPE_DEFAULT if the default subscriber
is desiredinSubIdName
- Subscriber ID - this value can be null ONLY if
inSubIdType is Util.IDTYPE_DEFAULT. Otherwise,
a null will cause an exceptionattrList
- a list of attributes to be looked up
when fetching subscriber informationUtilException