|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PartitionNexus is a special type of BackingStore designed to route BackingStore operations to ContextPartitions based on namespace to respective ContextPartitions attached to the nexus at the appropriate naming contexts. These naming contexts are also the suffixes of ContextPartitions. All entries within a ContextPartition have the same suffix. The PartitionNexus is a singleton where as ContextPartitions can be many hanging off of different contexts on the nexus. The PartitionNexus routes or proxies BackingStore calls to the appropriate PartitionContext implementation. It also provides some extended operations for the entire backend apparatus like listing the various naming contexts or partition suffixes within the system. The nexus is also responsibe for returning the entry Attributes for the root DSE when the approapriate search is conducted: empty filter String and base scope search.
Method Summary | |
javax.naming.ldap.LdapContext |
getLdapContext()
Gets the LdapContext associated with the calling thread. |
javax.naming.Name |
getMatchedDn(javax.naming.Name dn,
boolean normalized)
Gets the most significant Dn that exists within the server for any Dn. |
javax.naming.Name |
getSuffix(javax.naming.Name dn,
boolean normalized)
Gets the distinguished name of the suffix that would hold an entry with the supplied distinguished name parameter. |
java.util.Iterator |
listSuffixes(boolean normalized)
Gets an iteration over the Name suffixes of the Backends managed by this BackendNexus. |
void |
register(ContextPartition partition)
Registers an ContextPartition with this BackendManager. |
void |
unregister(ContextPartition partition)
Unregisters an ContextPartition with this BackendManager. |
Methods inherited from interface org.apache.ldap.server.BackingStore |
add, close, delete, hasEntry, isClosed, isSuffix, list, lookup, lookup, modify, modify, modifyRn, move, move, search, sync |
Method Detail |
public javax.naming.ldap.LdapContext getLdapContext()
public javax.naming.Name getMatchedDn(javax.naming.Name dn, boolean normalized) throws javax.naming.NamingException
dn
- 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 javax.naming.Name getSuffix(javax.naming.Name dn, boolean normalized) throws javax.naming.NamingException
dn
- 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 java.util.Iterator listSuffixes(boolean normalized) throws javax.naming.NamingException
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 problemspublic void register(ContextPartition partition)
partition
- ContextPartition component to register with this
BackendNexus.public void unregister(ContextPartition partition)
partition
- ContextPartition component to unregister with this
BackendNexus.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |