|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ldap.server.partition.ContextPartitionNexus
A root ContextPartition
that contains all other partitions, and
routes all operations to the child partition that matches to its base suffixes.
It also provides some extended operations such as accessing rootDSE and
listing base suffixes.
Field Summary | |
static java.lang.String |
ADMIN_PRINCIPAL
the default user principal or DN |
static byte[] |
ADMIN_PW
the initial admin passwd set on startup |
static java.lang.String |
ADMIN_UID
the admin super user uid |
static java.lang.String |
GROUPS_BASE_NAME
the base dn under which all groups reside |
static java.lang.String |
SYSTEM_PARTITION_SUFFIX
System backend suffix constant. |
static java.lang.String |
USERS_BASE_NAME
the base dn under which all users reside |
Fields inherited from interface org.apache.ldap.server.partition.ContextPartition |
ALIAS_ATTRIBUTE, ALIAS_OBJECT |
Constructor Summary | |
ContextPartitionNexus()
|
Method Summary | |
abstract void |
addContextPartition(ContextPartitionConfiguration config)
|
static javax.naming.Name |
getAdminName()
Gets the DN for the admin user. |
static javax.naming.Name |
getGroupsBaseName()
Gets the DN for the base entry under which all groups reside. |
abstract javax.naming.ldap.LdapContext |
getLdapContext()
Gets the LdapContext associated with the calling thread. |
abstract javax.naming.Name |
getMatchedName(javax.naming.Name name,
boolean normalized)
Gets the most significant Dn that exists within the server for any Dn. |
abstract javax.naming.directory.Attributes |
getRootDSE()
Get's the RootDSE entry for the DSA. |
abstract javax.naming.Name |
getSuffix(javax.naming.Name name,
boolean normalized)
Gets the distinguished name of the suffix that would hold an entry with the supplied distinguished name parameter. |
abstract ContextPartition |
getSystemPartition()
|
static javax.naming.Name |
getUsersBaseName()
Gets the DN for the base entry under which all non-admin users reside. |
abstract java.util.Iterator |
listSuffixes(boolean normalized)
Gets an iteration over the Name suffixes of the Backends managed by this ContextPartitionNexus . |
abstract void |
removeContextPartition(javax.naming.Name suffix)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.ldap.server.partition.ContextPartition |
add, delete, destroy, getSuffix, hasEntry, init, isInitialized, isSuffix, list, lookup, lookup, modify, modify, modifyRn, move, move, search, sync |
Field Detail |
public static final java.lang.String ADMIN_PRINCIPAL
public static final java.lang.String ADMIN_UID
public static final byte[] ADMIN_PW
public static final java.lang.String USERS_BASE_NAME
public static final java.lang.String GROUPS_BASE_NAME
public static final java.lang.String SYSTEM_PARTITION_SUFFIX
Constructor Detail |
public ContextPartitionNexus()
Method Detail |
public static final javax.naming.Name getAdminName()
public static final javax.naming.Name getGroupsBaseName()
public static final javax.naming.Name getUsersBaseName()
public abstract javax.naming.ldap.LdapContext getLdapContext()
public abstract javax.naming.directory.Attributes getRootDSE() throws javax.naming.NamingException
javax.naming.NamingException
public abstract void addContextPartition(ContextPartitionConfiguration config) throws javax.naming.NamingException
javax.naming.NamingException
public abstract void removeContextPartition(javax.naming.Name suffix) throws javax.naming.NamingException
javax.naming.NamingException
public abstract ContextPartition getSystemPartition()
public abstract javax.naming.Name getMatchedName(javax.naming.Name name, boolean normalized) throws javax.naming.NamingException
name
- the normalized distinguished name to use for matching.normalized
- boolean if true cause the return of a normalized Dn,
if false it returns the original user provided distinguished name for
the matched portion of the Dn as it was provided on entry creation.
javax.naming.NamingException
- if there are any problemspublic abstract javax.naming.Name getSuffix(javax.naming.Name name, boolean normalized) throws javax.naming.NamingException
name
- the normalized distinguished name to use for finding a suffix.normalized
- if true causes the return of a normalized Dn, but
if false it returns the original user provided distinguished name for
the suffix Dn as it was provided on suffix entry creation.
javax.naming.NamingException
- if there are any problemspublic abstract java.util.Iterator listSuffixes(boolean normalized) throws javax.naming.NamingException
ContextPartitionNexus
.
normalized
- if true the returned Iterator contains normalized Dn
but, if false, it returns the original user provided distinguished names
in the Iterator.
javax.naming.NamingException
- if there are any problems
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |