public interface PartitionNexus extends Partition
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.Modifier and Type | Field and Description |
---|---|
static byte[] |
ADMIN_PASSWORD_BYTES |
static String |
ADMIN_PASSWORD_STRING
the initial admin passwd set on startup
|
static String |
ADMIN_UID
the admin super user uid
|
DEFAULT_ID, ROOT_ID
Modifier and Type | Method and Description |
---|---|
void |
addContextPartition(Partition partition)
Add a partition to the server.
|
boolean |
compare(CompareOperationContext compareContext)
The Compare operation
|
Partition |
getPartition(org.apache.directory.api.ldap.model.name.Dn dn)
Get's the partition corresponding to a distinguished name.
|
org.apache.directory.api.ldap.model.entry.Entry |
getRootDse(GetRootDseOperationContext getRootDseContext)
Get's the RootDSE entry for the DSA.
|
org.apache.directory.api.ldap.model.entry.Value |
getRootDseValue(org.apache.directory.api.ldap.model.schema.AttributeType attributeType)
Get's the RootDSE value associated with an AttributeType
|
org.apache.directory.api.ldap.model.name.Dn |
getSuffixDn(org.apache.directory.api.ldap.model.name.Dn dn)
Finds the distinguished name of the suffix that would hold an entry with
the supplied distinguished name parameter.
|
Set<String> |
listSuffixes()
Gets an iteration over the Name suffixes of the partitions managed by this
DefaultPartitionNexus.
|
void |
registerSupportedExtensions(Set<String> extensionOids)
Adds a set of supportedExtension (OID Strings) to the RootDSE.
|
void |
registerSupportedSaslMechanisms(Set<String> supportedSaslMechanisms)
Adds a set of supportedSaslMechanisms (OID Strings) to the RootDSE.
|
void |
removeContextPartition(String partitionDn)
Remove a partition from the server.
|
add, beginReadTransaction, beginWriteTransaction, delete, destroy, dumpIndex, getContextCsn, getId, getSchemaManager, getSubordinates, getSuffixDn, hasEntry, initialize, isInitialized, lookup, modify, move, moveAndRename, rename, repair, saveContextCsn, search, setId, setSchemaManager, setSuffixDn, sync, unbind
static final String ADMIN_UID
static final String ADMIN_PASSWORD_STRING
static final byte[] ADMIN_PASSWORD_BYTES
org.apache.directory.api.ldap.model.entry.Entry getRootDse(GetRootDseOperationContext getRootDseContext)
getRootDseContext
- The operation contextorg.apache.directory.api.ldap.model.entry.Value getRootDseValue(org.apache.directory.api.ldap.model.schema.AttributeType attributeType)
attributeType
- The attribute type for which we want a valuevoid addContextPartition(Partition partition) throws org.apache.directory.api.ldap.model.exception.LdapException
partition
- The Partition to addorg.apache.directory.api.ldap.model.exception.LdapException
- If the addition can't be donevoid removeContextPartition(String partitionDn) throws org.apache.directory.api.ldap.model.exception.LdapException
partitionDn
- the partition Dnorg.apache.directory.api.ldap.model.exception.LdapException
- If the removal can't be donePartition getPartition(org.apache.directory.api.ldap.model.name.Dn dn) throws org.apache.directory.api.ldap.model.exception.LdapException
dn
- the normalized distinguished name to get a partition fororg.apache.directory.api.ldap.model.exception.LdapException
- if there is no partition for the dnorg.apache.directory.api.ldap.model.name.Dn getSuffixDn(org.apache.directory.api.ldap.model.name.Dn dn) throws org.apache.directory.api.ldap.model.exception.LdapException
dn
- The Dn we want to find the suffix fromorg.apache.directory.api.ldap.model.exception.LdapException
- If we can't get the suffix DnSet<String> listSuffixes() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
- if there are any problemsvoid registerSupportedExtensions(Set<String> extensionOids) throws org.apache.directory.api.ldap.model.exception.LdapException
extensionOids
- a set of OID strings to add to the supportedExtension
attribute in the RootDSEorg.apache.directory.api.ldap.model.exception.LdapException
- If we cannot register the extensionsvoid registerSupportedSaslMechanisms(Set<String> supportedSaslMechanisms) throws org.apache.directory.api.ldap.model.exception.LdapException
supportedSaslMechanisms
- a set of OID strings to add to the supportedSaslMechanisms
attribute in the RootDSEorg.apache.directory.api.ldap.model.exception.LdapException
- If we cannot fetch the supported SASL mechanismboolean compare(CompareOperationContext compareContext) throws org.apache.directory.api.ldap.model.exception.LdapException
compareContext
- The context for the compare operationorg.apache.directory.api.ldap.model.exception.LdapException
- If we had an issue during the operationCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.