|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.partition.PartitionNexus
A root Partition
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_PASSWORD
the initial admin passwd set on startup |
static java.lang.String |
ADMIN_PRINCIPAL
the default user principal or DN |
static java.lang.String |
ADMIN_PRINCIPAL_NORMALIZED
the normalized user principal or DN |
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 partition suffix constant. |
static java.lang.String |
USERS_BASE_NAME
the base dn under which all users reside |
Fields inherited from interface org.apache.directory.server.core.partition.Partition |
ALIAS_ATTRIBUTE, ALIAS_OBJECT |
Constructor Summary | |
PartitionNexus()
|
Method Summary | |
abstract void |
addContextPartition(PartitionConfiguration config)
|
abstract boolean |
compare(LdapDN name,
java.lang.String oid,
java.lang.Object value)
Performs a comparison check to see if an attribute of an entry has a specified value. |
static LdapDN |
getAdminName()
Gets the DN for the admin user. |
static LdapDN |
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 LdapDN |
getMatchedName(LdapDN name)
Gets the most significant Dn that exists within the server for any Dn. |
abstract Partition |
getPartition(LdapDN dn)
Get's the partition corresponding to a distinguished name. |
abstract javax.naming.directory.Attributes |
getRootDSE()
Get's the RootDSE entry for the DSA. |
abstract LdapDN |
getSuffix(LdapDN name)
Gets the distinguished name of the suffix that would hold an entry with the supplied distinguished name parameter. |
abstract Partition |
getSystemPartition()
|
static LdapDN |
getUsersBaseName()
Gets the DN for the base entry under which all non-admin users reside. |
abstract java.util.Iterator |
listSuffixes()
Gets an iteration over the Name suffixes of the partitions managed by this PartitionNexus . |
abstract void |
registerSupportedExtensions(java.util.Set extensionOids)
Adds a set of supportedExtension (OID Strings) to the RootDSE. |
abstract void |
removeContextPartition(LdapDN 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.directory.server.core.partition.Partition |
add, bind, delete, destroy, getSuffix, getUpSuffix, hasEntry, init, isInitialized, isSuffix, list, lookup, lookup, modify, modify, modifyRn, move, move, search, sync, unbind |
Field Detail |
public static final java.lang.String ADMIN_PRINCIPAL
public static final java.lang.String ADMIN_PRINCIPAL_NORMALIZED
public static final java.lang.String ADMIN_UID
public static final java.lang.String ADMIN_PASSWORD
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 PartitionNexus()
Method Detail |
public static final LdapDN getAdminName()
public static final LdapDN getGroupsBaseName()
public static final LdapDN getUsersBaseName()
public abstract javax.naming.ldap.LdapContext getLdapContext()
public abstract javax.naming.directory.Attributes getRootDSE() throws javax.naming.NamingException
javax.naming.NamingException
public abstract boolean compare(LdapDN name, java.lang.String oid, java.lang.Object value) throws javax.naming.NamingException
name
- the normalized name of the entryoid
- the attribute being comparedvalue
- the value the attribute is compared to
javax.naming.NamingException
- if there is a problem accessing the entry and its valuespublic abstract void addContextPartition(PartitionConfiguration config) throws javax.naming.NamingException
javax.naming.NamingException
public abstract void removeContextPartition(LdapDN suffix) throws javax.naming.NamingException
javax.naming.NamingException
public abstract Partition getSystemPartition()
public abstract Partition getPartition(LdapDN dn) throws javax.naming.NamingException
dn
- the normalized distinguished name to get a partition for
javax.naming.NamingException
- if there is no partition for the dnpublic abstract LdapDN getMatchedName(LdapDN name) throws javax.naming.NamingException
name
- the normalized distinguished name to use for matching.
javax.naming.NamingException
- if there are any problemspublic abstract LdapDN getSuffix(LdapDN name) throws javax.naming.NamingException
name
- the normalized distinguished name to use for finding a suffix.
javax.naming.NamingException
- if there are any problemspublic abstract java.util.Iterator listSuffixes() throws javax.naming.NamingException
PartitionNexus
.
javax.naming.NamingException
- if there are any problemspublic abstract void registerSupportedExtensions(java.util.Set extensionOids)
extensionOids
- a set of OID strings to add to the supportedExtension
attribute in the RootDSE
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |